-
Bug
-
Resolution: Fixed
-
P3
-
9
-
None
-
b150
This test is currently failing in jdk9/dev with jtreg tip. The changes in code-tools/jtreg are expected to be a promoted build of jtreg soon and so the custom security manager in this test needs to be looked at.
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:699)
at java.base/java.util.jar.JarFile.getInputStream(JarFile.java:793)
at java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:751)
at java.base/jdk.internal.loader.Resource.cachedInputStream(Resource.java:77)
at java.base/jdk.internal.loader.Resource.getByteBuffer(Resource.java:161)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:742)
at java.base/jdk.internal.loader.BuiltinClassLoader.access$300(BuiltinClassLoader.java:91)
at java.base/jdk.internal.loader.BuiltinClassLoader$3.run(BuiltinClassLoader.java:662)
at java.base/jdk.internal.loader.BuiltinClassLoader$3.run(BuiltinClassLoader.java:657)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:670)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:572)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:530)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:186)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:478)
at com.sun.javatest.regtest.agent.RStatus.passed(RStatus.java:36)
at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:83)
Caused by: java.lang.SecurityException: ("java.security.SecurityPermission" "getProperty.jdk.jar.disabledAlgorithms")
at DcmdMBeanPermissionsTest$CustomSecurityManager.checkPermission(DcmdMBeanPermissionsTest.java:91)
at java.base/java.security.Security.getProperty(Security.java:760)
at java.base/sun.security.util.AbstractAlgorithmConstraints.lambda$getAlgorithms$0(AbstractAlgorithmConstraints.java:49)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.security.util.AbstractAlgorithmConstraints.getAlgorithms(AbstractAlgorithmConstraints.java:48)
at java.base/sun.security.util.DisabledAlgorithmConstraints.<init>(DisabledAlgorithmConstraints.java:91)
at java.base/sun.security.util.DisabledAlgorithmConstraints.<init>(DisabledAlgorithmConstraints.java:77)
at java.base/sun.security.util.SignatureFileVerifier.<clinit>(SignatureFileVerifier.java:67)
... 17 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:699)
at java.base/java.util.jar.JarFile.getInputStream(JarFile.java:793)
at java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:751)
at java.base/jdk.internal.loader.Resource.cachedInputStream(Resource.java:77)
at java.base/jdk.internal.loader.Resource.getByteBuffer(Resource.java:161)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:742)
at java.base/jdk.internal.loader.BuiltinClassLoader.access$300(BuiltinClassLoader.java:91)
at java.base/jdk.internal.loader.BuiltinClassLoader$3.run(BuiltinClassLoader.java:662)
at java.base/jdk.internal.loader.BuiltinClassLoader$3.run(BuiltinClassLoader.java:657)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:670)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:572)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:530)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:186)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:478)
at com.sun.javatest.regtest.agent.RStatus.passed(RStatus.java:36)
at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:83)
Caused by: java.lang.SecurityException: ("java.security.SecurityPermission" "getProperty.jdk.jar.disabledAlgorithms")
at DcmdMBeanPermissionsTest$CustomSecurityManager.checkPermission(DcmdMBeanPermissionsTest.java:91)
at java.base/java.security.Security.getProperty(Security.java:760)
at java.base/sun.security.util.AbstractAlgorithmConstraints.lambda$getAlgorithms$0(AbstractAlgorithmConstraints.java:49)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.security.util.AbstractAlgorithmConstraints.getAlgorithms(AbstractAlgorithmConstraints.java:48)
at java.base/sun.security.util.DisabledAlgorithmConstraints.<init>(DisabledAlgorithmConstraints.java:91)
at java.base/sun.security.util.DisabledAlgorithmConstraints.<init>(DisabledAlgorithmConstraints.java:77)
at java.base/sun.security.util.SignatureFileVerifier.<clinit>(SignatureFileVerifier.java:67)
... 17 more
- relates to
-
JDK-8170861 Remove DcmdMBeanPermissionsTest.java from ProblemList
- Resolved
-
CODETOOLS-7901859 jtreg4.2-b04 causes DcmdMBeanPermissionsTest to start failing
- Open
-
JDK-8176145 Shadow bug for CODETOOLS-7901859
- Closed