Hi Shiva,
if you are using a custom castor.properties file you need to take care to add some additional properties introduced with 0.9.6. You may especialy miss the CacheFactory property that had not been available in a castor.properties file of 0.9.5.x.
Ralf
Shiva P. Kodityala schrieb:
Hi Werner
I checked the the code when deployed stand alone ( java AppName on command prompt). Checked its mapping xml. This file also does not cache cache-type. I don't see any error while execution... :(
Thanks
-----Original Message----- From: Shiva P. Kodityala [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 1:03 PM To: [email protected] Subject: RE: [castor-user] Castor JDO Exception. Pls help
Hi Werner
I do not have cache-type specified in mapping file. Where do I need to specify? Am I getting closer?
Thanks for your help Shiva.
-----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 12:48 PM To: [email protected] Subject: Re: [castor-user] Castor JDO Exception. Pls help
Hi Shiva,
could it be that you have a <cache-type> statement in your mapping file where you haven't set an actual type ?
Werner
Shiva P. Kodityala wrote:
Werner
Here it is..
Thanks
org.exolab.castor.jdo.DatabaseNotFoundException: Nested error: java.lang.NullPointerException
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:567)
at com.db.JDOConnectionPool.reinit(JDOConnectionPool.java:70)
at com.db.JDOConnectionPool.<init>(JDOConnectionPool.java:46)
at com.db.ConnectionPoolHolder.initPools(ConnectionPo
olHolder.java:68)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.exolab.castor.persist.cache.CacheRegistry.getCache(Cache
Registry.java:140)
at org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:190)
at org.exolab.castor.persist.PersistenceEngineFactory.createEng
ine(PersistenceEngineFactory.java:80)
at org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(Databas
eRegistry.java:217)
at org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(Databas
eRegistry.java:180)
at org.exolab.castor.jdo.engine.DatabaseRegistry.initFromDriver
(DatabaseRegistry.java:478)
at org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(D
atabaseRegistry.java:336)
at org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(D
atabaseRegistry.java:266)
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:565)
at com.db.JDOConnectionPool.reinit(JDOConnectionPool.java:70)
-----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 12:55 AM To: [email protected] Subject: RE: [castor-user] Castor JDO Exception. Pls help
Shiva,
wg> -----Original Message-----
wg> From: Shiva P. Kodityala [mailto:[EMAIL PROTECTED]
wg> Sent: Friday, May 06, 2005 11:16 PM
wg> To: [email protected]; Nick Stuart
wg> Subject: RE: [castor-user] Castor JDO Exception. Pls help
wg> wg> wg> Thanks for reply.
wg> wg> I downloaded castor-0.9.6.jar. I guess this is a stable wg> version.
Yes, it is.
wg> When I tried to use it, it was throwing exception wg> saying org.exolab.castor.types.Date is not found. Then I wg> added Date class( I don't remember how I implemented ... wg> though)to existing Data Types. That error went away and wg> getting null pointer exception....
Can you please provide us with more complete information, i.e. a stack trace, a portion of the paiing file, etc.
wg> wg> It would be great if you could give me a good castor jar file.
http://dist.codehaus.org/castor/0.9.6
wg> wg> Thanks
wg> wg> wg> -----Original Message-----
wg> From: Nick Stuart [mailto:[EMAIL PROTECTED]
wg> Sent: Friday, May 06, 2005 11:34 AM
wg> To: [email protected]
wg> Subject: Re: [castor-user] Castor JDO Exception. Pls help
wg> wg> wg> First, what version of Castor are you using? Looks to 0.9.5.x. You
wg> should probably consider looking at 0.9.6 as it offers many bug fixs
wg> and some configuration changes that are going to be around in other
wg> future versions.
wg> wg> Next, it looks like you have your lines backwords, try this: wg> wg> wg> jdo = new JDO();
wg> jdo.setConfiguration( databaseXml);
wg> jdo.setDatabaseName( dataBase );
wg> wg> See if that helps at all.
wg> wg> -Nick
wg> wg> wg> On 5/6/05, Shiva P. Kodityala <[EMAIL PROTECTED]> wrote:
wg> > I have this code working fine when executed stand alone. wg> When I put the same code in oracle app server, I get wg> exception. It may be because of classloader or something, I wg> don't know...Could someone help me..
wg> > wg> > jdo = new JDO();
wg> > jdo.setDatabaseName( dataBase );
wg> > jdo.setConfiguration( databaseXml);
wg> > wg> > org.exolab.castor.jdo.DatabaseNotFoundException: Nested wg> error: java.lang.NullPointerException
wg> > at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:567)
wg> > at wg> com.scif.base.db.JDOConnectionPool.reinit(JDOConnectionPool.java:70)
wg> > at wg> com.scif.base.db.JDOConnectionPool.<init>(JDOConnectionPool.java:46)
wg> > at wg> com.scif.base.db.ConnectionPoolHolder.initPools(ConnectionPo
wg> olHolder.java:68)
wg> > at wg> com.scif.base.impl.GenApplicationReceiver.startR(GenApplicat
wg> ionReceiver.java:76)
wg> > at wg> com.scif.base.impl.GenApplicationReceiver.run(GenApplication
wg> Receiver.java:102)
wg> > at java.lang.Thread.run(Unknown Source)
wg> > Caused by: java.lang.NullPointerException
wg> > at wg> org.exolab.castor.persist.cache.CacheRegistry.getCache(Cache
wg> Registry.java:140)
wg> > at wg> org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:190)
wg> > at wg> org.exolab.castor.persist.PersistenceEngineFactory.createEng
wg> ine(PersistenceEngineFactory.java:80)
wg> > at wg> org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(Databas
wg> eRegistry.java:217)
wg> > at wg> org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(Databas
wg> eRegistry.java:180)
wg> > at wg> org.exolab.castor.jdo.engine.DatabaseRegistry.initFromDriver
wg> (DatabaseRegistry.java:478)
wg> > at wg> org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(D
wg> atabaseRegistry.java:336)
wg> > at wg> org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(D
wg> atabaseRegistry.java:266)
wg> > at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:565)
wg> > at wg> com.db.JDOConnectionPool.reinit(JDOConnectionPool.java:70)
wg> > wg> > Thanks
wg> > Shiva.
wg> >
wg>
--
Syscon Ingenieurb�ro f�r Me�- und Datentechnik GmbH Ralf Joachim Raiffeisenstra�e 11 D-72127 Kusterdingen Germany
Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98
Email: [EMAIL PROTECTED] Web: www.syscon-world.de

