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

java.lang.IllegalAccessError: class jdk.internal.event.X509CertificateEvent (in module java.base) cannot access class jdk.jfr.internal.handlers.EventHandler (in module jdk.jfr) because module java.base does not read module jdk.jfr

    Details

    • Subcomponent:
      jfr
    • Resolved In Build:
      b22
    • Verification:
      Verified

      Backports

        Description

        The application starts failing with the following exception:

        [glue.process.err] [stress.process.err] --------------------------------------------------------------------------------
        [glue.process.err] [stress.process.err] SpecJbb2005StressModule got uncaught exception in init at Tue Nov 20 19:09:37 PST 2018 (1542769777652)
        [glue.process.err] [stress.process.err] java.lang.IllegalAccessError: class jdk.internal.event.X509CertificateEvent (in module java.base) cannot access class jdk.jfr.internal.handlers.EventHandler (in module jdk.jfr) because module java.base does not read module jdk.jfr
        [glue.process.err] [stress.process.err] at java.base/jdk.internal.event.X509CertificateEvent.shouldCommit(X509CertificateEvent.java)
        [glue.process.err] [stress.process.err] at java.base/sun.security.provider.X509Factory.commitEvent(X509Factory.java:773)
        [glue.process.err] [stress.process.err] at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:108)
        [glue.process.err] [stress.process.err] at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:328)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parse(PKCS7.java:186)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parse(PKCS7.java:154)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.<init>(PKCS7.java:136)
        [glue.process.err] [stress.process.err] at java.base/sun.security.util.SignatureFileVerifier.<init>(SignatureFileVerifier.java:127)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:297)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:758)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarFile.getInputStream(JarFile.java:839)
        [glue.process.err] [stress.process.err] at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:167)
        [glue.process.err] [stress.process.err] at java.base/java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:293)
        [glue.process.err] [stress.process.err] at applications.kitchensink.utils.Specjbb2005ClassLoader.loadClass(Specjbb2005ClassLoader.java:183)
        [glue.process.err] [stress.process.err] at applications.kitchensink.process.stress.modules.SpecJbb2005StressModule.init(SpecJbb2005StressModule.java:111)
        [glue.process.err] [stress.process.err] at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:48)
        [glue.process.err] [stress.process.err] --------------------------------------------------------------------------------
        [glue.process.err] [stress.process.err] Iteration start: SpecJvm2008Batch at Tue Nov 20 19:09:38 PST 2018
        [glue.process.err] [stress.process.err] Iteration start: SpecJvm2008Derby at Tue Nov 20 19:09:38 PST 2018
        [glue.process.err] [stress.process.err] --------------------------------------------------------------------------------
        [glue.process.err] [stress.process.err] SpecJvm2008DerbyStressModule got uncaught exception in execute at Tue Nov 20 19:09:39 PST 2018 (1542769779492)
        [glue.process.err] [stress.process.err] java.lang.IllegalAccessError: class jdk.internal.event.X509CertificateEvent (in module java.base) cannot access class jdk.jfr.internal.handlers.EventHandler (in module jdk.jfr) because module java.base does not read module jdk.jfr
        [glue.process.err] [stress.process.err] at java.base/jdk.internal.event.X509CertificateEvent.shouldCommit(X509CertificateEvent.java)
        [glue.process.err] [stress.process.err] at java.base/sun.security.provider.X509Factory.commitEvent(X509Factory.java:773)
        [glue.process.err] [stress.process.err] at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:108)
        [glue.process.err] [stress.process.err] at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:328)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parse(PKCS7.java:186)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.parse(PKCS7.java:154)
        [glue.process.err] [stress.process.err] at java.base/sun.security.pkcs.PKCS7.<init>(PKCS7.java:136)
        [glue.process.err] [stress.process.err] at java.base/sun.security.util.SignatureFileVerifier.<init>(SignatureFileVerifier.java:127)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:297)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:758)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JarFile.ensureInitialization(JarFile.java:1035)
        [glue.process.err] [stress.process.err] at java.base/java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(JavaUtilJarAccessImpl.java:69)
        [glue.process.err] [stress.process.err] at java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:870)
        [glue.process.err] [stress.process.err] at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:482)
        [glue.process.err] [stress.process.err] at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:423)
        [glue.process.err] [stress.process.err] at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:417)
        [glue.process.err] [stress.process.err] at java.base/java.security.AccessController.doPrivileged(AccessController.java:688)
        [glue.process.err] [stress.process.err] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:416)
        [glue.process.err] [stress.process.err] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
        [glue.process.err] [stress.process.err] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        [glue.process.err] [stress.process.err] at applications.kitchensink.utils.GetOutUpdatingClassLoader.loadClass(GetOutUpdatingClassLoader.java:85)
        [glue.process.err] [stress.process.err] at applications.kitchensink.process.stress.modules.SpecJvm2008StressModule.execute(SpecJvm2008StressModule.java:187)
        [glue.process.err] [stress.process.err] at applications.kitchensink.process.stress.modules.StressModule.run(StressModule.java:66)
        [glue.process.err] [stress.process.err] --------------------------------------------------------------------------------

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mgronlun Markus Grönlund
                  Reporter:
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: