Probably some classpath issue. I suggest downloading 2.0.1 version of
Mac Modeler, and open it by double-clicking on the app. This should
spare you time figuring it out.
http://people.apache.org/dist/incubator/cayenne/cayenne-2.0.1-
incubating-macosx.dmg
Andrus
On Dec 11, 2006, at 6:34 PM, Michael Warner wrote:
> I am trying to get CayenneModeler to run under OS X 10.4 Darwin.
> When I run $CAYENNE_HOME/bin/modeler.sh from the command line,
> I get the following error. It would appear to be some type of
> problem associated with
> the class loader, but beyond that I am clueless.
>
> I would appreciate any suggestions as to where I might look to get
> a better handle on this problem.
>
> Thanks,
>
> Mike W.
>
>
> 2-dynamic-10-1-1-119% Exception in thread "AWT-EventQueue-0"
> java.lang.ExceptionInInitializerError
> at
> org.apache.cayenne.access.jdbc.SQLTemplateAction.performAction
> (SQLTemplateAction.java:88)
> at org.apache.cayenne.access.DataNodeQueryAction.runQuery
> (DataNodeQueryAction.java:59)
> at org.apache.cayenne.access.DataNode.performQueries
> (DataNode.java:273)
> at org.apache.cayenne.dba.JdbcPkGenerator.pkFromDatabase
> (JdbcPkGenerator.java:340)
> at
> org.apache.cayenne.dba.JdbcPkGenerator.generatePkForDbEntity
> (JdbcPkGenerator.java:290)
> at
> org.apache.cayenne.access.DataDomainInsertBucket.createPermIdsForObjEn
> tity(DataDomainInsertBucket.java:158)
> at
> org.apache.cayenne.access.DataDomainInsertBucket.appendQueriesInternal
> (DataDomainInsertBucket.java:86)
> at
> org.apache.cayenne.access.DataDomainSyncBucket.appendQueries
> (DataDomainSyncBucket.java:72)
> at
> org.apache.cayenne.access.DataDomainFlushAction.preprocess
> (DataDomainFlushAction.java:175)
> at org.apache.cayenne.access.DataDomainFlushAction.flush
> (DataDomainFlushAction.java:131)
> at org.apache.cayenne.access.DataDomain.onSyncFlush
> (DataDomain.java:794)
> at org.apache.cayenne.access.DataDomain$2.transform
> (DataDomain.java:765)
> at org.apache.cayenne.access.DataDomain.runInTransaction
> (DataDomain.java:820)
> at org.apache.cayenne.access.DataDomain.onSync
> (DataDomain.java:762)
> at org.apache.cayenne.access.DataContext.flushToParent
> (DataContext.java:1225)
> at org.apache.cayenne.access.DataContext.commitChanges
> (DataContext.java:1129)
> at org.apache.cayenne.pref.Domain.getSubdomain(Domain.java:
> 130)
> at org.apache.cayenne.pref.Domain.getSubdomain(Domain.java:
> 100)
> at org.apache.cayenne.pref.Domain.getSubdomain(Domain.java:90)
> at
> org.apache.cayenne.pref.CayennePreferenceService.getPreferenceDomain
> (CayennePreferenceService.java:137)
> at
> org.apache.cayenne.pref.CayennePreferenceService.initPreferences
> (CayennePreferenceService.java:144)
> at
> org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.startService
> (HSQLEmbeddedPreferenceService.java:119)
> at org.apache.cayenne.modeler.Application.initPreferences
> (Application.java:260)
> at org.apache.cayenne.modeler.Application.startup
> (Application.java:159)
> at org.apache.cayenne.modeler.Main$1.run(Main.java:97)
> at java.awt.event.InvocationEvent.dispatch
> (InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:269)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:190)
> at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:184)
> at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:176)
> at java.awt.EventDispatchThread.run
> (EventDispatchThread.java:110)
> Caused by: org.apache.cayenne.CayenneRuntimeException: [v.2.0.1-
> incubating October 1 2006] Error setting up Velocity RuntimeInstance.
> at
> org.apache.cayenne.access.jdbc.SQLTemplateProcessor.initVelocityRuntim
> e(SQLTemplateProcessor.java:85)
> at
> org.apache.cayenne.access.jdbc.SQLTemplateProcessor.<clinit>
> (SQLTemplateProcessor.java:60)
> ... 32 more
> Caused by: java.lang.Exception: The specified class for
> Resourcemanager
> (org.apache.cayenne.access.jdbc.SQLTemplateResourceManager) does
> not exist (or is not accessible to the current classlaoder.
> at
> org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(
> RuntimeInstance.java:486)
> at org.apache.velocity.runtime.RuntimeInstance.init
> (RuntimeInstance.java:268)
> at
> org.apache.cayenne.access.jdbc.SQLTemplateProcessor.initVelocityRuntim
> e(SQLTemplateProcessor.java:82)
> ... 33 more
> 2-dynamic-10-1-1-119% Exception in thread "CayennePrefrencesService
> Shutdown" org.apache.cayenne.CayenneRuntimeException: [v.2.0.1-
> incubating October 1 2006] Commit Exception ~
> at org.apache.cayenne.access.DataContext.flushToParent
> (DataContext.java:1253)
> at org.apache.cayenne.access.DataContext.commitChanges
> (DataContext.java:1129)
> at
> org.apache.cayenne.pref.CayennePreferenceService.savePreferences
> (CayennePreferenceService.java:131)
> at
> org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.stopService
> (HSQLEmbeddedPreferenceService.java:134)
> at org.apache.cayenne.pref.CayennePreferenceService$1.run
> (CayennePreferenceService.java:120)
> Caused by: java.sql.SQLException: Can't obtain connection. Request
> timed out. Total used connections: 1
> at
> org.apache.cayenne.conn.PoolManager.uncheckPooledConnection
> (PoolManager.java:430)
> at org.apache.cayenne.conn.PoolManager.getConnection
> (PoolManager.java:356)
> at org.apache.cayenne.conn.PoolManager.getConnection
> (PoolManager.java:349)
> at org.apache.cayenne.access.DataNode
> $TransactionDataSource.getConnection(DataNode.java:544)
> at org.apache.cayenne.access.DataNode.performQueries
> (DataNode.java:251)
> at org.apache.cayenne.dba.JdbcPkGenerator.pkFromDatabase
> (JdbcPkGenerator.java:340)
> at
> org.apache.cayenne.dba.JdbcPkGenerator.generatePkForDbEntity
> (JdbcPkGenerator.java:290)
> at
> org.apache.cayenne.access.DataDomainInsertBucket.createPermIdsForObjEn
> tity(DataDomainInsertBucket.java:158)
> at
> org.apache.cayenne.access.DataDomainInsertBucket.appendQueriesInternal
> (DataDomainInsertBucket.java:86)
> at
> org.apache.cayenne.access.DataDomainSyncBucket.appendQueries
> (DataDomainSyncBucket.java:72)
> at
> org.apache.cayenne.access.DataDomainFlushAction.preprocess
> (DataDomainFlushAction.java:175)
> at org.apache.cayenne.access.DataDomainFlushAction.flush
> (DataDomainFlushAction.java:131)
> at org.apache.cayenne.access.DataDomain.onSyncFlush
> (DataDomain.java:794)
> at org.apache.cayenne.access.DataDomain$2.transform
> (DataDomain.java:765)
> at org.apache.cayenne.access.DataDomain.runInTransaction
> (DataDomain.java:820)
> at org.apache.cayenne.access.DataDomain.onSync
> (DataDomain.java:762)
> at org.apache.cayenne.access.DataContext.flushToParent
> (DataContext.java:1225)
> ... 4 more
>
>
This archive was generated by hypermail 2.0.0 : Mon Dec 11 2006 - 12:11:15 EST