cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Veprev (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1697) Error on Save after importing database
Date Wed, 18 Apr 2012 07:54:57 GMT

     [ https://issues.apache.org/jira/browse/CAY-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrei Veprev updated CAY-1697:
-------------------------------

    Attachment: CAY-1697.patch

Patch with the fix
                
> Error on Save after importing database
> --------------------------------------
>
>                 Key: CAY-1697
>                 URL: https://issues.apache.org/jira/browse/CAY-1697
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M3
>            Reporter: Andrei Veprev
>         Attachments: CAY-1697.patch
>
>
> Precondition: create db with one/or several tables
> 1. create new project in CayenneModeler (create only dataNode /or dataNode and dataMap).
Save
> 2. Select Tools -> Reengineer Database Schema
> 3. Import tables from earlier created derby database -> OK
> 4. Click Save button
> -> error appears
> Exception: 
> =================================
> java.lang.NullPointerException
> at org.apache.cayenne.project.FileProjectSaver.createSaveUnit(FileProjectSaver.java:125)
> at org.apache.cayenne.project.FileProjectSaver.save(FileProjectSaver.java:75)
> at org.apache.cayenne.modeler.action.SaveAction.saveAll(SaveAction.java:70)
> at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:190)
> at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:179)
> at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
> at java.awt.Component.processMouseEvent(Component.java:6348)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> at java.awt.Component.processEvent(Component.java:6113)
> at java.awt.Container.processEvent(Container.java:2085)
> at java.awt.Component.dispatchEventImpl(Component.java:4714)
> at java.awt.Container.dispatchEventImpl(Container.java:2143)
> at java.awt.Component.dispatchEvent(Component.java:4544)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
> at java.awt.Container.dispatchEventImpl(Container.java:2129)
> at java.awt.Window.dispatchEventImpl(Window.java:2475)
> at java.awt.Component.dispatchEvent(Component.java:4544)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message