java.lang.ExceptionInInitializerError

GitHub | wu-sheng | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at org.h2.Driver.<init>()
  2. H2 Database Engine
    Driver.<clinit>
    1. org.h2.Driver.<init>(Driver.java)
    2. org.h2.Driver.classInitializer$AptLBoLS(Driver.java:36)
    3. org.h2.Driver.<clinit>(Driver.java)
    3 frames
  3. Java RT
    Field.set
    1. sun.misc.Unsafe.ensureClassInitialized(Native Method)
    2. sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    3. sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142)
    4. java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
    5. java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
    6. java.lang.reflect.Field.set(Field.java:764)
    6 frames
  4. net.bytebuddy.implementation
    LoadedTypeInitializer$Compound.onLoad
    1. net.bytebuddy.implementation.LoadedTypeInitializer$ForStaticField.onLoad(LoadedTypeInitializer.java:105)
    2. net.bytebuddy.implementation.LoadedTypeInitializer$Compound.onLoad(LoadedTypeInitializer.java:180)
    3. net.bytebuddy.implementation.LoadedTypeInitializer$Compound.onLoad(LoadedTypeInitializer.java:180)
    3 frames
  5. Byte Buddy (with dependencies)
    DynamicType$Default$Unloaded.load
    1. net.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:75)
    2. net.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:4523)
    2 frames
  6. com.ai.cloud
    TracingBootstrap.main
    1. com.ai.cloud.skywalking.plugin.TracingBootstrap.main(TracingBootstrap.java:52)
    1 frame
  7. test.ai.cloud
    H2JDBCTest.testMySqlJDBC
    1. test.ai.cloud.skywalking.plugin.h2.H2JDBCTest.testMySqlJDBC(H2JDBCTest.java:17)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. JUnit
    JUnitCore.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    14. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    14 frames
  10. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  11. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames