Failed to decode: java.lang.IllegalArgumentException: Invalid type: 0

Solution Verified - Updated -

Issue

  • In my cluster of two nodes of EAP 6.0.1 HornetQ, I have a lot of errors in my log :
ERROR [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (Old I/O client worker ([id: 0x6ecf573a, /aaa.bbb.ccc.ddd:12105 => /eee.fff.ggg.hhh:5626])) 
Failed to decode: java.lang.IllegalArgumentException: Invalid type: 0 
at org.hornetq.core.protocol.core.impl.PacketDecoder.decode(PacketDecoder.java:550) [hornetq-core-2.2.23.Final-redhat-1.jar:2.2.19.SNAPSHOT (HQ_2_2_23_Final, 122)] 
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:479) [hornetq-core-2.2.23.Final-redhat-1.jar:2.2.19.SNAPSHOT (HQ_2_2_23_Final, 122)] 
at org.hornetq.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1543) [hornetq-core-2.2.23.Final-redhat-1.jar:2.2.19.SNAPSHOT (HQ_2_2_23_Final, 122)] 
  • What is the cause of these log ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content