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

MoleculeViewerTest demo doesn't work due to SecurityPermissions

XMLWordPrintable

    • b110
    • generic
    • windows_7
    • Verified

      When opening each example<N>.html,it throws java.security.AccessControlException in java console.refer to MoleculeViewerTest.txt and MoleculeViewerTest.jpg.

      Jul 05, 2013 4:33:22 AM XYZApp run
      SEVERE: null
      java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Java\jdk1.8.0\demo\applets\MoleculeViewer\models\HyaluronicAcid.xyz" "read")
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:453)
      at java.security.AccessController.checkPermission(AccessController.java:820)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
      at java.io.File.isDirectory(File.java:844)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:82)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
      at java.net.URL.openStream(URL.java:1038)
      at XYZApp.run(XYZApp.java:351)
      at java.lang.Thread.run(Thread.java:724)

        1. MoleculeViewerTest_1.jpg
          136 kB
          Alexander Kuznetcov
        2. MoleculeViewerTest_1.txt
          17 kB
          Alexander Kuznetcov

            alexsch Alexandr Scherbatiy
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: