ArrayIndexOutOfBoundsException in the jboss server.log
zcabir May 17, 2013 2:22 PMHello
I am using jboss-eap-6.0 running under CentOS Release 6.3 Final) Kernel Linux 2.6.32-279.11.1.el6x.x86_64 GNOME 2.28.2
We are having two jms topics and two jms queues registered in standalone.xml file. On moderate load on the server we are seeing the following error message in server.log
14-Mar-2013 14:44:39,466 ERROR org.hornetq.core.protocol.core.ServerSessionPacketHandler) Caught unexpected exception: java.lang.ArrayIndexOutOfBoundsException
at org.jboss.netty.buffer.HeapChannelBuffer.getBytes(HeapChannelBuffer.java:107) [netty-3.2.6.Final.jar:]
at org.jboss.netty.buffer.DynamicChannelBuffer.getBytes(DynamicChannelBuffer.java:138) [netty-3.2.6.Final.jar:]
at org.jboss.netty.buffer.HeapChannelBuffer.setBytes(HeapChannelBuffer.java:132) [netty-3.2.6.Final.jar:]
at org.jboss.netty.buffer.AbstractChannelBuffer.writeBytes(AbstractChannelBuffer.java:462) [netty-3.2.6.Final.jar:]
at org.hornetq.core.buffers.impl.ChannelBufferWrapper.writeBytes(ChannelBufferWrapper.java:572) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.message.impl.MessageImpl.encode(MessageImpl.java:461) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.paging.impl.PagedMessageImpl.encode(PagedMessageImpl.java:147) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.paging.impl.PageImpl.write(PageImpl.java:197) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.paging.impl.PagingStoreImpl.page(PagingStoreImpl.java:905) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.paging.impl.PagingStoreImpl.page(PagingStoreImpl.java:333) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.postoffice.impl.PostOfficeImpl.processRoute(PostOfficeImpl.java:964) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:678) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:580) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:1437) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.server.impl.ServerSessionImpl.sendContinuations(ServerSessionImpl.java:1192) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:458) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:517) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:533) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.core.remoting.impl.invm.InVMConnection$1.run(InVMConnection.java:166) [hornetq-core-2.2.13.Final.jar:]
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [hornetq-core-2.2.13.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Under normal scenario with not much load, we do not see this exception. No idea why i am seeing this error in the server.log and i am new to JBoss/HornetQ
Also, in some instance we see the following warning message too.
27-Mar-2013 09:42:58,364 WARN org.hornetq.core.server.impl.ServerSessionImpl) Replacing incomplete LargeMessage with ID=2412976
Any help on how to fix this issue or where to start debugging this issue would be appreciated.
Thanks,
Cabir