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

AccessControlException in Window.init()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      generic, x86, sparc
    • OS:
      generic, linux, linux_redhat_7.1, solaris_8, windows_nt, windows_xp

      Backports

        Description

        I think I found a new focus problem in Hopper build 6.

        I ran the swingset on win32 as an applet
        cd <build>/build/win32/demo/jfc/SwingSet2
        <build>/build/win32/bin/appletviewer SwingSet2.html

        Click on the dialog button in the toolbar (seventh from the left)
        Click on one of the dialog buttons
        Exceptions will be thrown:

        [E:/oracle-cte1-child/build/win32/demo/jfc/SwingSet2] e:/oracle-hopper/build/w>
        java.security.AccessControlException: access denied (java.util.PropertyPermission
        java.awt.syncLWRequests read)
                at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
                at java.security.AccessController.checkPermission(AccessController.java:401)
                at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
                at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
                at java.lang.System.getProperty(System.java:611)
                at java.awt.Window.init(Window.java:206)
                at java.awt.Window.<init>(Window.java:199)
                at java.awt.Window.<init>(Window.java:281)
                at java.awt.Dialog.<init>(Dialog.java:217)
                at javax.swing.JDialog.<init>(JDialog.java:211)
                at javax.swing.JOptionPane.createDialog(JOptionPane.java:882)
                at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:537)
                at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:482)
                at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:433)
                at OptionPaneDemo$5.actionPerformed(OptionPaneDemo.java:120)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
                at
        javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
                at
        javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
                at java.awt.Component.processMouseEvent(Component.java:5080)
                at java.awt.Component.processEvent(Component.java:4877)
                at java.awt.Container.processEvent(Container.java:1525)
                at java.awt.Component.dispatchEventImpl(Component.java:3585)
                at java.awt.Container.dispatchEventImpl(Container.java:1582)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3371)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3086)

                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3016)
                at java.awt.Container.dispatchEventImpl(Container.java:1568)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
                at
        java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

                at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
        java.security.AccessControlException: access denied (java.util.PropertyPermission
        java.awt.syncLWRequests read)
                at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
                at java.security.AccessController.checkPermission(AccessController.java:401)
                at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
                at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
                at java.lang.System.getProperty(System.java:611)
                at java.awt.Window.init(Window.java:206)
                at java.awt.Window.<init>(Window.java:199)
                at java.awt.Window.<init>(Window.java:281)
                at java.awt.Dialog.<init>(Dialog.java:217)
                at javax.swing.JDialog.<init>(JDialog.java:211)
                at javax.swing.JOptionPane.createDialog(JOptionPane.java:882)
                at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:819)
                at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:624)
                at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:595)
                at OptionPaneDemo$2.actionPerformed(OptionPaneDemo.java:77)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
                at
        javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
                at
        javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
                at java.awt.Component.processMouseEvent(Component.java:5080)
                at java.awt.Component.processEvent(Component.java:4877)
                at java.awt.Container.processEvent(Container.java:1525)
                at java.awt.Component.dispatchEventImpl(Component.java:3585)
                at java.awt.Container.dispatchEventImpl(Container.java:1582)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3371)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3086)

                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3016)
                at java.awt.Container.dispatchEventImpl(Container.java:1568)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
                at
        java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

                at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
        java.security.AccessControlException: access denied (java.util.PropertyPermission
        java.awt.syncLWRequests read)
                at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
                at java.security.AccessController.checkPermission(AccessController.java:401)
                at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
                at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
                at java.lang.System.getProperty(System.java:611)
                at java.awt.Window.init(Window.java:206)
                at java.awt.Window.<init>(Window.java:199)
                at java.awt.Window.<init>(Window.java:281)
                at java.awt.Dialog.<init>(Dialog.java:217)
                at javax.swing.JDialog.<init>(JDialog.java:211)
                at javax.swing.JOptionPane.createDialog(JOptionPane.java:882)
                at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:819)
                at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:624)
                at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:595)
                at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:566)
                at OptionPaneDemo$3.actionPerformed(OptionPaneDemo.java:94)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
                at
        javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
                at
        javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
                at java.awt.Component.processMouseEvent(Component.java:5080)
                at java.awt.Component.processEvent(Component.java:4877)
                at java.awt.Container.processEvent(Container.java:1525)
                at java.awt.Component.dispatchEventImpl(Component.java:3585)
                at java.awt.Container.dispatchEventImpl(Container.java:1582)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3371)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3086)

                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3016)
                at java.awt.Container.dispatchEventImpl(Container.java:1568)
                at java.awt.Component.dispatchEvent(Component.java:3426)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
                at
        java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

                at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

        [E:/oracle-cte1-child/build/win32/demo/jfc/SwingSet2]


        Note that this does not happen with the promoted build 5
        of Hopper. Also, it does not happen when you run the
        swingset as an application (from a jar file) - only when
        run as an applet (appletviewer).

        This does not happen in the CTE workspace with the Oracle
        focus changes, so it must be caused by another fix we put
        into Hopper build 6.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dmikhalksunw Denis Mikhalkin (Inactive)
                Reporter:
                ehawkessunw Eric Hawkes (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: