Issue was found with jdk 8 b112 64 bit, on ubuntu 12.04, with FF24
To reproduce
1. Install mentioned JRE and load URL: http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/larry/bugreport/addtext/html/testAppletCommStaticAppletTest.html
2. Accept the security warning for unsigned appelt.
3. If the applet loading failed with trace info like below the issue is reproduced.
java.lang.ExceptionInInitializerError
at sun.awt.X11.XToolkit.createTextField(Unknown Source)
at java.awt.TextField.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at AppletCommStaticApplet2.init(AppletCommStaticApplet2.java:37)
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)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
4 The source code can be found from http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/larry/bugreport/addtext/src/AppletCommTest1.java. The exception is caused by line 41:
tf = new TextField(20);
add(tf);
The applet is expected to be loaded fine.
Affected tests:
AppletAPIsTest::testAppletCommStaticAppletTest
AppletAPIsTest::testAppletCommStaticAppletTestjnlp
AppletAPIsTest::testAppletCommStaticLoadTest
AppletAPIsTest::testAppletCommStaticLoadTestjnlp
AppletAPIsTest::testAppletCommStaticPkgTestjnlp
To reproduce
1. Install mentioned JRE and load URL: http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/larry/bugreport/addtext/html/testAppletCommStaticAppletTest.html
2. Accept the security warning for unsigned appelt.
3. If the applet loading failed with trace info like below the issue is reproduced.
java.lang.ExceptionInInitializerError
at sun.awt.X11.XToolkit.createTextField(Unknown Source)
at java.awt.TextField.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at AppletCommStaticApplet2.init(AppletCommStaticApplet2.java:37)
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)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
4 The source code can be found from http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/larry/bugreport/addtext/src/AppletCommTest1.java. The exception is caused by line 41:
tf = new TextField(20);
add(tf);
The applet is expected to be loaded fine.
Affected tests:
AppletAPIsTest::testAppletCommStaticAppletTest
AppletAPIsTest::testAppletCommStaticAppletTestjnlp
AppletAPIsTest::testAppletCommStaticLoadTest
AppletAPIsTest::testAppletCommStaticLoadTestjnlp
AppletAPIsTest::testAppletCommStaticPkgTestjnlp
- duplicates
-
JDK-8026404 Logging in Applet can trigger ACE: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
- Closed