[OS-JIRA] Created: (CAY-333) modeler threw exception when attempting to delete an object entity

From: jira-norepl..bjectstyle.org
Date: Thu Jun 23 2005 - 21:58:39 EDT

  • Next message: Mike Kienenberger: "CAY-15: still no descriptive exception"

    Message:

      A new issue has been created in JIRA.

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

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

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-333
        Summary: modeler threw exception when attempting to delete an object entity
           Type: Bug

         Status: Assigned
       Priority: Major

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

       Assignee: Andrus Adamchik
       Reporter: Robert Zeigler

        Created: Thu, 23 Jun 2005 9:58 PM
        Updated: Thu, 23 Jun 2005 9:58 PM
    Environment: Linux, java 1.4.2_01

    Description:
    I created three database entities with some very minimal attributes. (I will post datamap in a followup).
    I selected the first entity, hit the "create class" button in the toolbar and the class was created, but then I realized that I had some relationships I wanted to define first. I immediately deleted the class, and got the following exception:

    CayenneModeler Info
    Version: 1.2M4
    Build Date: May 7 2005
    Exception:
    =================================
    java.lang.ArrayIndexOutOfBoundsException
            at java.lang.System.arraycopy(Native Method)
            at org.objectstyle.cayenne.modeler.util.CircularArray.remove(CircularArray.java:289)
            at org.objectstyle.cayenne.modeler.ProjectController.removeFromHistory(ProjectController.java:426)
            at org.objectstyle.cayenne.modeler.ProjectController.fireObjEntityEvent(ProjectController.java:779)
            at org.objectstyle.cayenne.modeler.action.RemoveAction.removeObjEntity(RemoveAction.java:258)
            at org.objectstyle.cayenne.modeler.action.RemoveAction.remove(RemoveAction.java:145)
            at org.objectstyle.cayenne.modeler.action.RemoveAction.performAction(RemoveAction.java:123)
            at org.objectstyle.cayenne.modeler.util.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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
            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 : Thu Jun 23 2005 - 21:58:40 EDT