java.lang.NullPointerException

Spring JIRA | Ben Alex | 6 years 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.
  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

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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
      DefaultProcessManager$2.run
      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.scanAll(PollingFileMonitorService.java:304)
      5. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:178)
      6. org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:125)
      7. org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:240)
      8. org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:68)
      8 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame