did you call database.setDatabaseName( "someName" ); ?
If you are running directly from the JDO samples you'll probably need to make some modifications. Especially you'll have to change the database.xml file to point at your database.
Regards,
Brett
-----Original Message-----
From: Budi Wiyono [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 September 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Castor-0.9.3 on MySQL
Importance: High
Hello All,
I downloaded the castor-0.9.3 code from CVS.
I am trying to run the sample on a MySQL database. I am encountering a
problem when I run the JDO samples.
This is the exception I am getting.
[test] Loading mapping descriptors from
file:/home/castor-0.9.3/examples/jdo/mapping.xml
[test] org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
java.lang.NullPointerException
[test] java.lang.NullPointerException
[test] at org.exolab.castor.jdo.engine.SQLEngine.<init>(SQLEngine.java:281)
[test] at
org.exolab.castor.jdo.engine.BaseFactory.getPersistence(BaseFactory.java:79)
[test] at org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:512)
[test] at org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:168)
[test] at
org.exolab.castor.persist.PersistenceEngineFactory.createEngine(PersistenceEngineFactory.java:83)
[test] at
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:204)
[test] at
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java:163)
[test] at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:289)
[test] at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:538)
[test] at jdo.Test.run(Test.java:90)
[test] at jdo.Test.main(Test.java:54)
I would appreciate any help.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
