cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1736) IllegalArgumentException when synchronizing entities in the Modeler
Date Mon, 18 Feb 2013 12:23:13 GMT

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

Andrus Adamchik updated CAY-1736:
---------------------------------

    Fix Version/s:     (was: 3.1B2)
                   3.1B3
    
> IllegalArgumentException when synchronizing entities in the Modeler
> -------------------------------------------------------------------
>
>                 Key: CAY-1736
>                 URL: https://issues.apache.org/jira/browse/CAY-1736
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1B1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.1B3
>
>         Attachments: 0001-CAY-1736-IllegalArgumentException-when-synchronizing.patch
>
>
> When synchronizing DbEntity with ObjEntity ...
> DbEntity change was deleting "application" column and adding "application_id" column
and a relationship named "application" based on that FK.
> CayenneModeler Info
> Version: 3.1B1
> Build Date: May 28 2012 21:18:00
> Exception: 
> =================================
> java.lang.IllegalArgumentException: Relationship name conflict with existing attribute
'application'
> 	at org.apache.cayenne.map.Entity.addRelationship(Entity.java:203)
> 	at org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity(EntityMergeSupport.java:169)
> 	at org.apache.cayenne.modeler.action.ObjEntitySyncAction.synchObjEntity(ObjEntitySyncAction.java:84)
> 	at org.apache.cayenne.modeler.action.ObjEntitySyncAction.performAction(ObjEntitySyncAction.java:68)
> 	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:6375)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> 	at java.awt.Component.processEvent(Component.java:6140)
> 	at java.awt.Container.processEvent(Container.java:2083)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4737)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2141)
> 	at java.awt.Component.dispatchEvent(Component.java:4565)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2127)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2482)
> 	at java.awt.Component.dispatchEvent(Component.java:4565)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
> 	at java.awt.EventQueue.access$000(EventQueue.java:85)
> 	at java.awt.EventQueue$1.run(EventQueue.java:643)
> 	at java.awt.EventQueue$1.run(EventQueue.java:641)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
> 	at java.awt.EventQueue$2.run(EventQueue.java:657)
> 	at java.awt.EventQueue$2.run(EventQueue.java:655)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
> 	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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message