java.lang.NullPointerException

Spring JIRA | Ben Alex | 6 years ago
  1. 0

    Load roo-dev in an empty directory, hitting TAB three times during load. Paste in "project com.foo" and hit ENTER also during load. You should see the NPE as per below. {code} balex@balex-e4310:~/hello$ rm -rf * .*; rm -rf ~/projects/roo/bootstrap/target/osgi; roo-dev rm: cannot remove directory: `.' rm: cannot remove directory: `..' ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev a1c2b0d] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. poll process quit reference script system version roo> */ /* // ; cloud date development exit flash git help osgi pgp poll process proxy quit reference script system version roo> */ /* // ; cloud date development download exit flash git help osgi pgp poll process project proxy quit reference script system version roo> */ /* // ; cloud date development download exit flash focus git help hint metadata osgi pgp poll process project proxy quit reference script system version roo> project com.foo bde1199 Created ROOT/pom.xml java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtOperationsImpl.notify(GwtOperationsImpl.java:133) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:196) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:189) at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:106) at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36) 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.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134) at java.lang.Thread.run(Thread.java:679) [Spring Roo Process Manager Background Polling Thread] java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtOperationsImpl.notify(GwtOperationsImpl.java:133) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:196) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:304) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:178) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:125) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:240) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:68) at java.lang.Thread.run(Thread.java:679) com.foo roo> q{code}

    Spring JIRA | 6 years ago | Ben Alex
    java.lang.NullPointerException
  2. 0

    Load roo-dev in an empty directory, hitting TAB three times during load. Paste in "project com.foo" and hit ENTER also during load. You should see the NPE as per below. {code} balex@balex-e4310:~/hello$ rm -rf * .*; rm -rf ~/projects/roo/bootstrap/target/osgi; roo-dev rm: cannot remove directory: `.' rm: cannot remove directory: `..' ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev a1c2b0d] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. poll process quit reference script system version roo> */ /* // ; cloud date development exit flash git help osgi pgp poll process proxy quit reference script system version roo> */ /* // ; cloud date development download exit flash git help osgi pgp poll process project proxy quit reference script system version roo> */ /* // ; cloud date development download exit flash focus git help hint metadata osgi pgp poll process project proxy quit reference script system version roo> project com.foo bde1199 Created ROOT/pom.xml java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtOperationsImpl.notify(GwtOperationsImpl.java:133) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:196) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:189) at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:106) at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36) 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.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134) at java.lang.Thread.run(Thread.java:679) [Spring Roo Process Manager Background Polling Thread] java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtOperationsImpl.notify(GwtOperationsImpl.java:133) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233) at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:196) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:304) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:178) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:125) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:240) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:68) at java.lang.Thread.run(Thread.java:679) com.foo roo> q{code}

    Spring JIRA | 6 years ago | Ben Alex
    java.lang.NullPointerException
  3. 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
  4. 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.springframework.roo.addon.gwt.GwtOperationsImpl.notify()
    2. Spring Roo - Annotations (ASLv2 Licensed)
      GwtOperationsImpl.notify
      1. org.springframework.roo.addon.gwt.GwtOperationsImpl.notify(GwtOperationsImpl.java:133)
      1 frame
    3. org.springframework.roo
      MavenCommands.createProject
      1. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:233)
      2. org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:196)
      3. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330)
      4. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213)
      5. org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:189)
      6. org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:106)
      7. org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36)
      7 frames
    4. 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
    5. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
      5. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134)
      8 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame