Hi, I think the problem is that the end-of-line or end-of-message indicator I sent to activemq from my C client is not correctly recognized. I have tried '\0' and '\n' to end the line ( similar to ctrl-@ in telnet window ), but it does not work. Does anyone know how I can solved this problem?
Thanks, JB On Fri, Jan 9, 2009 at 6:29 PM, Juan Backson <juanback...@gmail.com> wrote: > Hi > > When I use my c stomp client to send TCP/IP message to activemq, I am > getting EOFException. > I am using '\0' to represent ^@ (request = switch_mprintf( > "SEND\ndestination:%s\n\n%s\n\n\0",dest,msg);) > Does anyone know what is wrong with that? > > When I use the telnet window to send the message, this error message > does not appear. > > DEBUG Transport - Transport failed: java.io.EOFException > java.io.EOFException > at java.io.DataInputStream.readByte(DataInputStream.java:250) > at > org.apache.activemq.transport.stomp.StompWireFormat.readLine(StompWireFormat.java:186) > at > org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:94) > at > org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:203) > at > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:195) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183) > at java.lang.Thread.run(Thread.java:619) > DEBUG TransportConnection - Stopping connection: > /192.168.1.101:59489 > DEBUG TcpTransport - Stopping transport > tcp:///192.168.1.101:59489 > > > Any help and suggestion in getting this problem resolved will be > greatly appreciated. > > Thanks, > JB >