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

Applet failed on Ubuntu with exception when trying to add TextField

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 1.8, 8
    • deploy
    • x86_64
    • linux_ubuntu
    • Verified

      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

            xudwu Larry Wu (Inactive)
            xudwu Larry Wu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: