-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
generic
-
generic
While invoking a frame using download mechanism the following exception is occurred,
jtools>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-R)
Java HotSpot(TM) Client VM (build 1.3-R, interpreted mode)
jtools>java -Djava.security.manager -Djava.security.policy=qetest.policy -jar s.jar
Exception in thread "main" java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt.motif)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1501)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:385)
at java.lang.ClassLoader.access$000(ClassLoader.java:134)
at java.lang.ClassLoader$1.run(ClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkLoadClass(ClassLoader.java:360)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:318)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at java.awt.Toolkit$2.run(Toolkit.java:496)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at java.awt.Window.getToolkit(Window.java:552)
at java.awt.Frame.addNotify(Frame.java:353)
at java.awt.Window.show(Window.java:385)
at s.main(s.java:8)
jtools>
How to reproduce the problem
------------------------------
1.set the path JDK1.3-R
2.copy the attachment files in your machine
2.Type the following command in the command prompt,
java -Djava.security.manager -Djava.security.policy=qetest.policy -jar s.jar
Attachments
----------
1.s.jar
2.qetest.policy
3.s.java
Tested in
---------
1.winNT4.0
2.win95
3.win98
4.win2000
More information about the bug:
-------------------------------
Also we tested in windows platforms with build 1.3.0-Q,
we haven't received any exception, the frame titled "hai"
is appear on the screen with the following message
"JavaAppletWindow".
Because of this exception, there are 3 new failures in the Tools execution.
The results and log files are updated in the Kestrel status page,
http://javaweb.eng/jdk/releases/kestrel/test/status/
jtools>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-R)
Java HotSpot(TM) Client VM (build 1.3-R, interpreted mode)
jtools>java -Djava.security.manager -Djava.security.policy=qetest.policy -jar s.jar
Exception in thread "main" java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt.motif)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1501)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:385)
at java.lang.ClassLoader.access$000(ClassLoader.java:134)
at java.lang.ClassLoader$1.run(ClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkLoadClass(ClassLoader.java:360)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:318)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at java.awt.Toolkit$2.run(Toolkit.java:496)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at java.awt.Window.getToolkit(Window.java:552)
at java.awt.Frame.addNotify(Frame.java:353)
at java.awt.Window.show(Window.java:385)
at s.main(s.java:8)
jtools>
How to reproduce the problem
------------------------------
1.set the path JDK1.3-R
2.copy the attachment files in your machine
2.Type the following command in the command prompt,
java -Djava.security.manager -Djava.security.policy=qetest.policy -jar s.jar
Attachments
----------
1.s.jar
2.qetest.policy
3.s.java
Tested in
---------
1.winNT4.0
2.win95
3.win98
4.win2000
More information about the bug:
-------------------------------
Also we tested in windows platforms with build 1.3.0-Q,
we haven't received any exception, the frame titled "hai"
is appear on the screen with the following message
"JavaAppletWindow".
Because of this exception, there are 3 new failures in the Tools execution.
The results and log files are updated in the Kestrel status page,
http://javaweb.eng/jdk/releases/kestrel/test/status/