Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8050468

Demos failing when run from local file system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 9
    • 8u5
    • deploy
    • None
    • 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

            vsaiprasad Vikas Saiprasad
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: