Re: modeler preference load exception

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Sun Aug 03 2008 - 12:12:39 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Closed: (CAY-995) Generating stored procedures access code"

    Hi Ari!

    So you've got problems with launching the modeler, not the tests?
    The stack trace marks the Cayenne's version as v.3.0-SNAPSHOT Oct 26 2007.
    Also line 865 in DataDomain (first line in trace) is meaningless in current
    SVN version of DataDomain class (there's "try" keyword), so seems this
    exception belongs to some old modeler - ?.

    I suffered some problems with HSQL (and not only I, there're even some
    JIRA's i think), though my problems were a bit different. I know this cannot
    be treated as solution, but you could try remove the prefs files and check
    if modeler starts then.

    Those errors could be caused by my patches. But not the Welcome Screen i
    think :). There're only GUI changes. probably Log Console, I remember I had
    to change something in preference service's part.
    Anyways, I'll try to investigate.

    Andrey

    2008/8/3, Aristedes Maniatis <ar..sh.com.au>:
    >
    > Hi Andrey
    >
    > Just wanted to let you know that I just tried a few tests before committing
    > your modeler Welcome screen changes, but I've now got problems running the
    > modeler under OSX. The issue may well have nothing to do with your patches,
    > but I haven't any more time tonight to get to the bottom of this one. I
    > attach the stack trace it here just in case it is something you've seen.
    > This error is thrown before any GUI is displayed at all, presumably while it
    > is loading preferences. My older (several months old) modeler has no problem
    > starting up.
    >
    > Ari
    >
    >
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: Exception in
    > thread "AWT-EventQueue-0"
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]:
    > org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Oct 26 2007
    > 03:36:52] java.lang.NullPointerException
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:865)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:415)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:119)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:746)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:282)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:59)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1323)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1312)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1389)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.CayennePreferenceService.getDomain(CayennePreferenceService.java:83)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.CayennePreferenceService.getPreferenceDomain(CayennePreferenceService.java:135)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.CayennePreferenceService.initPreferences(CayennePreferenceService.java:143)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.startService(HSQLEmbeddedPreferenceService.java:127)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.modeler.Application.initPreferences(Application.java:260)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.modeler.Application.startup(Application.java:153)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.modeler.Main$1.run(Main.java:114)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: Caused by:
    > java.lang.NullPointerException
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.DatabaseURL.parseURL(Unknown Source)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.jdbcDriver.getConnection(Unknown Source)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.jdbcDriver.connect(Unknown Source)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.DriverDataSource.getConnection(DriverDataSource.java:148)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PooledConnectionImpl.reconnect(PooledConnectionImpl.java:86)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PooledConnectionImpl.getConnection(PooledConnectionImpl.java:121)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.uncheckConnection(PoolManager.java:383)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:354)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:344)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:327)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conf.NodeDataSource.getConnection(NodeDataSource.java:47)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.loadAdapter(AutoAdapter.java:143)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.getAdapter(AutoAdapter.java:128)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.getExtendedTypes(AutoAdapter.java:228)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataNode.performQueries(DataNode.java:209)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:446)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.access$0(DataDomainQueryAction.java:424)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:418)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:853)
    > Aug 4 01:20:44 vapour [0x0-0xb50b5].CayenneModeler[59365]: ... 22 more
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: Exception in
    > thread "CayennePrefrencesService Shutdown"
    > org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Oct 26 2007
    > 03:36:52] java.lang.NullPointerException
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:865)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:415)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:119)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:746)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:282)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:59)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1323)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.performGenericQuery(DataContext.java:1284)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataContext.performNonSelectingQuery(DataContext.java:1333)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.stopService(HSQLEmbeddedPreferenceService.java:146)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.pref.CayennePreferenceService$1.run(CayennePreferenceService.java:119)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: Caused by:
    > java.lang.NullPointerException
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.DatabaseURL.parseURL(Unknown Source)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.jdbcDriver.getConnection(Unknown Source)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.hsqldb.jdbcDriver.connect(Unknown Source)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.DriverDataSource.getConnection(DriverDataSource.java:148)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PooledConnectionImpl.reconnect(PooledConnectionImpl.java:86)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PooledConnectionImpl.getConnection(PooledConnectionImpl.java:121)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.uncheckConnection(PoolManager.java:383)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:354)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:344)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataNode$TransactionDataSource.getConnection(DataNode.java:327)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.conf.NodeDataSource.getConnection(NodeDataSource.java:47)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.loadAdapter(AutoAdapter.java:143)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.getAdapter(AutoAdapter.java:128)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.dba.AutoAdapter.getExtendedTypes(AutoAdapter.java:228)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataNode.performQueries(DataNode.java:209)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:446)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction.access$0(DataDomainQueryAction.java:424)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:418)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: at
    > org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:853)
    > Aug 4 01:20:46 vapour [0x0-0xb50b5].CayenneModeler[59365]: ... 10 more
    > Aug 4 01:20:48 vapour
    > /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[155]:
    > StatusMonitor::volumesChangedCallBack returned -47
    >
    >
    >
    >
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Sun Aug 03 2008 - 12:13:15 EDT