java.lang.NoClassDefFoundError: com/sun/media/jfxmediaimpl/platform/ios/IOSMediaPlayer at java.lang.Class.getDeclaredMethods0(java.base@9-ea/Native Method) at java.lang.Class.privateGetDeclaredMethods(java.base@9-ea/Class.java:2952) at java.lang.Class.getDeclaredMethod(java.base@9-ea/Class.java:2320)

JDK Bug System | Alexander Stepanov | 3 months ago
  1. 0

    [JDK-9] NoClassDefFoundError: javax/transaction/SystemException

    GitHub | 8 months ago | hasancelik
    java.lang.NoClassDefFoundError: javax/transaction/SystemException at java.lang.Class.getDeclaredMethods0(java.base@9-ea/Native Method) at java.lang.Class.privateGetDeclaredMethods(java.base@9-ea/Class.java:2937) at java.lang.Class.privateGetMethodRecursive(java.base@9-ea/Class.java:3282) at java.lang.Class.getMethod0(java.base@9-ea/Class.java:3252) at java.lang.Class.getMethod(java.base@9-ea/Class.java:1961)
  2. 0

    Today I tried to use jigsaw build 101 . Earlier I was using jigsaw build 96 . In build 101 GF stops starting up . It was starting up fine with build 96 . When I am trying to start the server using build 101 , I am getting the following exception Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder at java.lang.ClassLoader.defineClass1(java.base@9-ea/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-ea/ClassLoader.java:928) at java.security.SecureClassLoader.defineClass(java.base@9-ea/SecureClassLoader.java:152) at jdk.internal.misc.BuiltinClassLoader.defineClass(java.base@9-ea/BuiltinClassLoader.java:582) at jdk.internal.misc.BuiltinClassLoader.access$300(java.base@9-ea/BuiltinClassLoader.java:94) at jdk.internal.misc.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:490) at jdk.internal.misc.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:484) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at jdk.internal.misc.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:483) at jdk.internal.misc.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:430) at jdk.internal.misc.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:388) at jdk.internal.misc.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:177) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:373) at org.glassfish.security.common.SSHA.decode(SSHA.java:319) at org.glassfish.security.common.FileRealmHelper.decodeUser(FileRealmHelper.java:741) at org.glassfish.security.common.FileRealmHelper.loadKeyFile(FileRealmHelper.java:638) at org.glassfish.security.common.FileRealmHelper.<init>(FileRealmHelper.java:149) at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.doAdminPasswordCheck(StartDomainCommand.java:326) at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.executeCommand(StartDomainCommand.java:156) at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:322) at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:368) at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:302) at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56) Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Decoder at jdk.internal.misc.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:390) at jdk.internal.misc.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:177) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:373) ... 23 more As per Alan from JDK team the issue is There is effort underway to move or remove all non-critical APIs from sun.misc, see JEP 260 [1]. We hope to be at the point soon where the only critical APIs in sun.misc are those listed in the JEP. So sun.mic.BASE* has been removed as it's not a critical API. I wonder if the maintainers of org.glassfish.security.common.SSHA have looked at java.util.Base64? This was added in Java SE 8 in preparation for the removable of sun.misc.BASE64*. -Alan [1] http://openjdk.java.net/jeps/260

    Java.net JIRA | 10 months ago | Arindam Bandyopadhyay
    java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder at java.lang.ClassLoader.defineClass1(java.base@9-ea/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-ea/ClassLoader.java:928) at java.security.SecureClassLoader.defineClass(java.base@9-ea/SecureClassLoader.java:152) at jdk.internal.misc.BuiltinClassLoader.defineClass(java.base@9-ea/BuiltinClassLoader.java:582) at jdk.internal.misc.BuiltinClassLoader.access$300(java.base@9-ea/BuiltinClassLoader.java:94) at jdk.internal.misc.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:490) at jdk.internal.misc.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:484) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at jdk.internal.misc.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:483) at jdk.internal.misc.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:430) at jdk.internal.misc.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:388) at jdk.internal.misc.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:177) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:373)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 4#235871947

    GitHub | 4 months ago | zer0c0nf
    java.lang.NoClassDefFoundError: org/drftpd/vfs/InodeHandleInterface at java.lang.ClassLoader.defineClass1(java.base@9-ea/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-ea/ClassLoader.java:942) at java.security.SecureClassLoader.defineClass(java.base@9-ea/SecureClassLoader.java:150) at java.net.URLClassLoader.defineClass(java.base@9-ea/URLClassLoader.java:467) at java.net.URLClassLoader.access$100(java.base@9-ea/URLClassLoader.java:78) at java.net.URLClassLoader$1.run(java.base@9-ea/URLClassLoader.java:375) at java.net.URLClassLoader$1.run(java.base@9-ea/URLClassLoader.java:369) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java:368)
  5. 0

    After update Jenkins (via apt-get update && apt-get upgrade -y) Jenkins can't start on WWW I have errror: {code:java} hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity at hudson.WebAppMain$3.run(WebAppMain.java:241) Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity at javax.crypto.Mac.getInstance(java.base@9-ea/Mac.java:184) at jenkins.security.HMACConfidentialKey.createMac(HMACConfidentialKey.java:111) at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:69) at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:85) at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:178) at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:163) at hudson.model.User.load(User.java:196) at hudson.model.User.<init>(User.java:148) at hudson.model.User.getOrCreate(User.java:456) at hudson.model.User.getById(User.java:527) at hudson.security.HudsonPrivateSecurityRealm.createAccount(HudsonPrivateSecurityRealm.java:398) at jenkins.install.SetupWizard.init(SetupWizard.java:106) at jenkins.install.InstallState$3.initializeState(InstallState.java:105) at jenkins.model.Jenkins.setInstallState(Jenkins.java:970) at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:94) at jenkins.model.Jenkins.<init>(Jenkins.java:887) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:227) {code} Log : http://pastebin.com/JLvpF6Jm

    Jenkins JIRA | 2 months ago | Jarosław Maciejewski
    hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      com/sun/media/jfxmediaimpl/platform/ios/IOSMediaPlayer at java.lang.Class.getDeclaredMethods0(java.base@9-ea/Native Method) at java.lang.Class.privateGetDeclaredMethods(java.base@9-ea/Class.java:2952) at java.lang.Class.getDeclaredMethod(java.base@9-ea/Class.java:2320)

      at MediaTest.main()
    2. Unknown
      MediaTest.main
      1. MediaTest.main(MediaTest.java:6)
      1 frame