Install the Java2D JFC demo locally and try launching the html file. The NPE appears. Seen on windows (only one tested) - You need to open up java plugin permissions to allow "file:///" protocol launch.
java.lang.NullPointerException
at sun.net.util.URLUtil.getConnectPermission(Unknown Source)
at sun.awt.SunToolkit.checkPermissions(Unknown Source)
at sun.awt.SunToolkit.createImage(Unknown Source)
at java2d.DemoImages.getImage(DemoImages.java:93)
at java2d.DemoImages.newDemoImages(DemoImages.java:72)
at java2d.Java2Demo.<init>(Java2Demo.java:140)
at java2d.Java2DemoApplet.init(Java2DemoApplet.java:122)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is not the only demo I see failing of late. SeeJDK-8044104 also
java.lang.NullPointerException
at sun.net.util.URLUtil.getConnectPermission(Unknown Source)
at sun.awt.SunToolkit.checkPermissions(Unknown Source)
at sun.awt.SunToolkit.createImage(Unknown Source)
at java2d.DemoImages.getImage(DemoImages.java:93)
at java2d.DemoImages.newDemoImages(DemoImages.java:72)
at java2d.Java2Demo.<init>(Java2Demo.java:140)
at java2d.Java2DemoApplet.init(Java2DemoApplet.java:122)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is not the only demo I see failing of late. See
- duplicates
-
JDK-8059210 Java2DTest applet fails to load with StackOverflow exception
- Closed
- relates to
-
JDK-8044104 getClass().getResource(path) returns null in Applet running from file system
- Closed