Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1157

Modeler: Concurrent mod exception on removing DbRelationship

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0M5
    • 3.0M6
    • Modeler
    • None

    Description

      I can reproduce this consistently on at least 1 DataMap:

      1. Delete FK DbAttribute
      2. Remove DbRelationship that was using this attribute

      CayenneModeler Info
      Version: cayenne.version
      Build Date: cayenne.build.date
      Exception:
      =================================
      java.util.ConcurrentModificationException
      at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
      at java.util.AbstractList$Itr.next(AbstractList.java:420)
      at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
      at org.apache.cayenne.modeler.util.ProjectUtil.cleanObjMappings(ProjectUtil.java:279)
      at org.apache.cayenne.modeler.action.RemoveRelationshipAction.removeDbRelationships(RemoveRelationshipAction.java:130)
      at org.apache.cayenne.modeler.action.RemoveRelationshipAction.performAction(RemoveRelationshipAction.java:92)
      at org.apache.cayenne.modeler.action.RemoveAction.performAction(RemoveAction.java:95)
      at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
      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:236)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      at java.awt.Component.processMouseEvent(Component.java:5602)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      at java.awt.Component.processEvent(Component.java:5367)
      at java.awt.Container.processEvent(Container.java:2010)
      at java.awt.Component.dispatchEventImpl(Component.java:4068)
      at java.awt.Container.dispatchEventImpl(Container.java:2068)
      at java.awt.Component.dispatchEvent(Component.java:3903)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
      at java.awt.Container.dispatchEventImpl(Container.java:2054)
      at java.awt.Window.dispatchEventImpl(Window.java:1801)
      at java.awt.Component.dispatchEvent(Component.java:3903)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

      Attachments

        1. patch.txt
          7 kB
          Olga Tkacheva

        Activity

          People

            Unassigned Unassigned
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: