Jeremy, Just forgot to mention that a stacktrace would be great as well.
Werner > -----Original Message----- > From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] > Sent: Freitag, 16. September 2005 07:45 > To: Castor-User > Subject: [castor-user] Upgrading From 0.9.5.3 to 0.9.9M2 > > Hey all, > I'm trying to update OpenEJB so that it uses the latest > version of Castor. In doing so, I've run into some issues > that debugging through the source, of both OpenEJB and > Castor, hasn't seemed to help. > I have the jdo-conf.xml files right but when I do > JDO.getDatabase(), I get an error on line 595 of JDO.java. I > have a _transactionManager but no _transactionManagerFactory. > This leads me to believe that there is more to this than > just a few API fixes so the class will compile. So, here is > some of the problematic code: > > jdo_ForGlobalTransaction = new JDO(); > > // Assign the TransactionManager JNDI name to the dynamically > generated JNDI name > // jdo_ForGlobalTransaction.setTransactionManager( "java:comp/" > + transactionManagerJndiNameTyrex ); > jdo_ForGlobalTransaction.setTransactionManager("java:openejb/T > ransactionManager"); > jdo_ForGlobalTransaction.setDatabasePooling( true ); > jdo_ForGlobalTransaction.setConfiguration( > gTxDb.getAbsolutePath() ); > jdo_ForGlobalTransaction.setDatabaseName(EnvProps.GLOBAL_TX_DATABASE); > jdo_ForGlobalTransaction.setCallbackInterceptor( this ); > jdo_ForGlobalTransaction.setInstanceFactory( this ); > jdo_ForGlobalTransaction.setLogInterceptor( new > CMPLogger(EnvProps.GLOBAL_TX_DATABASE) ); > > I know that I need to comment out the > JDO.setTransactionManager(String), since that's taken care of > in the jdo-conf.xml, but when I do so and get the class to > compile, when I call JDO.getDatabase(), I get the error > mentioned above where line 595 of JDO.java throws a > NullPointerException because _transactionManagerFactory is > null. Can someone point me to the light? I am not sure what > is going wrong. I do know that I've debugged through a good > bit of the code and I still am at square one so that is why I'm here. > > Take care, > Jeremy > > -- > He who listens well, speaks well. > > ------------------------------------------------- > If you wish to unsubscribe from this list, please send an > empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

