Oof. That's two of us now. :)
Looks like that thing that I thought was probably something specific
to my system probably isn't.
I still haven't tracked down what's happening, but it no longer
appears to be an edge case specific to our environment - can I ask
you to file a bug on this, and mark it high priority?
On 16 Sep 2005, at 06:44, Jeremy Whitlock wrote:
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/
TransactionManager");
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]
-------------------------------------------------