Re: Exception when running Modeler

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Dec 19 2004 - 22:44:34 EST

  • Next message: Emmanuel Okyere: "[new user] How To Search Archive"

    Hi David,

    Is it possible that you have cayenne.xml file somewhere in the
    classpath that was used to start the modeler (e.g. in the CLASSPATH
    variable)? From what I can tell this can interfere with the modeler
    preferences loading... One easy way to fix it is to edit modeler.bat or
    modeler.sh (whichever you use).

    In modeler.sh remove these lines:
        if [ "$CLASSPATH" != "" ] ; then
             OPTIONS="$OPTIONS$PATH_SEPARATOR$CLASSPATH"
        fi

    In modeler.bat replace
        start "CayenneModeler" "%JAVACMD%" -cp
    "%CLASSPATH%;%DEFAULT_CLASSPATH%" %MAIN_CLASS% %*
    with
        start "CayenneModeler" "%JAVACMD%" -cp "%DEFAULT_CLASSPATH%"
    %MAIN_CLASS% %*

    I am going to clean up these scripts in 1.2 anyway, but I think that
    the Modeler Java code needs a fix for 1.1.1, so I'd appreciate if you
    could open a bug report -
    http://objectstyle.org/cayenne/bugs-features.html

    Thanks
    Andrus

    On Dec 19, 2004, at 10:26 PM, David Burnett wrote:

    > I'm encountering an exception when trying to run the Modeler - it's
    > failing to connect with its own prefs database due to not being able
    > to find the cayenne.xml file that is used internally for HSQLDB.
    >
    > Any ideas what's going on here or how I can correct?
    >
    > Thanks,
    >
    > Dave
    >
    > **********************
    >
    > apple.awt.EventQueueExceptionHandler Caught Throwable :
    > org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1 December 6
    > 2004] Error connecting to preference DB.
    > org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1 December 6
    > 2004] Error connecting to preference DB.
    > at
    > org.objectstyle.cayenne.pref.HSQLEmbeddedPreferenceService.startService
    > (HSQLEmbeddedPreferenceService.java:141)
    > at
    > org.objectstyle.cayenne.modeler.Application.initPreferences(Application
    > .java:295)
    > at
    > org.objectstyle.cayenne.modeler.Application.startup(Application.java:
    > 219)
    > at org.objectstyle.cayenne.modeler.Main$1.run(Main.java:136)
    > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    > at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    > at
    > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
    > ad.java:234)
    > at
    > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread
    > .java:184)
    > at
    > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
    > at
    > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
    > at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    > Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.1
    > December 6 2004] [org.objectstyle.cayenne.conf.DefaultConfiguration] :
    > Domain configuration file "cayenne.xml" is not found.
    > at
    > org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultCon
    > figuration.java:174)
    > at
    > org.objectstyle.cayenne.pref.HSQLEmbeddedPreferenceService.startService
    > (HSQLEmbeddedPreferenceService.java:138)
    > ... 10 more
    >
    >



    This archive was generated by hypermail 2.0.0 : Sun Dec 19 2004 - 22:44:41 EST