activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-1088) TransactionContext class cast exception
Date Fri, 16 Feb 2007 05:18:03 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kevan Miller updated AMQ-1088:
------------------------------

    Attachment: AmqXAPatch.txt

This patch fixed my problem...

This doesn't seem to be a problem in 3.2.4. Not sure what's going on in your marshalling/unmarshalling...
You can always fix it there...

> TransactionContext class cast exception
> ---------------------------------------
>
>                 Key: AMQ-1088
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1088
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 4.0.1
>         Environment: XP - jre 1.4
>            Reporter: Mary Nicholas
>            Priority: Minor
>         Attachments: AmqXAPatch.txt
>
>
> The class org.apache.activemq.TransactionContext throws a class cast exception on the
recover(int flag) method on the line (or at least it does with jdk1.4) return (XATransactionId[])
receipt.getData();
>  
> It cannot cast the list of DataStructure[] to XATransactionId[]. I just unpacked it locally
as a fix (as seen below) and it worked fine. Have not checked it in though in case others
with more experience on this one disagree.
> DataStructure[] x = receipt.getData(); 
>  
> if (x.length > 0)
> {
>       XATransactionId xaId[] = new XATransactionId[x.length];
>       int count = 0;
>       for (count =0; count < x.length; count++)
>                     xaId[count] = (XATransactionId)x[count]; 
>                     
>       return xaId;
> }
> else
>       return null;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message