-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
6
-
sparc
-
solaris_10
JDK-Info:
---------
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b61)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b61, mixed mode)
Operating System:
-----------------
Solaris
Steps to Reproduce:
-------------------
* JDK binaries are available at /net/sqindia.india/export/disk09/jdk/1.6.0/b61/binaries/solsparc
* I have created a symblink on my home directory "j2se" pointing to /net/sqindia.india/export/disk10/j2se
Similar setup can be done with koori.sfbay and a home directory
1) Goto $JDK1.6.0/bin, that is /net/sqindia.india/export/disk09/jdk/1.6.0/b61/binaries/solsparc/bin
2) Launch ./appletviewer ~/j2se/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2.html
(that is, my home_directory/j2se (pointing to sqindia:/export/disk10/j2se)/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2.html)
The following exception is thrown:
java.security.AccessControlException: access denied (java.io.FilePermission /home/disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2Applet.class read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:321)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.isDirectory(File.java:752)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)
at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getContentLength(FileURLConnection.java:136)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:289)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:618)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:760)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:689)
at sun.applet.AppletPanel.run(AppletPanel.java:361)
at java.lang.Thread.run(Thread.java:626)
With .java.policy on my home directory with permission as "All Permissions" still throws the same Exception
But when tried to launch ./java -jar ~/j2se/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/Notepad/Notepad.jar works fine
---------
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b61)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b61, mixed mode)
Operating System:
-----------------
Solaris
Steps to Reproduce:
-------------------
* JDK binaries are available at /net/sqindia.india/export/disk09/jdk/1.6.0/b61/binaries/solsparc
* I have created a symblink on my home directory "j2se" pointing to /net/sqindia.india/export/disk10/j2se
Similar setup can be done with koori.sfbay and a home directory
1) Goto $JDK1.6.0/bin, that is /net/sqindia.india/export/disk09/jdk/1.6.0/b61/binaries/solsparc/bin
2) Launch ./appletviewer ~/j2se/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2.html
(that is, my home_directory/j2se (pointing to sqindia:/export/disk10/j2se)/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2.html)
The following exception is thrown:
java.security.AccessControlException: access denied (java.io.FilePermission /home/disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/SwingSet2/SwingSet2Applet.class read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:321)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.isDirectory(File.java:752)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)
at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getContentLength(FileURLConnection.java:136)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:289)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:618)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:760)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:689)
at sun.applet.AppletPanel.run(AppletPanel.java:361)
at java.lang.Thread.run(Thread.java:626)
With .java.policy on my home directory with permission as "All Permissions" still throws the same Exception
But when tried to launch ./java -jar ~/j2se/../../disk09/jdk/1.6.0/b61/binaries/solsparc/demo/jfc/Notepad/Notepad.jar works fine