java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • NPE in DBRE when using the Postgres World sample database (see http://pgfoundry.org/frs/?group_id=1000150&release_id=584): {code} java.lang.NullPointerException at org.springframework.roo.addon.dbre.DbreMetadata.getField(DbreMetadata.java:645) at org.springframework.roo.addon.dbre.DbreMetadata.addOtherFields(DbreMetadata.java:551) at org.springframework.roo.addon.dbre.DbreMetadata.<init>(DbreMetadata.java:125) at org.springframework.roo.addon.dbre.DbreMetadataProviderImpl.getMetadata(DbreMetadataProviderImpl.java:110) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.notify(DbreDatabaseListenerImpl.java:183) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.reverseEngineer(DbreDatabaseListenerImpl.java:169) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.deserializeDatabase(DbreDatabaseListenerImpl.java:104) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.onFileEvent(DbreDatabaseListenerImpl.java:83) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189) 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:680) {code}
    via by Stefan Schmidt,
  • NPE in DBRE when using the Postgres World sample database (see http://pgfoundry.org/frs/?group_id=1000150&release_id=584): {code} java.lang.NullPointerException at org.springframework.roo.addon.dbre.DbreMetadata.getField(DbreMetadata.java:645) at org.springframework.roo.addon.dbre.DbreMetadata.addOtherFields(DbreMetadata.java:551) at org.springframework.roo.addon.dbre.DbreMetadata.<init>(DbreMetadata.java:125) at org.springframework.roo.addon.dbre.DbreMetadataProviderImpl.getMetadata(DbreMetadataProviderImpl.java:110) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.notify(DbreDatabaseListenerImpl.java:183) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.reverseEngineer(DbreDatabaseListenerImpl.java:169) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.deserializeDatabase(DbreDatabaseListenerImpl.java:104) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.onFileEvent(DbreDatabaseListenerImpl.java:83) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189) 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:680) {code}
    via by Stefan Schmidt,
    • java.lang.NullPointerException at org.springframework.roo.addon.dbre.DbreMetadata.getField(DbreMetadata.java:645) at org.springframework.roo.addon.dbre.DbreMetadata.addOtherFields(DbreMetadata.java:551) at org.springframework.roo.addon.dbre.DbreMetadata.<init>(DbreMetadata.java:125) at org.springframework.roo.addon.dbre.DbreMetadataProviderImpl.getMetadata(DbreMetadataProviderImpl.java:110) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214) at org.springframework.roo.metadata.AbstractHashCodeTrackingMetadataNotifier.notifyIfRequired(AbstractHashCodeTrackingMetadataNotifier.java:52) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.notify(DbreDatabaseListenerImpl.java:183) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.reverseEngineer(DbreDatabaseListenerImpl.java:169) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.deserializeDatabase(DbreDatabaseListenerImpl.java:104) at org.springframework.roo.addon.dbre.DbreDatabaseListenerImpl.onFileEvent(DbreDatabaseListenerImpl.java:83) 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.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189) 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:680)
    No Bugmate found.