java.lang.NullPointerException

Stack Overflow | LaCrampe | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.agc.test.common.persistence.PersistenceTestCase.getTransaction()
  2. com.agc.test
    PersistenceTestCase.after
    1. com.agc.test.common.persistence.PersistenceTestCase.getTransaction(PersistenceTestCase.java:132)
    2. com.agc.test.common.persistence.PersistenceTestCase.after(PersistenceTestCase.java:254)
    2 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    4. java.lang.reflect.Method.invoke(Method.java:620)
    4 frames
  4. JUnit
    MethodRoadie.runBeforesThenTestThenAfters
    1. org.junit.internal.runners.MethodRoadie.runAfters(MethodRoadie.java:149)
    2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:101)
    2 frames
  5. powermock-module-junit4
    PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters
    1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:300)
    2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:131)
    3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.access$100(PowerMockJUnit47RunnerDelegateImpl.java:59)
    4. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner$TestExecutorStatement.evaluate(PowerMockJUnit47RunnerDelegateImpl.java:147)
    5. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.evaluateStatement(PowerMockJUnit47RunnerDelegateImpl.java:107)
    6. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
    7. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:288)
    7 frames
  6. JUnit
    MethodRoadie.run
    1. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:86)
    2. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
    2 frames
  7. powermock-module-junit4
    PowerMockJUnit44RunnerDelegateImpl$1.run
    1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:208)
    2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:147)
    3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:121)
    3 frames
  8. JUnit
    ClassRoadie.runProtected
    1. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:33)
    2. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:45)
    2 frames
  9. powermock-module-junit4
    PowerMockJUnit44RunnerDelegateImpl.run
    1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:123)
    1 frame
  10. powermock-module-junit4-common
    AbstractCommonPowerMockRunner.run
    1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:121)
    2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
    2 frames
  11. powermock-module-junit4
    PowerMockRunner.run
    1. org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
    1 frame