0 Replies Latest reply on Jul 30, 2012 5:24 AM by Ulrich Kriegel

    IndexOutOfBoundException in HornetQ2.2.14

    Ulrich Kriegel Newbie

      Hi there,

      our applications send every 10 secs a short message via a JMSTopic. The client is implemented in C# and uses Apache-NMS libraries to access the messages via the STOMP protocol.

       

      Every now and then we get the following Warning

       

      2012-07-30 10:59:50,159 WARN  [org.hornetq.core.server.impl.QueueImpl] (Thread-28 (HornetQ-server-HornetQServerImpl::serverUUID=8de728bd-da24-11e1-8ab2-07e8332a58c5-58648533)) removing consumer which did not handle a message, consumer=org.hornetq.core.server.impl.ServerConsumerImpl@6fa43603, message=Reference[216]:RELIABLE:ServerMessage[messageID=216,priority=4, bodySize=3526,expiration=0, durable=true, address=jms.topic.MSOOutput,properties=TypedProperties[null]]@1547084584: java.lang.IndexOutOfBoundsException

                at org.jboss.netty.buffer.AbstractChannelBuffer.setIndex(AbstractChannelBuffer.java:67) [:]

                at org.hornetq.core.buffers.impl.ChannelBufferWrapper.setIndex(ChannelBufferWrapper.java:497) [:]

                at org.hornetq.core.message.impl.MessageImpl.forceCopy(MessageImpl.java:960) [:]

                at org.hornetq.core.message.impl.MessageImpl.encodeToBuffer(MessageImpl.java:891) [:]

                at org.hornetq.core.message.impl.MessageImpl.getEncodedBuffer(MessageImpl.java:486) [:]

                at org.hornetq.core.protocol.core.impl.wireformat.SessionReceiveMessage.encode(SessionReceiveMessage.java:73) [:]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:183) [:]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBatched(ChannelImpl.java:162) [:]

                at org.hornetq.core.protocol.core.impl.CoreSessionCallback.sendMessage(CoreSessionCallback.java:76) [:]

                at org.hornetq.core.server.impl.ServerConsumerImpl.deliverStandardMessage(ServerConsumerImpl.java:798) [:]

                at org.hornetq.core.server.impl.ServerConsumerImpl.handle(ServerConsumerImpl.java:313) [:]

                at org.hornetq.core.server.impl.QueueImpl.handle(QueueImpl.java:2195) [:]

                at org.hornetq.core.server.impl.QueueImpl.deliver(QueueImpl.java:1746) [:]

                at org.hornetq.core.server.impl.QueueImpl.doPoll(QueueImpl.java:1625) [:]

                at org.hornetq.core.server.impl.QueueImpl.access$1300(QueueImpl.java:77) [:]

                at org.hornetq.core.server.impl.QueueImpl$ConcurrentPoller.run(QueueImpl.java:2482) [:]

                at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [:]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_33]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_33]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]

       

       

      2012-07-30 10:59:50,174 ERROR [org.hornetq.utils.OrderedExecutorFactory] (Thread-28 (HornetQ-server-HornetQServerImpl::serverUUID=8de728bd-da24-11e1-8ab2-07e8332a58c5-58648533)) Caught unexpected Throwable: java.util.NoSuchElementException

                at org.hornetq.utils.PriorityLinkedListImpl$PriorityLinkedListIterator.repeat(PriorityLinkedListImpl.java:189) [:]

                at org.hornetq.core.server.impl.QueueImpl.deliver(QueueImpl.java:1763) [:]

                at org.hornetq.core.server.impl.QueueImpl.doPoll(QueueImpl.java:1625) [:]

                at org.hornetq.core.server.impl.QueueImpl.access$1300(QueueImpl.java:77) [:]

                at org.hornetq.core.server.impl.QueueImpl$ConcurrentPoller.run(QueueImpl.java:2482) [:]

                at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [:]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_33]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_33]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]

       

      We use JBoss 6.1.0Final with HornetQ 2.2.14

       

      Any hints how to solve that problem?

       

      Thanks in Advance

       

      --Ulrich