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

Demos failing when run from local file system

    XMLWordPrintable

    Details

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

      Windows 7, Internet Explorer

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: