Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2608

CayenneModeler: NPE when reverse engineering with an auto-adapter DataSource

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.RC1, 4.2.M1
    • 4.1.RC1, 4.2.M1
    • Modeler
    • None
    • CayenneModeler 4.1.B3-SNAPSHOT, my own Mac assembly

    Description

      0. In the modeler preferences create a DataSource with "Automatic" adapter
      1. Start a new project
      2. Create a new DataMap
      3. Switch to "DbImport" tab, click "Run Import"
      4. When prompted, select the DataSource above and click "Continue"

      Result: error dialog with the exception below.

      CayenneModeler Info
      Version: 4.1.B3-SNAPSHOT
      Build Date: Aug 20 2019 11:02:28
      Exception: 
      =================================
      java.lang.NullPointerException
      	at java.prefs/java.util.prefs.AbstractPreferences.put(AbstractPreferences.java:249)
      	at org.apache.cayenne.modeler.action.ReverseEngineeringAction.saveConnectionInfo(ReverseEngineeringAction.java:160)
      	at org.apache.cayenne.modeler.action.ReverseEngineeringAction.startImport(ReverseEngineeringAction.java:91)
      	at org.apache.cayenne.modeler.action.ReverseEngineeringAction.performAction(ReverseEngineeringAction.java:137)
      	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:171)
      	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
      	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
      	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
      	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
      	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
      	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
      	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
      	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
      	at java.desktop/java.awt.Component.processEvent(Component.java:6397)
      	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
      	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
      	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
      	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
      	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:389)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:389)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aarrsseni Arseni Bulatski
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment