11 Replies Latest reply on Feb 17, 2010 3:44 PM by Tim Fox

    IndexOutOfBoundsException when receiving binary messages with Stomp

    Michael Justin Novice

      Hello,

       

      sending of 100 messages with binary content works fine, the last frame (number 100)  look like this:

       

      SEND
      destination:jms.queue.ExampleQueue
      content-length:9
      correlation-id:{A5823393-DC81-4A5F-A780-8AD9B8022CD1}

       

      ☺ ☻ ♥100

       

      However no messages are received from the client and the server logs an exception. I will take a look at the Stomp sources but maybe the exception gives a hint where to search. The server also is unresponsive after this error happens and needs a restart.

       

       

      java.lang.IndexOutOfBoundsException
              at org.jboss.netty.buffer.AbstractChannelBuffer.checkReadableBytes(Abstr
      actChannelBuffer.java:543)
              at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChanne
      lBuffer.java:292)
              at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChanne
      lBuffer.java:298)
              at org.hornetq.core.buffers.impl.ChannelBufferWrapper.readBytes(ChannelB
      ufferWrapper.java:347)
              at org.hornetq.core.protocol.stomp.StompMarshaller.unmarshal(StompMarsha
      ller.java:171)
              at org.hornetq.core.protocol.stomp.StompProtocolManager.doHandleBuffer(S
      tompProtocolManager.java:155)
              at org.hornetq.core.protocol.stomp.StompProtocolManager.access$000(Stomp
      ProtocolManager.java:51)
              at org.hornetq.core.protocol.stomp.StompProtocolManager$1.run(StompProto
      colManager.java:139)
              at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(Ordere
      dExecutorFactory.java:96)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
      )
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)