Hi,

During tests performed with activemq resource adapter and glassfish with XA
recovery I have found a problem in
org.apache.activemq.TransactionContext.recover(line 507). Each time XA
recovery is started by container a class cast exception is thrown by the
line:
return (XATransactionId[]) receipt.getData();

java.lang.ClassCastException: [Lorg.apache.activemq.command.DataStructure;
cannot be cast to [Lorg.apache.activemq.command.XATransactionId;
        at
org.apache.activemq.TransactionContext.recover(TransactionContext.java:507)
        at
org.apache.activemq.ra.LocalAndXATransaction.recover(LocalAndXATransaction.java:122)
        at
com.sun.jts.CosTransactions.RecoveryManager.getInDoubtXids(RecoveryManager.java:860)

receipt.getData() returns an org.apache.activemq.command.DataStructure[] and
casting arrays does not work in Java.

Can someone confirm this problem and raise a JIRA issue?

Regards,

Radu

-- 
View this message in context: 
http://www.nabble.com/XA-recover-not-working-due-to-incorrect-cast-tf2109993.html#a5816942
Sent from the ActiveMQ - Dev forum at Nabble.com.

Reply via email to