RE: Cayenne Modeler won't load model

From: JR Ruggentaler (j..pv.com)
Date: Wed Aug 14 2002 - 23:47:31 EDT

  • Next message: Andrus: "RE: Cayenne Modeler won't load model"

    I downloaded the 8-13 build and now I get the following message:

    CayenneModeler Info Version: 1.0b1-dev Build Date: August 13 2002 Exception:
    ================================= org.objectstyle.cayenne.ConfigException:
    Failed to load domain and/or its maps/nodes. at
    org.objectstyle.cayenne.gui.GuiConfiguration.init(GuiConfiguration.java:163)
    at
    org.objectstyle.cayenne.gui.GuiConfiguration.initSharedConfig(GuiConfigurati
    on.java:96) at
    org.objectstyle.cayenne.gui.GuiConfiguration.initSharedConfig(GuiConfigurati
    on.java:85) at
    org.objectstyle.cayenne.gui.action.OpenProjectAction.openProject(OpenProject
    Action.java:157) at
    org.objectstyle.cayenne.gui.action.OpenProjectAction.performAction(OpenProje
    ctAction.java:112) at
    org.objectstyle.cayenne.gui.action.CayenneAction.actionPerformed(CayenneActi
    on.java:166) at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    n.java:1820) at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    19) at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at
    javax.swing.AbstractButton.doClick(AbstractButton.java:289) at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    MenuItemUI.java:932) at
    java.awt.Component.processMouseEvent(Component.java:5021) at
    java.awt.Component.processEvent(Component.java:4818) at
    java.awt.Container.processEvent(Container.java:1380) at
    java.awt.Component.dispatchEventImpl(Component.java:3526) at
    java.awt.Container.dispatchEventImpl(Container.java:1437) at
    java.awt.Component.dispatchEvent(Component.java:3367) at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214) at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929) at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859) at
    java.awt.Container.dispatchEventImpl(Container.java:1423) at
    java.awt.Window.dispatchEventImpl(Window.java:1566) at
    java.awt.Component.dispatchEvent(Component.java:3367) at
    java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:190) at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144) at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

    I'll try to find a way around this problem.

    J.R.

    -----Original Message-----
    From: Andrus [mailto:andru..bjectstyle.org]
    Sent: Wednesday, August 14, 2002 8:31 AM
    To: JR Ruggentaler; Cayenne-User (E-mail)
    Subject: Re: Cayenne Modeler won't load model

    Hi JR,

    First of all I suggest upgrading Cayenne to the current nightly build
    version if you haven't done so already.

    CM is much more stable now then it was in Alpha 2. Among other things there
    is a fix of a very nasty bug in CM, leaving much less chances for the map
    project files corruption:

    http://sourceforge.net/tracker/index.php?func=detail&aid=587084&group_id=481
    32&atid=452068

    Besides it adds logging of exceptions and other debugging info to
    $HOME/.cayenne/modeler.log

    As for your problem, I haven't seen this particular one, but in general
    there may be problems when removing things in "Db*" layer when they are
    already mapped in "Obj*" layer. Dead objects may be hanging in the memory
    and even get saved. As a workaround I suggest unmapping corresponding
    "Obj*" objects first, and then removing "Db*". I think we may even need to
    change the internals of the DataMap structure to fix it (without changing
    the public API and XML format of course).

    Andrus

    At 11:51 PM 8/13/2002 -0500, JR Ruggentaler wrote:
    >To: "Cayenne-User (E-mail)" <cayenne-use..bjectstyle.org>
    >Subject: Cayenne Modeler won't load model
    >
    >I am having problems with the Cayenne Modeler. This seem to be related to
    >creating relationships. I save my model and then try to reopen it later but
    >nothing shows up and there are no messages indicating any problems. One of
    >my DB-Entity does not get saved and there are relationships pointing to the
    >unsaved DB-Entity. To get CM to show my model I delete the relationships
    >with a text editor and reopen the file with CA. Any else seen this problem?
    >
    >J.R.



    This archive was generated by hypermail 2.0.0 : Wed Aug 14 2002 - 23:47:24 EDT