JDK-8026944 : Applet failed on Ubuntu with exception when trying to add TextField
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.8,8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2013-10-21
  • Updated: 2013-11-06
  • Resolved: 2013-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Duplicate :  
Description
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 

Comments
Verified with jdk8 b114 and the issue is fixed.
06-11-2013

Deploy team will close this bug after verifying the fix
25-10-2013

This is already fixed by JDK-8026404. The fix was pushed to the tl forest, so it will be available after the next integration.
24-10-2013

The app from the bug report runs in sandbox mode (with limited permissions and without the "modifyThreadGroup" permission granted) and it fails to execute the following AWT code src/solaris/classes/sun/awt/X11/XTextFieldPeer.java private static final PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XTextField"); Looks like getLogger requires additional permissions ("modifyThreadGroup") and perhaps getLogger should be called from privileged block? Transferring to AWT for further evaluation.
24-10-2013

attaching full log that includes full stack trace
24-10-2013