Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-631

A-MQ 7 certification with EAP7 MQ214013: Failed to decode packet: java.lang.IndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.0.2.GA
    • A-MQ 7.0.0.ER17
    • None
    • AMQ Sprint 3

      When A-MQ7 broker (version ER17) is used with EAP 7.1 as external messaging broker. Clients inside eap often fails with

      09:01:02 [0m[31m05:01:07,611 ERROR [org.apache.activemq.artemis.core.client] (Thread-1 (ActiveMQ-client-netty-threads-95458135)) AMQ214013: Failed to decode packet: java.lang.IndexOutOfBoundsException: readerIndex: 17, writerIndex: 13 (expected: 0 <= readerIndex <= writerIndex <= capacity(196))
      09:01:07 	at io.netty.buffer.AbstractByteBuf.setIndex(AbstractByteBuf.java:129)
      09:01:07 	at io.netty.buffer.WrappedByteBuf.setIndex(WrappedByteBuf.java:135)
      09:01:07 	at org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper.setIndex(ChannelBufferWrapper.java:497)
      09:01:07 	at org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionReceiveMessage.decode(SessionReceiveMessage.java:100)
      09:01:07 	at org.apache.activemq.artemis.core.protocol.ClientPacketDecoder.decode(ClientPacketDecoder.java:41)
      09:01:07 	at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:349)
      09:01:07 	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1143)
      09:01:07 	at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:68)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      09:01:07 	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      09:01:07 	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      09:01:07 	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      09:01:07 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      09:01:07 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      09:01:07 	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      09:01:07 	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610)
      09:01:07 	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
      09:01:07 	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
      09:01:07 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
      09:01:07 	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      09:01:07 	at java.lang.Thread.run(Thread.java:745)
      

      As was discussed on https://issues.jboss.org/browse/EAP7-155 we use internal EAP Artemis RA 1.5.3.jbossorg003 (pooled-cf) to connect to A-MQ 7 broker.

      This issue is blocker for further certification.
      I'm attaching traces and thread dumps for investigation.

              fnigro Francesco Nigro
              okalman@redhat.com Ondřej Kalman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: