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