2 Replies Latest reply on Jan 31, 2012 10:30 PM by yanny wang

    HornetQ 2.2.5.Final starts service has "java.lang.IllegalArgumentException: Invalid type: 1" error in hornetq.log

    yanny wang Newbie

      [Old I/O server worker (parentId: 1833210619, [id: 0x6d4492fb, /10.33.145.22:1234])] 18:15:54,897 SEVERE [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl]  Failed to decode

      java.lang.IllegalArgumentException: Invalid type: 1

      at org.hornetq.core.protocol.core.impl.PacketDecoder.decode(PacketDecoder.java:529)

      at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:424)

      at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:459)

      at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73)

      at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)

      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.Channels.fireMessageReceived(Channels.java:287)

      at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169)

      at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134)

      at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)

      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.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.IoWorkerRunnable.run(IoWorkerRunnable.java:46)

      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)

       

      start standalone hornetQ 2.2.5.final gets error as listed.

       

      here is the hornetQ-configuration.xml:

       

      <address-settings>
            <!--default for catch all-->
            <address-setting match="#">
               <dead-letter-address>jms.queue.DLQ</dead-letter-address>
               <max-delivery-attempts>6</max-delivery-attempts>
               <expiry-address>jms.queue.ExpiryQueue</expiry-address>
               <redelivery-delay>2000</redelivery-delay>
               <max-size-bytes>10485761</max-size-bytes>
               <page-size-bytes>10485760</page-size-bytes>

               <message-counter-history-day-limit>10</message-counter-history-day-limit>
               <address-full-policy>PAGE</address-full-policy>

            </address-setting>
            <cluster-password>avoid warn</cluster-password>

         </address-settings>

       

      any idea?