java.lang.NullPointerException

Stack Overflow | Lonzak | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if your path is correct, if it's correct already you have to register your path to the mapping configuration.
  2. 0

    GitHub comment 693#2819859

    GitHub | 5 years ago | bstansberry
    org.jboss.as.test.integration.ejb.mdb.cdi.MDBCdiIntegrationTestCase.testRequestScopeActiveDuringMdbInvocation: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NullPointerException

      No message provided

      at MyTest.testService()
    2. Unknown
      MyTest.testService
      1. MyTest.testService(MyTest.java:84)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    4. JUnit
      FrameworkMethod.invokeExplosively
      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)
      3 frames
    5. Arquillian TestRunner JUnit Core
      Arquillian$8$1.invoke
      1. org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:379)
      1 frame
    6. Arquillian Container Test Implementation Base
      LocalTestExecuter.execute
      1. org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    8. Arquillian Core Implementation Base
      EventImpl.fire
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      5. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      6. org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      6 frames
    9. Arquillian Container Test Implementation Base
      RemoteTestExecuter.execute
      1. org.jboss.arquillian.container.test.impl.client.protocol.local.LocalContainerMethodExecutor.invoke(LocalContainerMethodExecutor.java:50)
      2. org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:109)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    11. Arquillian Core Implementation Base
      EventImpl.fire
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      5. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      6. org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      6 frames
    12. Arquillian Container Test Implementation Base
      ClientTestExecuter.execute
      1. org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:57)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    14. Arquillian Core Implementation Base
      EventContextImpl.proceed
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      3 frames
    15. Arquillian Container Test Implementation Base
      ContainerEventController.createTestContext
      1. org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
      2. org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
      2 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    17. Arquillian Core Implementation Base
      EventContextImpl.proceed
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      2 frames
    18. Arquillian Test Implementation Base
      TestContextHandler.createTestContext
      1. org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
      1 frame
    19. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    20. Arquillian Core Implementation Base
      EventContextImpl.proceed
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      2 frames
    21. Arquillian Test Implementation Base
      TestContextHandler.createClassContext
      1. org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
      1 frame
    22. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    23. Arquillian Core Implementation Base
      EventContextImpl.proceed
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      2 frames
    24. Arquillian Test Implementation Base
      TestContextHandler.createSuiteContext
      1. org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
      1 frame
    25. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      4 frames
    26. Arquillian Core Implementation Base
      ManagerImpl.fire
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
      2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      3. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      3 frames
    27. Arquillian Test Implementation Base
      EventTestRunnerAdaptor.test
      1. org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:136)
      1 frame
    28. Arquillian TestRunner JUnit Core
      Arquillian$7.evaluate
      1. org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:372)
      2. org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:246)
      3. org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:431)
      4. org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:55)
      5. org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:260)
      6. org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:330)
      6 frames
    29. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      8 frames
    30. Arquillian TestRunner JUnit Core
      Arquillian$3.evaluate
      1. org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:205)
      2. org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:431)
      3. org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:55)
      4. org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:219)
      4 frames
    31. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      1 frame
    32. Arquillian TestRunner JUnit Core
      Arquillian.run
      1. org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:167)
      1 frame
    33. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      1 frame
    34. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames