activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@redhat.com>
Subject Re: Artemis 2.1.0 compatibility with 1.5.x
Date Wed, 28 Jun 2017 20:15:53 GMT
> Besides, if we send a text message, it is read back correctly.

Can you confirm this?  Here's my testing procedure:

  - Broker running from the head of the "master" branch
  - Modified "queue" example also from the "master" branch which just sends
a text message (removed the consuming code)
  - Modified "queue" example from 1.5.5 which just consumes a message
(removed the sending code)

I receive this when receive() is invoked:

  java.lang.IndexOutOfBoundsException: readerIndex(22) + length(44) exceeds
writerIndex(62): UnpooledDuplicatedByteBuf(ridx: 22, widx: 62, cap: 315,
unwrapped: UnpooledUnsafeHeapByteBuf(ridx: 303, widx: 315, cap: 315))


Justin

On Wed, Jun 28, 2017 at 1:08 PM, hcrobison <hrobison@industrialdefender.com>
wrote:

> We managed to reproduce our message size change problem with simple java
> programs (see  QueueReader.java
> <http://activemq.2283324.n4.nabble.com/file/n4728024/QueueReader.java>
>  and
> QueueWriter.java
> <http://activemq.2283324.n4.nabble.com/file/n4728024/QueueWriter.java>  )
> based on your QueueExample.
>
> One of them sends a binary message (array of bytes), another one reads this
> message.
> The pom.xml files were changed so that the Artemis server is not started.
> We ran a standalone Artemis 2.1 server.
>
> The test programs were built with different Artemis versions, 1.5.5 and
> 2.1.
>
> When the sender is 1.5.5 and the receiver is 2.1, the message read back is
> always 4 bytes longer, garbage bytes are added to it.
>
> When the sender is 2.1 and the receiver is 1.5.5, the message read back is
> always 4 bytes shorter, the last 4 bytes are lost.
>
>
> When both programs are built with the same version of Artemis, does not
> matter which, the read back message is correct.
>
> Besides, if we send a text message, it is read back correctly.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Artemis-2-1-0-compatibility-with-1-5-x-tp4727741p4728024.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message