0 Replies Latest reply on Jul 20, 2015 4:15 AM by jannarong poopirom

    Unable to send frame StompFrame

    jannarong poopirom Newbie

      Hi,

       

      I'm using HornetQ with this configuration in hornetq-configuration.xml

       

      <acceptor name="stomp-acceptor">
      <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
      <param key="protocols" value="STOMP"/>
      <param key="port" value="61613"/>
      <param key="host" value="0.0.0.0"/>
      </acceptor>

       

      And I have around 10 sub-system talking to each other via HornetQ and I saw this error in HornetQ log.

       

      Jul 15 00:00:08 tms2-suzhou java[34074]: 00:00:08,102 ERROR [org.hornetq.core.protocol.stomp] HQ224023: Unable to send frame StompFrame[command=CONNECTED, headers={version=1.2, session=1085547823, server=HornetQ/2.5.0.SNAPSHOT (Wild Hornet, 124) HornetQ Messaging Engine}, content= null bytes null: java.lang.IllegalThreadStateException

      Jul 15 00:00:08 tms2-suzhou java[34074]: at java.lang.Thread.start(Thread.java:705) [rt.jar:1.7.0_79]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.v11.StompFrameHandlerV11.startHeartBeat(StompFrameHandlerV11.java:264) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.v11.StompFrameHandlerV11.replySent(StompFrameHandlerV11.java:243) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompConnection.physicalSend(StompConnection.java:792) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompProtocolManager.send(StompProtocolManager.java:204) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompProtocolManager$2.done(StompProtocolManager.java:337) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.persistence.impl.journal.OperationContextImpl.executeOnCompletion(OperationContextImpl.java:182) [hornetq-server.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.persistence.impl.journal.JournalStorageManager.afterCompleteOperations(JournalStorageManager.java:771) [hornetq-server.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompProtocolManager.sendReply(StompProtocolManager.java:322) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompConnection.sendFrame(StompConnection.java:545) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompConnection.handleFrame(StompConnection.java:534) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompProtocolManager.handleBuffer(StompProtocolManager.java:159) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.protocol.stomp.StompConnection.bufferReceived(StompConnection.java:352) [hornetq-stomp-protocol.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:658) [hornetq-server.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.channelRead(HornetQChannelHandler.java:73) [hornetq-core-client.jar:]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:122) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:485) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:452) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:346) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [netty.jar:4.0.13.Final]

      Jul 15 00:00:08 tms2-suzhou java[34074]: at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

       

      Anyway to find out what was the root cause of this ?