Mantis - Resin
Viewing Issue Advanced Details
1151 minor always 05-26-06 13:47 05-30-06 10:51
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.0.20  
0001151: transation sync issues
(rep by Matt Pangaro)


2) I'll apologize in advance for the vagueness of this, but we've been getting the following issue intermittently since the upgrade to 3.0.19. I haven't had a chance to dig into the app code on this yet, but I've attached a stacktrace from our app servers. Traces like that have been occurring since the upgrade. It appears to be in the new code that keeps the list of transactions so that you can gracefully close them on shutdown. My first question looking at the code was whether there should be some synchronization on that list somewhere, since even though the owner is a singleton, it seems as though access to this through calls to getCurrent() could be highly concurrent.

It seems like the trigger for this is when a nightly process runs, so we'll be sifting through more logs and code to see if it's something in our code/config, but we didn't see this behavior in 2.1.16 or 3.0.14. When I've got more information, I'll pass it along, but wanted to get your initial thoughts on it, since we're now stuck with problems from both versions of 3.0.

[02:00:00.171] java.lang.ArrayIndexOutOfBoundsException: 88
[02:00:00.171] at java.util.ArrayList.get(ArrayList.java:324)
[02:00:00.171] at com.caucho.transaction.TransactionManagerImpl.addTransaction(TransactionManagerImpl.java:307)
[02:00:00.171] at com.caucho.transaction.TransactionManagerImpl.getCurrent(TransactionManagerImpl.java:298)
[02:00:00.171] at com.caucho.transaction.TransactionManagerImpl.setTransactionTimeout(TransactionManagerImpl.java:253)
[02:00:00.171] at com.caucho.jca.UserTransactionImpl.setTransactionTimeout(UserTransactionImpl.java:85)
[02:00:00.171] at com.caucho.jca.UserTransactionProxy.setTransactionTimeout(UserTransactionProxy.java:105)
[02:00:00.171] at com.caucho.ejb.xa.EjbTransactionManager.beginRequired(EjbTransactionManager.java:297)

There are no notes attached to this issue.