JbossAS6.1: Invalid STOMP frame: 1,10,1,10,
ukriegel Sep 21, 2011 5:34 AMHi there,
we using JBossAS6.1.0Final and STOMP to communicate between .Net-C#-Applications and Java.
A simple test program sends a few text messages from C# to a JMS topic, an echo-MDB receives the messages and send them again into another topic to be received by a .Net-C# listener on another computer. Everything works fine if after the last message the connection is closed from the C#-Client.
If it stays open, after approx. 2 mins the Jboss console shows the error message shown below, which is repeated until the connection is closed
10:27:15,515 ERROR [org.hornetq.core.protocol.stomp.StompProtocolManager] Failed to decode: org.hornetq.core.protocol.stomp.StompException: Invalid STOMP frame: 1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,
at org.hornetq.core.protocol.stomp.StompDecoder.throwInvalid(StompDecoder.java:566) [:6.1.0.Final]
at org.hornetq.core.protocol.stomp.StompDecoder.decode(StompDecoder.java:367) [:6.1.0.Final]
at org.hornetq.core.protocol.stomp.StompProtocolManager.handleBuffer(StompProtocolManager.java:161) [:6.1.0.Final]
at org.hornetq.core.protocol.stomp.StompConnection.bufferReceived(StompConnection.java:269) [:6.1.0.Final]
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:459) [:6.1.0.Final]
at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73) [:6.1.0.Final]
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) [:6.1.0.Final]
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362) [:6.1.0.Final]
at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:357) [:6.1.0.Final]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [:6.1.0.Final]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [:6.1.0.Final]
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90) [:6.1.0.Final]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [:6.1.0.Final]
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46) [:6.1.0.Final]
at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181) [:6.1.0.Final]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Is there a solution except closing the connection after every send-operation?
Thanks in advance
--ulrich
The attachment contains the C#-Client as VisualStudi2010 package with all libs needed. In addition one needs - a Jboss6.1.0Final with two tropics INPUT and OUTPUT is reguired, which are in a role to subscribe and publish - an MDB which listens and publishes the received messages In both sources the host-adress must be set
-
EchoMDB.java.zip 1.5 KB
-
JmsConnector_.zip 324.8 KB