java.lang.ArrayIndexOutOfBoundsException in StompProtocolManager
mjustin Mar 9, 2011 8:17 AMHello,
With the current trunk and, this exception occurs, when consumer and producer are working at the same time.
Reproduced quite frequently with message sizes > 1000 bytes, number of messages 2000-5000
Not reproducable in 2.2.Final with the same test setup.
Stack trace:
[Old I/O server worker (parentId: 13402014, [id: 0x00cc7f9e, localhost/127.0.0.1
:61613])] 13:57:15,080 SEVERE [org.hornetq.core.protocol.stomp.StompProtocolMana
ger] Failed to decode
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.jboss.netty.buffer.HeapChannelBuffer.getBytes(HeapChannelBuffer.j
ava:107)
at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChanne
lBuffer.java:338)
at org.hornetq.core.buffers.impl.ChannelBufferWrapper.readBytes(ChannelB
ufferWrapper.java:342)
at org.hornetq.core.protocol.stomp.StompDecoder.decode(StompDecoder.java
:153)
at org.hornetq.core.protocol.stomp.StompProtocolManager.handleBuffer(Sto
mpProtocolManager.java:161)
at org.hornetq.core.protocol.stomp.StompConnection.bufferReceived(StompC
onnection.java:269)
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingB
ufferHandler.bufferReceived(RemotingServiceImpl.java:459)
at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageRec
eived(HornetQChannelHandler.java:73)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleCha
nnelHandler.java:100)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChan
nelPipeline.java:362)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChan
nelPipeline.java:357)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:27
4)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26
1)
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl
e.java:108)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.j
ava:46)
at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run
(VirtualExecutorService.java:181)
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)
Regards,
Michael