Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2436

NPE in DBRE when using the Postgres World sample database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.3.RELEASE
    • Fix Version/s: 1.1.4.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      NPE in DBRE when using the Postgres World sample database (see http://pgfoundry.org/frs/?group_id=1000150&release_id=584):

      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)
      

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            sschmidt Stefan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: