swing-layout
  1. swing-layout
  2. SWING_LAYOUT-40

AccessControlException when using GroupLayout in an applet

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: milestone 1
    • Component/s: baseline
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      40

      Description

      java.security.AccessControlException: access denied (java.lang.RuntimePermission
      accessDeclaredMembers)
      at
      java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
      at java.security.AccessController.checkPermission(AccessController.java:427)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
      at java.lang.Class.checkMemberAccess(Class.java:2125)
      at java.lang.Class.getDeclaredField(Class.java:1851)
      at org.jdesktop.layout.Baseline.isOceanTheme(Baseline.java:811)
      at org.jdesktop.layout.Baseline.getComboBoxBaseline(Baseline.java:715)
      at org.jdesktop.layout.Baseline.getBaseline(Baseline.java:178)
      at
      org.jdesktop.layout.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:2202)
      at
      org.jdesktop.layout.GroupLayout$BaselineGroup.calculateBaseline(GroupLayout.java:2021)
      at
      org.jdesktop.layout.GroupLayout$BaselineGroup.calculateSize(GroupLayout.java:1997)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1172)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at
      org.jdesktop.layout.GroupLayout$SequentialGroup.setSize0(GroupLayout.java:1501)
      at org.jdesktop.layout.GroupLayout$Group.setSize(GroupLayout.java:1128)
      at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:799)
      at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:678)
      at java.awt.Container.layout(Container.java:1401)
      at java.awt.Container.doLayout(Container.java:1390)
      at java.awt.Container.validateTree(Container.java:1473)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validate(Container.java:1448)
      at java.awt.Window.dispatchEventImpl(Window.java:1772)
      at java.awt.Component.dispatchEvent(Component.java:3803)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      at
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      java.security.AccessControlException: access denied (java.lang.RuntimePermission
      accessDeclaredMembers)
      at
      java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
      at java.security.AccessController.checkPermission(AccessController.java:427)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
      at java.lang.Class.checkMemberAccess(Class.java:2125)
      at java.lang.Class.getDeclaredField(Class.java:1851)
      at org.jdesktop.layout.Baseline.isOceanTheme(Baseline.java:811)
      at org.jdesktop.layout.Baseline.getComboBoxBaseline(Baseline.java:715)
      at org.jdesktop.layout.Baseline.getBaseline(Baseline.java:178)
      at
      org.jdesktop.layout.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:2202)
      at
      org.jdesktop.layout.GroupLayout$BaselineGroup.calculateBaseline(GroupLayout.java:2021)
      at
      org.jdesktop.layout.GroupLayout$BaselineGroup.calculateSize(GroupLayout.java:1997)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1172)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
      at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
      at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
      at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
      at
      org.jdesktop.layout.GroupLayout$SequentialGroup.setSize0(GroupLayout.java:1501)
      at org.jdesktop.layout.GroupLayout$Group.setSize(GroupLayout.java:1128)
      at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:799)
      at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:678)
      at java.awt.Container.layout(Container.java:1401)
      at java.awt.Container.doLayout(Container.java:1390)
      at java.awt.Container.validateTree(Container.java:1473)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validateTree(Container.java:1480)
      at java.awt.Container.validate(Container.java:1448)
      at java.awt.Window.dispatchEventImpl(Window.java:1772)
      at java.awt.Component.dispatchEvent(Component.java:3803)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      at
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Activity

        Hide
        zixle added a comment -

        If accessing the field thrown an exception, Baseline will now check the vm
        version. If running >= 1.5, it's assumed you're using Ocean, otherwise Steel.

        Show
        zixle added a comment - If accessing the field thrown an exception, Baseline will now check the vm version. If running >= 1.5, it's assumed you're using Ocean, otherwise Steel.

          People

          • Assignee:
            zixle
            Reporter:
            zixle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: