java.security.AccessControlException thrown for 1.3.1_23b01 test.

XMLWordPrintable

    • x86
    • windows_xp

      Testsuite name: CTE Regressions manual
      JDK/JRE tested:1.3.1_29b01(j2sdk-1_3_1_29-ea-bin-b01-windows-i586-20_jul_2010.exe)
      OS/architecture: winxphome-sp3-x86
      Reproducible: Always
      Is it a platform specific regression: N
      Is it a Regression: N
       

      Steps to reproduce:

      Run the cases CTE_REGTEST/Generic/4358791/Test4358791.java
      Before Running this test make sure that there is no .java.policy file
      exists in the test system. If exists, rename/move it to different name
      if renamed/removed, move it back to .java.policy file after test is done

      Instructions:

      1. Open Netscape/IE browser and load the following page
         http://jpseuwt-ap/testcases/131/4358791/test_ok.html
         Once the page is loaded, there will be button 'test'

      2. Hit 'test' button

      3. Java Plug-in security warning box will appear

      4. If you see 'security cerfication is valid',close this warning window
                Windows - Click 'X' button at the top right corner
                Solaris/Linux - Close it from windows drop down menu
         If the security certificate has expired or is not valid,Click 'Grant this session' button to proceed
       

      Check:
      If you see 'java.security.AccessControlException' in Java Console window - test FAILED
      If there is no exception - test PASSED
       

      Actual behavior:
      java.security.AccessControlException thrown when clicking ?est?button.

      Validation:

      Same build/solaris8-sparc: same issue.

      Same issue happened on the following cases when loading the page:
      CTE_REGTEST/Generic/4407646/Test4407646.java
      CTE_REGTEST/Generic/4411888/Test4411888.java
      CTE_REGTEST/Generic/4434388/Test4434388.java
      CTE_REGTEST/Generic/4473019/Test4473019.java
      CTE_REGTEST/Generic/4481951/Test4481951.java
      CTE_REGTEST/Generic/4506751/Test4506751.java
      CTE_REGTEST/Generic/4628657/Test4628657.java
      CTE_REGTEST/Generic/4670958/Test4670958.java
      CTE_REGTEST/Generic/4687305/Test4687305.java
      CTE_REGTEST/Generic/4772863/Test4772863.java
      CTE_REGTEST/Generic/4775420/Test4775420.java
      CTE_REGTEST/Generic/5107268/Test5107268.java

      Exception:

      java.lang.SecurityException: null AccessControlContext
               at javax.swing.UIDefaults$ProxyLazyValue.createValue(Unknown Source)
               at javax.swing.UIDefaults.get(Unknown Source)
               at javax.swing.MultiUIDefaults.get(Unknown Source)
               at javax.swing.UIDefaults.getFont(Unknown Source)
               at javax.swing.UIManager.getFont(Unknown Source)
               at javax.swing.LookAndFeel.installColorsAndFont(Unknown Source)
               at javax.swing.plaf.basic.BasicLabelUI.installDefaults(Unknown Source)
               at javax.swing.plaf.basic.BasicLabelUI.installUI(Unknown Source)
               at javax.swing.JComponent.setUI(Unknown Source)
               at javax.swing.JLabel.setUI(Unknown Source)
               at javax.swing.JLabel.updateUI(Unknown Source)
               at javax.swing.JLabel.<init>(Unknown Source)
               at javax.swing.JLabel.<init>(Unknown Source)
               at sun.plugin.security.TrustDeciderDialog.DoModal(Unknown Source)
               at sun.plugin.security.TrustDecider$PrivilegedBlockAction.run(Unknown Source)
               at java.security.AccessController.doPrivileged(Native Method)
               at sun.plugin.security.TrustDecider.showSecurityDialog(Unknown Source)
               at sun.plugin.security.TrustDecider.isAllPermissionGranted(Unknown Source)
               at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
               at sun.plugin.security.PluginClassLoader.getProtectionDomain(Unknown Source)
               at sun.plugin.security.PluginClassLoader.defineClass(Unknown Source)
               at sun.plugin.security.PluginClassLoader.access$100(Unknown Source)
               at sun.plugin.security.PluginClassLoader$1.run(Unknown Source)
               at java.security.AccessController.doPrivileged(Native Method)
               at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
               at java.lang.ClassLoader.loadClass(Unknown Source)
               at sun.applet.AppletClassLoader.loadClass(Unknown Source)
               at java.lang.ClassLoader.loadClass(Unknown Source)
               at java.lang.ClassLoader.loadClassInternal(Unknown Source)
               at test.MyApplet.actionPerformed(MyApplet.java:20)
               at java.awt.Button.processActionEvent(Unknown Source)
               at java.awt.Button.processEvent(Unknown Source)
               at java.awt.Component.dispatchEventImpl(Unknown Source)
               at java.awt.Component.dispatchEvent(Unknown Source)
               at java.awt.EventQueue.dispatchEvent(Unknown Source)
               at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.run(Unknown Source)
      java.lang.SecurityException: null AccessControlContext
               at javax.swing.UIDefaults$ProxyLazyValue.createValue(Unknown Source)
               at javax.swing.UIDefaults.get(Unknown Source)
               at javax.swing.MultiUIDefaults.get(Unknown Source)
               at javax.swing.UIDefaults.getBorder(Unknown Source)
               at javax.swing.UIManager.getBorder(Unknown Source)
               at javax.swing.LookAndFeel.installBorder(Unknown Source)
               at javax.swing.plaf.basic.BasicOptionPaneUI.installDefaults(Unknown Source)
               at javax.swing.plaf.basic.BasicOptionPaneUI.installUI(Unknown Source)
               at javax.swing.JComponent.setUI(Unknown Source)
               at javax.swing.JOptionPane.setUI(Unknown Source)
               at javax.swing.JOptionPane.updateUI(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at javax.swing.JOptionPane.<init>(Unknown Source)
               at sun.plugin.usability.DialogFactory.showExceptionDialogImpl(Unknown Source)
               at sun.plugin.usability.DialogFactory.access$1100(Unknown Source)
               at sun.plugin.usability.DialogFactory$9.execute(Unknown Source)
               at sun.plugin.usability.PluginSysUtil$SysExecutionThread.run(Unknown Source)
      !!! getSystemProperty: user.name
      Exception occurred during event dispatching:
      java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read)
               at java.security.AccessControlContext.checkPermission(Unknown Source)
               at java.security.AccessController.checkPermission(Unknown Source)
               at java.lang.SecurityManager.checkPermission(Unknown Source)
               at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
               at java.lang.System.getProperty(Unknown Source)
               at test.services.MyServices$1.run(MyServices.java:15)
               at java.security.AccessController.doPrivileged(Native Method)
               at test.services.MyServices.getSystemProperty(MyServices.java:12)
               at test.MyApplet.actionPerformed(MyApplet.java:20)
               at java.awt.Button.processActionEvent(Unknown Source)
               at java.awt.Button.processEvent(Unknown Source)
               at java.awt.Component.dispatchEventImpl(Unknown Source)
               at java.awt.Component.dispatchEvent(Unknown Source)
               at java.awt.EventQueue.dispatchEvent(Unknown Source)
               at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.run(Unknown Source)

            Assignee:
            Valerii Potokov (Inactive)
            Reporter:
            Tony Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: