qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jen Andre <jan...@gmail.com>
Subject Connection: read timed out
Date Tue, 09 Feb 2010 22:28:37 GMT

Hi all,

I get a connection "Read timed out" exception after a while.  I'm testing
using a modified version of a Java example (that just runs in a loop 5000
times: send 1 msg, sleep) running on Linux (connecting via localhost to the
0.5 c++ broker).  I'm using the java client libs from the 0.6 tree (though
it happens with 0.5 as well).  

After a while, a mysterious read time out appears.  Here's the error:

DEBUG   2010-02-09 18:11:11,505 org.apache.qpid.transport.Connection    main   
FLUSH: [conn:15311bd]
ERROR   2010-02-09 18:11:11,552
org.apache.qpid.client.AMQConnectionDelegate_0_10       IoReceiver -
localhost/127.0.0.1:5672   previous exception
org.apache.qpid.transport.ConnectionException: Read timed out
        at
org.apache.qpid.transport.Connection.exception(Connection.java:414)
        at
org.apache.qpid.transport.network.Assembler.exception(Assembler.java:108)
        at
org.apache.qpid.transport.network.InputHandler.exception(InputHandler.java:197)
        at
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:145)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:123)
        ... 1 more
DEBUG   2010-02-09 18:11:11,554 org.apache.qpid.transport.Connection   
IoReceiver - localhost/127.0.0.1:5672   connection closed: conn:15311bd
DEBUG   2010-02-09 18:11:11,558 org.apache.qpid.jms.FailoverPolicy     
IoReceiver - localhost/127.0.0.1:5672   All failover methods exhausted
ERROR   2010-02-09 18:11:11,559
org.apache.qpid.client.AMQConnectionDelegate_0_10       IoReceiver -
localhost/127.0.0.1:5672   connection exception: conn:15311bd
org.apache.qpid.transport.ConnectionException: connection aborted
        at org.apache.qpid.transport.Connection.closed(Connection.java:437)
        at
org.apache.qpid.transport.network.Assembler.closed(Assembler.java:113)
        at
org.apache.qpid.transport.network.InputHandler.closed(InputHandler.java:202)
        at
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:150)
        at java.lang.Thread.run(Unknown Source)


------------------

there appears to be nothing in the broker log file except the recorded
disconnect:

2010-feb-09 18:11:11 debug DISCONNECTED [127.0.0.1:58825]
2010-feb-09 18:11:11 debug guest@QPID.97865187-7ea0-498b-83e2-45aa59054241:
detached on broker.


I've attached my sample code, configuration file, and the output from the
client trace (client.log) and the broker (qpidd.log).

NOTE: this happens even when connecting to a broker outside of localhost. 
HOWEVER: if I run this program on an external machine and sends messages to
the broker, there is no timeout exception.   It also works fine with a
similar python test (loop and send 1 msg).  I think, therefore, the problem
is in the client lib (not the broker).

I'm using a linux VM with java version "1.6.0_18", if that is helpful.

Any advice on troubleshooting this would be appreciated.

http://n2.nabble.com/file/n4544370/debug.zip debug.zip 


-- 
View this message in context: http://n2.nabble.com/Connection-read-timed-out-tp4544370p4544370.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message