java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver at java.lang.Class.forName0(java.base@9-internal/Native Method) at java.lang.Class.forName(java.base@9-internal/Class.java:375) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:576) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:568) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:467) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:444)

symmetricds | gyrem | 2 months ago
  1. 0

    Sybase db.driver results in Oracle error msg?

    symmetricds | 2 months ago | gyrem
    java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver at java.lang.Class.forName0(java.base@9-internal/Native Method) at java.lang.Class.forName(java.base@9-internal/Class.java:375) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:576) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:568) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:467) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:444)
  2. 0

    CTW failed in nightlies with: 1. Exception in thread "main" java.lang.AssertionError at sun.hotspot.tools.ctw.Utils.fileNameToClassName(Utils.java:209) at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-internal/ReferencePipeline.java:195) at java.util.stream.ReferencePipeline$2$1.accept(java.base@9-internal/ReferencePipeline.java:177) at java.util.stream.ReferencePipeline$2$1.accept(java.base@9-internal/ReferencePipeline.java:177) at java.util.Spliterators$ArraySpliterator.forEachRemaining(java.base@9-internal/Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(java.base@9-internal/AbstractPipeline.java:484) at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:474) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(java.base@9-internal/ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(java.base@9-internal/ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(java.base@9-internal/ReferencePipeline.java:430) at sun.hotspot.tools.ctw.ClassPathJimageEntry.process(ClassPathJimageEntry.java:63) at sun.hotspot.tools.ctw.CompileTheWorld.main(CompileTheWorld.java:84) 2. Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass1(java.base@9-internal/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-internal/ClassLoader.java:942) at java.security.SecureClassLoader.defineClass(java.base@9-internal/SecureClassLoader.java:150) at java.net.URLClassLoader.defineClass(java.base@9-internal/URLClassLoader.java:467) at java.net.URLClassLoader.access$100(java.base@9-internal/URLClassLoader.java:78) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:375) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:369) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:368) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) at java.lang.ClassLoader.defineClass1(java.base@9-internal/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-internal/ClassLoader.java:942) at java.security.SecureClassLoader.defineClass(java.base@9-internal/SecureClassLoader.java:150) at java.net.URLClassLoader.defineClass(java.base@9-internal/URLClassLoader.java:467) at java.net.URLClassLoader.access$100(java.base@9-internal/URLClassLoader.java:78) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:375) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:369) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:368) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) at sun.hotspot.tools.ctw.PathHandler.processClass(PathHandler.java:153) at sun.hotspot.tools.ctw.ClassPathJarEntry.processJarEntry(ClassPathJarEntry.java:76) at sun.hotspot.tools.ctw.ClassPathJarEntry.process(ClassPathJarEntry.java:63) at sun.hotspot.tools.ctw.CompileTheWorld.main(CompileTheWorld.java:84) Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:388) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) ... 26 more

    JDK Bug System | 3 months ago | Igor Veresov
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass1(java.base@9-internal/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-internal/ClassLoader.java:942) at java.security.SecureClassLoader.defineClass(java.base@9-internal/SecureClassLoader.java:150) at java.net.URLClassLoader.defineClass(java.base@9-internal/URLClassLoader.java:467) at java.net.URLClassLoader.access$100(java.base@9-internal/URLClassLoader.java:78) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:375) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:369) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:368) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) at java.lang.ClassLoader.defineClass1(java.base@9-internal/Native Method) at java.lang.ClassLoader.defineClass(java.base@9-internal/ClassLoader.java:942) at java.security.SecureClassLoader.defineClass(java.base@9-internal/SecureClassLoader.java:150) at java.net.URLClassLoader.defineClass(java.base@9-internal/URLClassLoader.java:467) at java.net.URLClassLoader.access$100(java.base@9-internal/URLClassLoader.java:78) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:375) at java.net.URLClassLoader$1.run(java.base@9-internal/URLClassLoader.java:369) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:368) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
  3. 0

    Some tests in java/lang/management fail with NCDFE: com/sun/management/internal/GarbageCollectorExtImpl when executed with the declared module dependences. Such as for java/lang/management/BufferPoolMXBean/Basic.java: java.lang.NoClassDefFoundError: com/sun/management/internal/GarbageCollectorExtImpl at sun.management.MemoryImpl.getMemoryManagers0(java.management@9-internal/Native Method) at sun.management.MemoryImpl.getMemoryManagers(java.management@9-internal/MemoryImpl.java:98) at sun.management.ManagementFactoryHelper.getGarbageCollectorMXBeans(java.management@9-internal/ManagementFactoryHelper.java:137) at java.lang.management.DefaultPlatformMBeanProvider$4.nameToMBeanMap(java.management@9-internal/DefaultPlatformMBeanProvider.java:185) at java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(java.management@9-internal/ManagementFactory.java:478) at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-internal/ReferencePipeline.java:269) at java.util.stream.ReferencePipeline$2$1.accept(java.base@9-internal/ReferencePipeline.java:177) at java.util.HashMap$ValueSpliterator.forEachRemaining(java.base@9-internal/HashMap.java:1672) at java.util.stream.AbstractPipeline.copyInto(java.base@9-internal/AbstractPipeline.java:484) at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:474) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(java.base@9-internal/ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(java.base@9-internal/ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(java.base@9-internal/ReferencePipeline.java:430) at java.lang.management.ManagementFactory.getPlatformMBeanServer(java.management@9-internal/ManagementFactory.java:479) at Basic.main(Basic.java:100) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:804)

    JDK Bug System | 7 months ago | Aleksandre Iline
    java.lang.NoClassDefFoundError: com/sun/management/internal/GarbageCollectorExtImpl at sun.management.MemoryImpl.getMemoryManagers0(java.management@9-internal/Native Method) at sun.management.MemoryImpl.getMemoryManagers(java.management@9-internal/MemoryImpl.java:98) at sun.management.ManagementFactoryHelper.getGarbageCollectorMXBeans(java.management@9-internal/ManagementFactoryHelper.java:137) at java.lang.management.DefaultPlatformMBeanProvider$4.nameToMBeanMap(java.management@9-internal/DefaultPlatformMBeanProvider.java:185) at java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(java.management@9-internal/ManagementFactory.java:478) at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-internal/ReferencePipeline.java:269) at java.util.stream.ReferencePipeline$2$1.accept(java.base@9-internal/ReferencePipeline.java:177) at java.util.HashMap$ValueSpliterator.forEachRemaining(java.base@9-internal/HashMap.java:1672) at java.util.stream.AbstractPipeline.copyInto(java.base@9-internal/AbstractPipeline.java:484) at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:474) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(java.base@9-internal/ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(java.base@9-internal/ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(java.base@9-internal/ReferencePipeline.java:430) at java.lang.management.ManagementFactory.getPlatformMBeanServer(java.management@9-internal/ManagementFactory.java:479)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 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)

    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

      Could not initialize class oracle.jdbc.OracleDriver at java.lang.Class.forName0(java.base@9-internal/Native Method) at java.lang.Class.forName(java.base@9-internal/Class.java:375) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:576) at java.sql.DriverManager.isDriverAllowed(java.sql@9-internal/DriverManager.java:568) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:467) at java.sql.DriverManager.getDrivers(java.sql@9-internal/DriverManager.java:444)

      at org.apache.commons.dbcp.BasicDataSource.<clinit>()
    2. Commons DBCP
      BasicDataSource.<clinit>
      1. org.apache.commons.dbcp.BasicDataSource.<clinit>(BasicDataSource.java:57)
      1 frame
    3. org.jumpmind.db
      BasicDataSourceFactory.create
      1. org.jumpmind.db.util.BasicDataSourceFactory.create(BasicDataSourceFactory.java:67)
      1 frame
    4. org.jumpmind.symmetric
      SymmetricAdmin.main
      1. org.jumpmind.symmetric.ClientSymmetricEngine.createBasicDataSource(ClientSymmetricEngine.java:263)
      2. org.jumpmind.symmetric.AbstractCommandLauncher.testConnection(AbstractCommandLauncher.java:393)
      3. org.jumpmind.symmetric.AbstractCommandLauncher.getSymmetricEngine(AbstractCommandLauncher.java:383)
      4. org.jumpmind.symmetric.AbstractCommandLauncher.getSymmetricEngine(AbstractCommandLauncher.java:377)
      5. org.jumpmind.symmetric.SymmetricAdmin.createSymTables(SymmetricAdmin.java:547)
      6. org.jumpmind.symmetric.SymmetricAdmin.executeWithOptions(SymmetricAdmin.java:316)
      7. org.jumpmind.symmetric.AbstractCommandLauncher.execute(AbstractCommandLauncher.java:190)
      8. org.jumpmind.symmetric.SymmetricAdmin.main(SymmetricAdmin.java:139)
      8 frames