You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Xiaohua Guan (JIRA)" <ji...@apache.org> on 2012/12/11 06:35:23 UTC

[jira] [Created] (AMQ-4217) Transport Connection to: tcp://XX.XX.XX.XX:52509 failed: java.net.SocketException: Connection reset

Xiaohua Guan created AMQ-4217:
---------------------------------

             Summary: Transport Connection to: tcp://XX.XX.XX.XX:52509 failed: java.net.SocketException: Connection reset
                 Key: AMQ-4217
                 URL: https://issues.apache.org/jira/browse/AMQ-4217
             Project: ActiveMQ
          Issue Type: Bug
          Components: stomp
    Affects Versions: 5.7.0
         Environment: Ubuntu 12.04, Stomp 1.1.10
            Reporter: Xiaohua Guan


I am using mcollective(1.3.1-19) in Ubuntu 12.04, which is connecting to activemq server via stomp protocol. 

After a topic was subscribed for a long time (> 8 hours), the exception "java.net.SocketException: Connection reset" occurred in file activemq.log when trying to publish a message on the topic.

Related information is pasted below.

1. Exception stack trace

java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:185)
        at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:50)
        at org.apache.activemq.transport.tcp.TcpTransport$2.fill(TcpTransport.java:612)
        at org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:58)
        at org.apache.activemq.transport.tcp.TcpTransport$2.read(TcpTransport.java:597)
        at java.io.DataInputStream.readByte(DataInputStream.java:265)
        at org.apache.activemq.transport.stomp.StompWireFormat.readHeaderLine(StompWireFormat.java:155)
        at org.apache.activemq.transport.stomp.StompWireFormat.readLine(StompWireFormat.java:148)
        at org.apache.activemq.transport.stomp.StompWireFormat.parseAction(StompWireFormat.java:170)
        at org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:98)
        at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:229)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:221)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204)
        at java.lang.Thread.run(Thread.java:679)

2. conf/active.xml(only the related parts)

        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:6166"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:6163"/>
         </transportConnectors>

3. stomp connection parameters

plugin.stomp.host = XXX.XXX.XXX.XXX
plugin.stomp.port = 6163
plugin.stomp.user = mcollective
plugin.stomp.password = XXXXXXX


Could you tell me how to solve the problem or bug?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira