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

javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java test failed with AccessControlException

    Details

    • Subcomponent:
    • Introduced In Build:
      b89
    • Introduced In Version:
      9
    • Resolved In Build:
      b99
    • CPU:
      x86_64
    • OS:
      solaris

      Backports

        Description

        The test fails with the following exception:

        java.lang.Exception: XMLDSigWithSecMgr FAILED
        at XMLDSigWithSecMgr.<init>(XMLDSigWithSecMgr.java:153)
        at XMLDSigWithSecMgr.main(XMLDSigWithSecMgr.java:159)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:747)
        Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.security.util")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:468)
        at java.security.AccessController.checkPermission(AccessController.java:894)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:541)
        at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1497)
        at java.lang.ClassLoader$1.run(ClassLoader.java:501)
        at java.lang.ClassLoader$1.run(ClassLoader.java:499)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:499)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:759)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:152)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:470)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:76)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:371)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:364)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at sun.security.pkcs11.SunPKCS11$P11Service.isLocalKey(SunPKCS11.java:1126)
        at sun.security.pkcs11.SunPKCS11$P11Service.supportsParameter(SunPKCS11.java:1081)
        at java.security.Signature$Delegate.chooseProvider(Signature.java:1119)
        at java.security.Signature$Delegate.engineInitSign(Signature.java:1192)
        at java.security.Signature.initSign(Signature.java:535)
        at org.jcp.xml.dsig.internal.dom.DOMSignatureMethod.sign(DOMSignatureMethod.java:256)
        at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:398)
        at XMLDSigWithSecMgr.<init>(XMLDSigWithSecMgr.java:138)
        ... 7 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asmotrak Artem Smotrakov
                  Reporter:
                  tidu Tim Du (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: