Hi,
I'm migrating from version 0.9.3.9 to 0.9.7,
using the generated jar from castor-0.9.7-src.tgz
I changed the old database conf to new jdo-conf, change my class that uses JDO
to JDOManager, and now when I start my application I get the follow Exception:
java.lang.NullPointerException
at
org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:763)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDataSource(DatabaseRegistry.java:375)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.initFromDataSource(DatabaseRegistry.java:313)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.initDatabase(DatabaseRegistry.java:279)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:200)
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:153)
at
org.exolab.castor.jdo.JDOManager.loadConfiguration(JDOManager.java:289)
at
org.exolab.castor.jdo.JDOManager.loadConfiguration(JDOManager.java:322)
...
the code that trows above exception is:
JDOManager.loadConfiguration("/opt/myapp/conf/castor/dbMyApp.xml");
JDOManager myServer = JDOManager.createInstance("myapp");
contents of dbMyApp.xml is:
<jdo-conf>
<database name="myapp" engine="sapdb" >
<data-source class-name="com.sap.dbtech.jdbcext.DataSourceSapDB">
<param name="serverName" value="localhost" />
<param name="networkProtocol" value="jdbc:sapdb:" />
<param name="user" value="TEST" />
<param name="password" value="test" />
<param name="databaseName" value="TEST" />
</data-source>
<mapping href="/opt/myapp/conf/castor/map/mapPerson.xml" />
</database>
<transaction-demarcation mode="local" />
</jdo-conf>
What is wrong?
Thanks for any help
Clovis
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------