Session failure due to message decoding error
xpromache Mar 12, 2013 1:42 PMHello,
I have a hornetq core client that loses the connection. I get the exception in the SessionFailureListener:
The client is receiveing from a queue mwlmon that is bound to an address mwlmon. To the same address it is bound another queue mwlmon-relay and there is also configured a bridge that copies the messages to a second hornetq server.
If I disable the bridge or both the bridge and the mwlmon-relay queue, then I don't get anymore this exception.
It is difficult for me to create a standalone test case, but I could try running with modified versions of hornetq for further debugging.
Any ideea would be appreciated.
Thanks,
nicolae
WARNING: beforeReconnect
HornetQException[errorCode=0 message=Netty exception]
at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.exceptionCaught(HornetQChannelHandler.java:108)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:142)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362)
at org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:514)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.exceptionCaught(SimpleChannelUpstreamHandler.java:148)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:122)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:357)
at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:432)
at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:52)
at org.jboss.netty.channel.StaticChannelPipeline.notifyHandlerException(StaticChannelPipeline.java:427)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:364)
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:357)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: estimatedLength: -1393754103
at org.jboss.netty.buffer.DynamicChannelBuffer.<init>(DynamicChannelBuffer.java:54)
at org.jboss.netty.buffer.DynamicChannelBuffer.<init>(DynamicChannelBuffer.java:49)
at org.jboss.netty.buffer.ChannelBuffers.dynamicBuffer(ChannelBuffers.java:212)
at org.jboss.netty.buffer.ChannelBuffers.dynamicBuffer(ChannelBuffers.java:202)
at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:166)
at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90)
... 4 more