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

CTE Regression: No Java Plug-in security warning box pop-up and java.security.AccessControlException

    Details

    • Subcomponent:
    • Introduced In Version:
      7
    • Resolved In Build:
      b11
    • CPU:
      x86
    • OS:
      windows_xp, windows_vista, windows_7
    • Verification:
      Not verified

      Backports

        Description

        Testsuite name: CTE Regressions manual
        JDK/JRE tested: jdk7b100(jdk-7-ea-bin-b100-windows-i586-09_jul_2010.exe)
        OS/architecture: win7-ultimate-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 the test button. There is no Java Plug-in security warning box pop-up.
        Same issue happened on the following cases when loading the page:
        CTE_REGTEST/Generic/4434676/Test4434676.java
        CTE_REGTEST/Generic/4473019/Test4473019.java
        CTE_REGTEST/Generic/4628657/Test4628657.java
        CTE_REGTEST/Generic/4772863/Test4772863.java
        CTE_REGTEST/Generic/4775420/Test4775420.java
        CTE_REGTEST/Generic/4989229/Test4989229.java

        Exception:
        Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
               at java.lang.reflect.Constructor.newInstance(Unknown Source)
               at java.lang.Class.newInstance0(Unknown Source)
               at java.lang.Class.newInstance(Unknown Source)
               at sun.security.jca.ProviderConfig$2.run(Unknown Source)
               at sun.security.jca.ProviderConfig$2.run(Unknown Source)
               at java.security.AccessController.doPrivileged(Native Method)
               at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source)
               at sun.security.jca.ProviderConfig.getProvider(Unknown Source)
               at sun.security.jca.ProviderList.getProvider(Unknown Source)
               at sun.security.jca.ProviderList.getService(Unknown Source)
               at sun.security.jca.GetInstance.getInstance(Unknown Source)
               at java.security.Security.getImpl(Unknown Source)
               at java.security.AlgorithmParameters.getInstance(Unknown Source)
               at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
               at sun.security.x509.AlgorithmId.<init>(Unknown Source)
               at sun.security.x509.AlgorithmId.parse(Unknown Source)
               at sun.security.x509.X509Key.parse(Unknown Source)
               at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
               at sun.security.x509.X509CertInfo.parse(Unknown Source)
               at sun.security.x509.X509CertInfo.<init>(Unknown Source)
               at sun.security.x509.X509CertImpl.parse(Unknown Source)
               at sun.security.x509.X509CertImpl.<init>(Unknown Source)
               at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
               at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
               at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
               at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
               at java.security.KeyStore.load(Unknown Source)
               at com.sun.deploy.security.RootCertStore$1.run(Unknown Source)
               at java.security.AccessController.doPrivileged(Native Method)
               at com.sun.deploy.security.RootCertStore.loadCertStore(Unknown Source)
               at com.sun.deploy.security.RootCertStore.load(Unknown Source)
               at com.sun.deploy.security.RootCertStore.load(Unknown Source)
               at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
               at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
               at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
               at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
               at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
               at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
               at java.security.SecureClassLoader.defineClass(Unknown Source)
               at java.net.URLClassLoader.defineClass(Unknown Source)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
               at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
               at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
               at java.security.AccessController.doPrivileged(Native Method)
               at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
               at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
               at java.lang.ClassLoader.loadClass(Unknown Source)
               at java.lang.ClassLoader.loadClass(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.pumpOneEventForFilters(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.run(Unknown Source)
        Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.sunec")
               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.checkLink(Unknown Source)
               at java.lang.Runtime.loadLibrary0(Unknown Source)
               at java.lang.System.loadLibrary(Unknown Source)
               at sun.security.ec.SunEC$1.run(SunEC.java:60)
               at sun.security.ec.SunEC$1.run(SunEC.java:58)
               at java.security.AccessController.doPrivileged(Native Method)
               at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
               ... 67 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  van Vivi An (Inactive)
                  Reporter:
                  tonyli Tony Li
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: