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

Getting java.lang.IndexOutOfBoundsException after AMQP management query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Hide
      • start broker with default settings
      • send management query over AMQP:
        java -jar /var/dtests/node_data/clients/java/aac/target/aac-downstream-0.20.0.redhat-2.jar sender -b admin:admin@<IP>:5672 -a activemq.management --msg-property "_AMQ_ResourceName=broker" --msg-property "_AMQ_OperationName=getQueueNames" --msg-reply-to management_reply --log-msgs dict --conn-username admin --conn-password admin
        
      Show
      start broker with default settings send management query over AMQP: java -jar /var/dtests/node_data/clients/java/aac/target/aac-downstream-0.20.0.redhat-2.jar sender -b admin:admin@<IP>:5672 -a activemq.management --msg-property "_AMQ_ResourceName=broker" --msg-property "_AMQ_OperationName=getQueueNames" --msg-reply-to management_reply --log-msgs dict --conn-username admin --conn-password admin

      When I am trying management query over AMQP I am getting exception:

      12:22:10,221 WARN  [org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerReceiverContext] readerIndex(0) + length(1) exceeds writerIndex(0): ReadOnlyByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 594, cap: 1024))): java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): ReadOnlyByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 594, cap: 1024)))
      	at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1396) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:687) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.buffer.WrappedByteBuf.readByte(WrappedByteBuf.java:521) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at org.apache.activemq.artemis.api.core.SimpleString.readNullableSimpleString(SimpleString.java:139) [artemis-commons-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper.readNullableSimpleString(ChannelBufferWrapper.java:69) [artemis-commons-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.api.core.management.ManagementHelper.retrieveOperationParameters(ManagementHelper.java:146) [artemis-core-client-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:383) [artemis-server-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:1543) [artemis-server-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1336) [artemis-server-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback.serverSend(AMQPSessionCallback.java:427) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback.serverSend(AMQPSessionCallback.java:398) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerReceiverContext.onMessage(ProtonServerReceiverContext.java:172) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.onDelivery(AMQPConnectionContext.java:496) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:92) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:330) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:259) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.inputBuffer(ProtonHandler.java:223) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.inputBuffer(AMQPConnectionContext.java:124) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.bufferReceived(ActiveMQProtonRemotingConnection.java:138) [artemis-amqp-protocol-2.0.0.amq-700009-redhat-1.jar:]
      	at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:628) [artemis-server-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:69) [artemis-core-client-2.0.0.amq-700009-redhat-1.jar:2.0.0.amq-700009-redhat-1]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:1017) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:394) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:299) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-all-4.1.9.Final-redhat-2.jar:4.1.9.Final-redhat-2]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]
      

              rh-ee-ataylor Andy Taylor
              rkubis_kafka_devexp Radim Kubis
              Radim Kubis Radim Kubis
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: