java.lang.NullPointerException

Spring JIRA | Jack Punt | 6 years ago
  1. 0

    scaffold generation fails for DBRE generated domain objects. The first object that contains a Date field, fails when the show.jspx is generated. Something about the date patterns is failing: {code} roo> controller all --package ~.admin ... Created SRC_MAIN_WEBAPP\WEB-INF\views\members 7a89f73 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\list.jspx e37ac40 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\views.xml 45ddfe6 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\show.jspx cebd76a Updated SRC_MAIN_WEBAPP\WEB-INF\views\members\views.xml java.lang.NullPointerException at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.getDatePatterns(WebScaffoldMetadata.java:1231) at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.<init>(WebScaffoldMetadata.java:107) at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadataProviderImpl.getMetadata(WebScaffoldMetadataProviderImpl.java:86) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:266) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:143) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:141) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:217) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:187) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:141) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:619) {code}

    Spring JIRA | 6 years ago | Jack Punt
    java.lang.NullPointerException
  2. 0

    scaffold generation fails for DBRE generated domain objects. The first object that contains a Date field, fails when the show.jspx is generated. Something about the date patterns is failing: {code} roo> controller all --package ~.admin ... Created SRC_MAIN_WEBAPP\WEB-INF\views\members 7a89f73 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\list.jspx e37ac40 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\views.xml 45ddfe6 Created SRC_MAIN_WEBAPP\WEB-INF\views\members\show.jspx cebd76a Updated SRC_MAIN_WEBAPP\WEB-INF\views\members\views.xml java.lang.NullPointerException at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.getDatePatterns(WebScaffoldMetadata.java:1231) at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.<init>(WebScaffoldMetadata.java:107) at org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadataProviderImpl.getMetadata(WebScaffoldMetadataProviderImpl.java:86) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:266) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446) at org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:143) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:141) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:217) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:187) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:141) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:619) {code}

    Spring JIRA | 6 years ago | Jack Punt
    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.web.mvc.controller.WebScaffoldMetadata.getDatePatterns()
    2. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.getDatePatterns(WebScaffoldMetadata.java:1231)
      2. org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadata.<init>(WebScaffoldMetadata.java:107)
      3. org.springframework.roo.addon.web.mvc.controller.WebScaffoldMetadataProviderImpl.getMetadata(WebScaffoldMetadataProviderImpl.java:86)
      4. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:266)
      5. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136)
      6. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81)
      7. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179)
      8. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533)
      9. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446)
      10. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253)
      11. org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175)
      12. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136)
      13. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81)
      14. org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352)
      15. org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199)
      16. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262)
      17. org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52)
      18. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313)
      19. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136)
      20. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81)
      21. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:179)
      22. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getPathForType(JspViewManager.java:533)
      23. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.createFieldsForCreateAndUpdate(JspViewManager.java:446)
      24. org.springframework.roo.addon.web.mvc.jsp.JspViewManager.getCreateDocument(JspViewManager.java:253)
      25. org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.get(JspMetadataListener.java:175)
      26. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136)
      27. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81)
      28. org.springframework.roo.addon.web.mvc.jsp.JspMetadataListener.notify(JspMetadataListener.java:352)
      29. org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199)
      30. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262)
      31. org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52)
      32. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:313)
      33. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:136)
      34. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81)
      35. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:143)
      36. org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:199)
      37. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:262)
      38. org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:141)
      39. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344)
      40. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:217)
      41. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:187)
      42. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:141)
      43. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      44. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      45. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358)
      46. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132)
      46 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame