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

com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java failing with jtreg tip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-svc
    • None

      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

            hb Harsha Wardhana B (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: