java.lang.NullPointerException

JIRA | Cédric Thiebault | 4 years ago
  1. 0

    In {{opal-shell}}, there's a {{NullPointerException}} but Maven see it as success... {code} ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.obiba.opal.shell.OpalShellTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074 sec Running org.obiba.opal.shell.service.impl.DefaultCommandJobServiceTest log4j:WARN No appenders could be found for logger (org.obiba.opal.shell.service.impl.DefaultCommandJobService). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 sec Running org.obiba.opal.shell.service.impl.quartz.QuartzCommandSchedulerServiceImplTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec Running org.obiba.opal.shell.commands.ImportCommandTest Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec <<< FAILURE! Running org.obiba.opal.shell.commands.DecryptCommandTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec Running org.obiba.opal.shell.commands.ShowCommandTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec Running org.obiba.opal.shell.commands.ReportCommandTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec Running org.obiba.opal.shell.commands.CopyCommandTest java.lang.NullPointerException at org.obiba.opal.shell.commands.AbstractOpalRuntimeDependentCommand.getFileSystemRoot(AbstractOpalRuntimeDependentCommand.java:52) at org.obiba.opal.shell.commands.AbstractOpalRuntimeDependentCommand.getFile(AbstractOpalRuntimeDependentCommand.java:56) at org.obiba.opal.shell.commands.CopyCommand.resolveOutputFileAndCreateParentFolders(CopyCommand.java:288) at org.obiba.opal.shell.commands.CopyCommand.getOutputFile(CopyCommand.java:273) at org.obiba.opal.shell.commands.CopyCommand.getDestinationDatasource(CopyCommand.java:151) at org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:82) at org.obiba.opal.shell.commands.CopyCommandTest.testMultipleTablesToExcelFile(CopyCommandTest.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec Running org.obiba.opal.shell.commands.KeyCommandTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec Running org.obiba.opal.web.shell.reporting.ReportTemplateResourceTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.066 sec Running org.obiba.opal.web.shell.reporting.ReportTemplatesResourceTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running org.obiba.opal.web.shell.WebShellResourceTest Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec {code}

    JIRA | 4 years ago | Cédric Thiebault
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: 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 org.obiba.opal.shell.commands.AbstractOpalRuntimeDependentCommand.getFileSystemRoot()
    2. org.obiba.opal
      CopyCommandTest.testMultipleTablesToExcelFile
      1. org.obiba.opal.shell.commands.AbstractOpalRuntimeDependentCommand.getFileSystemRoot(AbstractOpalRuntimeDependentCommand.java:52)
      2. org.obiba.opal.shell.commands.AbstractOpalRuntimeDependentCommand.getFile(AbstractOpalRuntimeDependentCommand.java:56)
      3. org.obiba.opal.shell.commands.CopyCommand.resolveOutputFileAndCreateParentFolders(CopyCommand.java:288)
      4. org.obiba.opal.shell.commands.CopyCommand.getOutputFile(CopyCommand.java:273)
      5. org.obiba.opal.shell.commands.CopyCommand.getDestinationDatasource(CopyCommand.java:151)
      6. org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:82)
      7. org.obiba.opal.shell.commands.CopyCommandTest.testMultipleTablesToExcelFile(CopyCommandTest.java:65)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      14 frames
    5. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    7. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
      5 frames