[OS-JIRA] Created: (CAY-66) Sync ObjectEntity with DBEntity failed

From: jir..bjectstyle.org
Date: Sat Dec 20 2003 - 21:54:18 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-67) src/cayenne/resources/scripts/build.xml needs an update"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-66

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-66
        Summary: Sync ObjectEntity with DBEntity failed
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
       Versions:
                 1.0 [STABLE]

       Assignee: Andrus Adamchik
       Reporter: Leif Ashley

        Created: Sat, 20 Dec 2003 9:53 PM
        Updated: Sat, 20 Dec 2003 9:53 PM
    Environment: WinXP, JSDK 1.4, MySql

    Description:
    I tried to use the function to update an object from a DB table where the attributes did not match. My expectation was the GUI would replace/update the object attributes relationships to match the DB.

    The error window said to copy/paste the info, so here it is:
    CayenneModeler Info

    Version: 1.0.4

    Build Date: December 14 2003

    Exception:

    =================================

    java.lang.IllegalArgumentException: Attempt to insert duplicate key. [key 'description', parent 'Category', child 'description']

            at org.objectstyle.cayenne.util.CayenneMap.put(CayenneMap.java:146)

            at org.objectstyle.cayenne.map.Entity.addAttribute(Entity.java:166)

            at org.objectstyle.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity(EntityMergeSupport.java:123)

            at org.objectstyle.cayenne.modeler.action.ObjEntitySyncAction.synchObjEntity(ObjEntitySyncAction.java:97)

            at org.objectstyle.cayenne.modeler.action.ObjEntitySyncAction.performAction(ObjEntitySyncAction.java:87)

            at org.objectstyle.cayenne.modeler.action.CayenneAction.actionPerformed(CayenneAction.java:188)

            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

            at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)

            at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

            at java.awt.Component.processMouseEvent(Component.java:5100)

            at java.awt.Component.processEvent(Component.java:4897)

            at java.awt.Container.processEvent(Container.java:1569)

            at java.awt.Component.dispatchEventImpl(Component.java:3615)

            at java.awt.Container.dispatchEventImpl(Container.java:1627)

            at java.awt.Component.dispatchEvent(Component.java:3477)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

            at java.awt.Container.dispatchEventImpl(Container.java:1613)

            at java.awt.Window.dispatchEventImpl(Window.java:1606)

            at java.awt.Component.dispatchEvent(Component.java:3477)

            at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

            at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sat Dec 20 2003 - 21:54:18 EST