[ 
https://issues.apache.org/jira/browse/QPIDJMS-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17441671#comment-17441671
 ] 

Robbie Gemmell commented on QPIDJMS-554:
----------------------------------------

The client creates a pre-settled (i.e no acknowledgement) 'copy distribution' 
(as opposed to the regular 'move' distribution) consumer on the queue. That is 
how the enumeration gets messages from the server to give the browsing 
application, so yes its expected to create a browsing consumer. If that results 
in actual consumption however thats a server issue.

The decode error suggests other server (or sending client) issues with the 
messages also. There was a client bug around UTF-8 decoding of multi-byte 
characters crossing boundaries of a multi-frame message that could present as a 
decode failure, though I dont believe it can actually present with that error 
as it would fail after the constructor, so I dont think it is that. Either way, 
0.52.0 is an older release at that point, trying a newer one to rule it out 
makes sense.

> QueueBrowser.getEnumeration() - consumes messages on the queue but the Browse 
> method purpose is not honored
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: QPIDJMS-554
>                 URL: https://issues.apache.org/jira/browse/QPIDJMS-554
>             Project: Qpid JMS
>          Issue Type: Bug
>          Components: qpid-jms-client
>    Affects Versions: 0.52.0
>            Reporter: Vijaya Dodamani
>            Priority: Major
>
> I m trying to browse the queue using qpid-jms-client with amqp protocol , 
> queuebrowser is consuming the messages from the queue.
> also the session is created with client acknowledge mode and is not a 
> transacted session.
> As far as I understand queuebrowser will just traverse the messages in the 
> queue but not consumes them. But here the qpid-jms-client creating consumer 
> while getting the ENUMERATION on the QueueBrowser. 
> the purpose of the browse method is failed here. I would like to know if this 
> is as designed or a bug.
> also, when amqp server is not receiving the message acknowledgement in corner 
> cases, qpid-jms client again calling add asynch subscriber to the queue, 
> which is causing following exception since the connection is closed by test 
> method while qpid-jms-client is trying to write something to it.
> The JMS connection has failed: Error in proton Transport: Unknown constructor 
> [condition = amqp:decode-error]
>  
>  
> Thanks,
> Vijaya



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to