JDK-8041450 : [TESTBUG] Java2DTest applet doesn't work with NPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_7
  • CPU: x86
  • Submitted: 2013-07-09
  • Updated: 2020-02-10
  • Resolved: 2020-02-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Description
When Java2DTest is executed it fails with NPE
at sun.awt.SunToolkit.createImage(SunToolkit.java:798)
at java2d.DemoImages.getImage(DemoImages.java:93)

Comment from test executor: Failed. When openning  <JDKROOT>/demo/jfc/Java2D/Java2Demo.html in IE9,the demo cannot be loaded,refer to Java2DTest.jpg.
Comments
Support of plugin was removed and appletviewer was removed as well. Cannot reproduce this bug on the latest JDK.
06-02-2020

Tests issue, Tests need to be updated
02-09-2014

Also affects other applet tests including: tests/demo/applets/ArcTestTest
29-10-2013

Tests need to be updated to prevent QE engineer from looking at applets started from filesystem.
28-10-2013

Johnny, thank you for detailed response.
23-07-2013

Please look at the comment. Do not use a file url to load the applet.
23-07-2013

You do not want to load your applet using a file url, as far as I know, it's been disallowed for security reasons. Is it only the Java2DTest applet which is not loading using a file url? Please use an http[s] url to load your applet. For a reference, please look at my attached screen shot.
23-07-2013

Please provide a valid reason of resolving as cannot reproduce. Non-reproducibility on your system could also be a result of misconfiguration.
22-07-2013

Tony, thank you for additional information. Johnny, please evaluate.
18-07-2013

Hi Alexander,let me share with you this issue's reproduction: 1) install jre8b98 ,and download the demo on win7-sp1-x86. 2)Invoke the java control panel,change the security from the High to Medium. and check the "Show console" ,"Enable tracing" and "Enable logging" 3)Use FF21 launch the Java2D demo 4)The demo can not load with the NPE exception refer to NP.jpg the log and trace you can refer to plugin8847218499174453494.log and plugin4396129471651149510.trace 5)We tried to create .java.policy under current user for all permission.it's passed.
18-07-2013

Johnny, could you please provide steps on how to debug the configuration issue? Michael, could you please attach full Java Console log to this issue?
18-07-2013

I installed b98 on my windows, and could not reproduce the NPE. Could this be a configuration issue?
18-07-2013

We we load this demo ,It throws the same exception,but after we create .java.policy for all permission at the current user like: C:\Users\Administrator When we reload this case , it's passed.We marked it pass when we test jdk8b97.
17-07-2013

I wonder is this is something to do with policy change for applets accessing file system resources ? How *eaxctly* was this test run ?
16-07-2013

tests/demo/jfc/Java2DTest
10-07-2013