[OS-JIRA] Created: (CAY-161) Modeler exception thrown during eomodel import

From: jir..bjectstyle.org
Date: Thu Jul 08 2004 - 15:46:46 EDT

  • Next message: Mike Kienenberger: "Re: CAY-160 -- Database reconnect support? [Oracle 9i]"

    Message:

      A new issue has been created in JIRA.

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

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

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-161
        Summary: Modeler exception thrown during eomodel import
           Type: Bug

         Status: Assigned
       Priority: Minor

        Project: Cayenne
     Components:
                 CayenneModeler GUI
       Versions:
                 1.1 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Scott Anderson

        Created: Thu, 8 Jul 2004 3:45 PM
        Updated: Thu, 8 Jul 2004 3:45 PM
    Environment: Mac OS X, Java 1.4.2

    Description:
    During import of an eomodel from the modeling tool, this exception was tossed with suggestion to report it here. The contact_channel table is the parent for a single-table inheritance scheme with 5 or 6 subtypes.

    CayenneModeler Info
    Version: 1.1M7_1
    Build Date: June 15 2004
    Exception:
    =================================
    java.lang.IllegalArgumentException: Attempt to insert duplicate key. [key 'channelTimeframeMaps', parent 'CONTACT_CHANNEL3', child 'channelTimeframeMaps']
            at org.objectstyle.cayenne.util.CayenneMap.put(CayenneMap.java:146)
            at org.objectstyle.cayenne.map.Entity.addRelationship(Entity.java:208)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.makeRelationships(EOModelProcessor.java:434)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:130)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:96)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.importEOModel(ImportEOModelAction.java:127)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.performAction(ImportEOModelAction.java:104)
            at org.objectstyle.cayenne.modeler.action.CayenneAction.actionPerformed(CayenneAction.java:184)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
            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:234)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
            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 : Thu Jul 08 2004 - 15:46:48 EDT