java.lang.ExceptionInInitializerError

JDK Bug System | Hung Nguyen | 3 years ago
  1. 0

    It is noticed that for many applets outther (eg. yahoo games) there isException during peer initialization java.lang.ExceptionInInitializerError when loading on Linux *** Tested Configuration: - x86 Ubuntu 12.04, x86 Ubuntu 13.04 - Firefox 24.x - jre 8 promotion *** Steps to reproduce: 0) Install jre8-b112 promotion on linux machine 1) Configure Firefox to use the above jre 8 java plug-in 2) Use Firefox to load the test applet http://www.dbai.tuwien.ac.at/proj/ramsey ( many yahoo game applet display the same issue) 3) Accept to run the applet at the Security Warning dialog if you see the following error message, the issue is reproducible sun.awt.X11.XBaseWindow init WARNING: Exception during peer initialization java.lang.ExceptionInInitializerError at sun.awt.X11.InfoWindow$Tooltip.<init>(Unknown Source) at sun.awt.X11.XWarningWindow.<init>(Unknown Source) at sun.awt.X11.XWindowPeer.postInit(Unknown Source) at sun.awt.X11.XDecoratedPeer.postInit(Unknown Source) at sun.awt.X11.XBaseWindow.init(Unknown Source) at sun.awt.X11.XBaseWindow.<init>(Unknown Source) at sun.awt.X11.XWindow.<init>(Unknown Source) at sun.awt.X11.XComponentPeer.<init>(Unknown Source) at sun.awt.X11.XCanvasPeer.<init>(Unknown Source) at sun.awt.X11.XPanelPeer.<init>(Unknown Source) at sun.awt.X11.XWindowPeer.<init>(Unknown Source) at sun.awt.X11.XDecoratedPeer.<init>(Unknown Source) at sun.awt.X11.XDialogPeer.<init>(Unknown Source) at sun.awt.X11.XToolkit.createDialog(Unknown Source) at java.awt.Dialog.addNotify(Unknown Source) at java.awt.Dialog.conditionalShow(Unknown Source) at java.awt.Dialog.show(Unknown Source) at Hexi.init(Hexi.java:149) 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) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source) at sun.plugin2.applet.AWTAppletSecurityManager.checkAccess(Unknown Source) at java.lang.ThreadGroup.checkAccess(Unknown Source) at java.lang.ThreadGroup.getParent(Unknown Source) at sun.awt.AppContext$6.getAppletContext(Unknown Source) at java.util.logging.LogManager.getUserContext(Unknown Source) at java.util.logging.LogManager.addLogger(Unknown Source) at java.util.logging.LogManager.demandSystemLogger(Unknown Source) at java.util.logging.Logger.getPlatformLogger(Unknown Source) at java.util.logging.LoggingProxyImpl.getLogger(Unknown Source) at sun.util.logging.LoggingSupport.getLogger(Unknown Source) at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source) at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source) at sun.util.logging.PlatformLogger.<init>(Unknown Source) at sun.util.logging.PlatformLogger.getLogger(Unknown Source) at sun.awt.X11.XTrayIconPeer.<clinit>(Unknown Source) ... 21 more java.lang.ExceptionInInitializerError at sun.awt.X11.XToolkit.createCheckbox(Unknown Source) at java.awt.Checkbox.addNotify(Unknown Source) at java.awt.Container.addNotify(Unknown Source) at java.awt.Panel.addNotify(Unknown Source) at java.awt.Container.addNotify(Unknown Source) at java.awt.Window.addNotify(Unknown Source) at java.awt.Dialog.addNotify(Unknown Source) at java.awt.Dialog.conditionalShow(Unknown Source) at java.awt.Dialog.show(Unknown Source) at Hexi.init(Hexi.java:149) 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) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source) at sun.plugin2.applet.AWTAppletSecurityManager.checkAccess(Unknown Source) at java.lang.ThreadGroup.checkAccess(Unknown Source) at java.lang.ThreadGroup.getParent(Unknown Source) at sun.awt.AppContext$6.getAppletContext(Unknown Source) at java.util.logging.LogManager.getUserContext(Unknown Source) at java.util.logging.LogManager.addLogger(Unknown Source) at java.util.logging.LogManager.demandSystemLogger(Unknown Source) at java.util.logging.Logger.getPlatformLogger(Unknown Source) at java.util.logging.LoggingProxyImpl.getLogger(Unknown Source) at sun.util.logging.LoggingSupport.getLogger(Unknown Source) at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source) at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source) at sun.util.logging.PlatformLogger.<init>(Unknown Source) at sun.util.logging.PlatformLogger.getLogger(Unknown Source) at sun.awt.X11.XCheckboxPeer.<clinit>(Unknown Source) ... 13 more

    JDK Bug System | 3 years ago | Hung Nguyen
    java.lang.ExceptionInInitializerError
  2. 0

    latest JDK7 changes in java.lang.RuntimePermission | Java.net

    java.net | 1 year ago
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
  3. 0

    [JDK-8094925] [Service,WebView] Security exception in Service.cancel and URLLoaderThreadFactory when running sandboxed applet - Java Bug System

    java.net | 1 year ago
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-7096664 In Applet - java.security.AccessControlException - ExecutorService

    java.com | 1 year ago
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
  6. 0

    latest JDK7 changes in java.lang.RuntimePermission | Java.net

    java.net | 1 year ago
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")

    25 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied ("java.lang.RuntimePermission" "modifyThreadGroup")

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      SecurityManager.checkPermission
      1. java.security.AccessControlContext.checkPermission(Unknown Source)
      2. java.security.AccessController.checkPermission(Unknown Source)
      3. java.lang.SecurityManager.checkPermission(Unknown Source)
      3 frames
    3. sun.plugin2.applet
      AWTAppletSecurityManager.checkAccess
      1. sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
      2. sun.plugin2.applet.AWTAppletSecurityManager.checkAccess(Unknown Source)
      2 frames
    4. Java RT
      PlatformLogger.getLogger
      1. java.lang.ThreadGroup.checkAccess(Unknown Source)
      2. java.lang.ThreadGroup.getParent(Unknown Source)
      3. sun.awt.AppContext$6.getAppletContext(Unknown Source)
      4. java.util.logging.LogManager.getUserContext(Unknown Source)
      5. java.util.logging.LogManager.addLogger(Unknown Source)
      6. java.util.logging.LogManager.demandSystemLogger(Unknown Source)
      7. java.util.logging.Logger.getPlatformLogger(Unknown Source)
      8. java.util.logging.LoggingProxyImpl.getLogger(Unknown Source)
      9. sun.util.logging.LoggingSupport.getLogger(Unknown Source)
      10. sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source)
      11. sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source)
      12. sun.util.logging.PlatformLogger.<init>(Unknown Source)
      13. sun.util.logging.PlatformLogger.getLogger(Unknown Source)
      13 frames
    5. sun.awt.X11
      XToolkit.createCheckbox
      1. sun.awt.X11.XCheckboxPeer.<clinit>(Unknown Source)
      2. sun.awt.X11.XToolkit.createCheckbox(Unknown Source)
      2 frames
    6. Java RT
      Dialog.show
      1. java.awt.Checkbox.addNotify(Unknown Source)
      2. java.awt.Container.addNotify(Unknown Source)
      3. java.awt.Panel.addNotify(Unknown Source)
      4. java.awt.Container.addNotify(Unknown Source)
      5. java.awt.Window.addNotify(Unknown Source)
      6. java.awt.Dialog.addNotify(Unknown Source)
      7. java.awt.Dialog.conditionalShow(Unknown Source)
      8. java.awt.Dialog.show(Unknown Source)
      8 frames
    7. Unknown
      Hexi.init
      1. Hexi.init(Hexi.java:149)
      1 frame
    8. com.sun.deploy
      AWTAppletAdapter.init
      1. com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
      1 frame
    9. sun.plugin2.applet
      Plugin2Manager$AppletExecutionRunnable.run
      1. sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame