You might get more response if you included jboss version, castor version,
deployment info, and a code snippet.

david jencks

On 2002.08.02 13:21:13 -0400 Bruce Snyder wrote:
> This one time, at band camp, Bruce Snyder said:
> 
> BS>I'm building an application that is using Castor for persisting
> objects
> BS>and I'm using the JBoss TransactionManager for container managed
> BS>transactions. Inside of TransactionManager.getThreadInfo(), there's a
> BS>call to:
> BS>
> BS>    ThreadInfo ret = (ThreadInfo)threadTx.get();
> BS>
> BS>This call instantiates the ThreadInfo inner class and sets the
> following: 
> BS>
> BS>    long timeout = 0;
> BS>    TransactionImpl tx = null;
> BS>
> BS>The problem with this is that the tx object is then null. This null
> BS>tx object is sent back to Castor to use and because it's null, a
> BS>NullPointerException is thrown every time. The extremely odd thing is
> BS>that after running my test and receiving the NPE, I wait a bit and I
> BS>see the following message come across the log file:
> BS>
> BS>    [WARN,TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=bsnyderlnx.xyz.com//0, BranchQual=] timed out.
> status=STATUS_ACTIVE
> BS>
> BS>So I have two questions about this scenario: 
> BS>
> BS>      1) Is this possibly a timing issue whereby the transaction is
> not
> BS>      created immediately? If so, maybe I could sleep for a bit to see
> BS>      if the transaction is actually created.
> BS>
> BS>      2) Has anyone else encountered this or have I possibly
> configured
> BS>      something incorrectly?
> 
> BTW, I forgot to mention that I've changed to Bean Managed Transactions
> and I'm still receiving the NullPointerException.
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to