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

FontUtilities static initializer throws AccessControlException

XMLWordPrintable

    • 2d
    • b102
    • generic, x86
    • generic, linux
    • Verified

      Usnsigned applet fails to start if java console is disabled with following exception:

      exception in trace when applet fails to load:
      Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
             at sun.java2d.SunGraphics2D.checkFontInfo(SunGraphics2D.java:596)
             at sun.java2d.SunGraphics2D.getFontInfo(SunGraphics2D.java:757)
             at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:50)
             at sun.java2d.pipe.ValidatePipe.drawString(ValidatePipe.java:165)
             at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2807)
             at HelloWorld.paint(HelloWorld.java:8)
             at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
             at sun.awt.RepaintArea.paint(RepaintArea.java:240)
             at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347
             at java.awt.Component.dispatchEventImpl(Component.java:4866)
             at java.awt.Container.dispatchEventImpl(Container.java:2261)
             at java.awt.Component.dispatchEvent(Component.java:4616)
             at java.awt.EventQueue.dispatchEvent(EventQueue.java:651)
             at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchT
      ad.java:255)
             at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThre
      java:170)
             at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchT
      ad.java:160)
             at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1
             at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1
             at java.awt.EventDispatchThread.run(EventDispatchThread.java:136)
      Caused by: java.security.AccessControlException: access denied ("java.util.Pr
      rtyPermission" "sun.java2d.debugfonts" "read")
             at java.security.AccessControlContext.checkPermission(AccessControlCo
      xt.java:345)
      @

            igor Igor Nekrestyanov (Inactive)
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: