Exception in Cayenne Modeler, heap blows up

From: Tomas Stenlund (tomas.stenlun..elia.com)
Date: Fri Sep 24 2010 - 05:07:27 UTC

  • Next message: Andrus Adamchik: "Re: Exception in Cayenne Modeler, heap blows up"

    Hi,

    I'm modelling a series of database and objectentities and when I add one
    of the relations and try to synch it, it asks if I want to remove
    foreign keys mapped as object attributes, and I say yes and the CPU goes
    into a spin and the heap blows up see stacktrace at end.

    If I do the same again but tell it not to remove foreign keys mapped as
    object atributes it works.

    So, I don't expect you to give me any hints based on this. I find it
    difficult to explain what I'm doing but is it okey to post an image
    showing the datamodel and which relation I add when this is happening
    or/and add the cayenne.xml etc. The I can more easily explain what I'm
    doing. I haven't seen anyone post with attachments so far on this
    userlist so I don't know if that is according to forumpolicy.

    Cheers,

    Tomas

    CayenneModeler Info
    Version: 3.0.1
    Build Date: Aug 25 2010 19:38:17
    Exception:
    =================================
    java.lang.OutOfMemoryError: Java heap space
         at java.util.Collections.unmodifiableCollection(Collections.java:980)
         at java.util.Collections$UnmodifiableMap.values(Collections.java:1315)
         at
    org.apache.cayenne.map.ObjEntity.getAttributeForDbAttribute(ObjEntity.java:846)
         at
    org.apache.cayenne.modeler.undo.DbEntitySyncUndoableEdit$MeaningfulFKsUndoableEdit.<init>(DbEntitySyncUndoableEdit.java:96)
         at
    org.apache.cayenne.modeler.action.DbEntitySyncAction.synchDbEntity(DbEntitySyncAction.java:95)
         at
    org.apache.cayenne.modeler.action.DbEntitySyncAction.performAction(DbEntitySyncAction.java:60)
         at
    org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
         at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at
    javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         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:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at
    java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at
    java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)



    This archive was generated by hypermail 2.0.0 : Fri Sep 24 2010 - 05:08:10 UTC