Demos failing when run from local file system

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • 9
    • Affects Version/s: 8u5
    • Component/s: deploy
    • None
    • Environment:

      Windows 7, Internet Explorer

    • generic
    • generic

      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. See JDK-8044104 also

            Assignee:
            Vikas Saiprasad
            Reporter:
            Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: