cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Exception in Cayenne Modeler, heap blows up
Date Fri, 24 Sep 2010 06:40:11 GMT
Hi Tomas,

Yeah, I think attachments are stripped from the list messages automatically on the server.
Are you using the Windows or Mac Modeler? Both are pre configured to run with 0.5 GB of heap
space, but maybe -Xmx is getting lost along the way.


On Sep 24, 2010, at 8:07 AM, Tomas Stenlund wrote:
> 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(
>    at java.util.Collections$UnmodifiableMap.values(
>    at
>    at org.apache.cayenne.modeler.undo.DbEntitySyncUndoableEdit$MeaningfulFKsUndoableEdit.<init>(
>    at org.apache.cayenne.modeler.action.DbEntitySyncAction.synchDbEntity(
>    at org.apache.cayenne.modeler.action.DbEntitySyncAction.performAction(
>    at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(
>    at javax.swing.AbstractButton.fireActionPerformed(
>    at javax.swing.AbstractButton$Handler.actionPerformed(
>    at javax.swing.DefaultButtonModel.fireActionPerformed(
>    at javax.swing.DefaultButtonModel.setPressed(
>    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
>    at java.awt.AWTEventMulticaster.mouseReleased(
>    at java.awt.Component.processMouseEvent(
>    at javax.swing.JComponent.processMouseEvent(
>    at java.awt.Component.processEvent(
>    at java.awt.Container.processEvent(
>    at java.awt.Component.dispatchEventImpl(
>    at java.awt.Container.dispatchEventImpl(
>    at java.awt.Component.dispatchEvent(
>    at java.awt.LightweightDispatcher.retargetMouseEvent(
>    at java.awt.LightweightDispatcher.processMouseEvent(
>    at java.awt.LightweightDispatcher.dispatchEvent(
>    at java.awt.Container.dispatchEventImpl(
>    at java.awt.Window.dispatchEventImpl(
>    at java.awt.Component.dispatchEvent(
>    at java.awt.EventQueue.dispatchEvent(
>    at java.awt.EventDispatchThread.pumpOneEventForFilters(
>    at java.awt.EventDispatchThread.pumpEventsForFilter(
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy(
>    at java.awt.EventDispatchThread.pumpEvents(
>    at java.awt.EventDispatchThread.pumpEvents(

View raw message