You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Martin Lichtin <li...@yahoo.com.INVALID> on 2021/05/01 14:15:38 UTC

Problem with Queue browsing when upgrading from 5.15.14 to 5.16.2

Hi
Has anyone also noticed an issue with queue browsing with 5.16.2?
It happens when using an XA connection and starting a session without a transaction context.
This always worked fine but no longer does, instead one can see a exception, but only when debug log is turned on

javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction.
     at org.apache.activemq.ActiveMQXASession.doStartTransaction(ActiveMQXASession.java:101) ~[?:?]

I'll investigate further, just wanted to see if this is already a known issue.

- Martin



Re: Problem with Queue browsing when upgrading from 5.15.14 to 5.16.2

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Martin,

Are you running on Karaf or standalone (for both client and broker) ?

I guess you have to provide the transaction context on the session.

Regards
JB

> Le 2 mai 2021 à 09:52, Martin Lichtin <li...@yahoo.com.INVALID> a écrit :
> 
> Looks like I ran into changes https://issues.apache.org/jira/browse/AMQ-2659
> and will need to adapt to it.
> 
> On 01.05.2021 16:15, Martin Lichtin wrote:
>> Hi
>> Has anyone also noticed an issue with queue browsing with 5.16.2?
>> It happens when using an XA connection and starting a session without a transaction context.
>> This always worked fine but no longer does, instead one can see a exception, but only when debug log is turned on
>> 
>> javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction.
>>     at org.apache.activemq.ActiveMQXASession.doStartTransaction(ActiveMQXASession.java:101) ~[?:?]
>> 
>> I'll investigate further, just wanted to see if this is already a known issue.
>> 
>> - Martin


Re: Problem with Queue browsing when upgrading from 5.15.14 to 5.16.2

Posted by Martin Lichtin <li...@yahoo.com.INVALID>.
Looks like I ran into changes https://issues.apache.org/jira/browse/AMQ-2659
and will need to adapt to it.

On 01.05.2021 16:15, Martin Lichtin wrote:
> Hi
> Has anyone also noticed an issue with queue browsing with 5.16.2?
> It happens when using an XA connection and starting a session without a transaction context.
> This always worked fine but no longer does, instead one can see a exception, but only when debug log is turned on
>
> javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction.
>     at org.apache.activemq.ActiveMQXASession.doStartTransaction(ActiveMQXASession.java:101) ~[?:?]
>
> I'll investigate further, just wanted to see if this is already a known issue.
>
> - Martin