Hi all,

I am currently trying to swap in qpid-cpp v0.18 to replace an unreliable 
activemq server installation. The connection is protected with client 
certificates.

When the client tries the connect, the qpid-client v0.24 reports a 
"java.net.SocketException: Broken pipe" and then hangs solid, the hang solid 
most probably due to bug https://issues.apache.org/jira/browse/QPID-5113. What 
I am after is why the "java.net.SocketException: Broken pipe".

I switched on what I thought was trace debugging in qpid-cpp using the "-t" 
command line option, but all I got was the trace below:

Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:08:59 localhost qpidd[3027]: 2013-10-10 06:08:59 [Network] trace 
Accepting SSL connection.
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50899]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50898]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50898]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50899]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50893]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50893]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50894]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50895]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50895]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50897]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50897]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50894]: INIT(
0-10)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
RECV [127.0.0.1:5671-127.0.0.1:50896]: INIT(
0-0)
Oct 10 06:09:02 localhost qpidd[3027]: 2013-10-10 06:09:02 [Security] debug 
SENT [127.0.0.1:5671-127.0.0.1:50896]: INIT(
0-10)

Is there some kind of command line option over and above the -t that tells 
qpid-cpp to log errors? If I had an error message, I could debug this, right 
now all I have is a disconnect followed by silence.

The stack trace on the client side is as follows for each failed connection:

java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
        at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377)
        at sun.security.ssl.OutputRecord.write(OutputRecord.java:363)
        at 
sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:830)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:801)
        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
        at 
org.apache.qpid.amqp_1_0.framing.ConnectionHandler$BytesOutputHandler.processBytes(ConnectionHandler.java:418)
        at 
org.apache.qpid.amqp_1_0.framing.ConnectionHandler$FrameToBytesSourceAdapter.getBytes(ConnectionHandler.java:305)
        at 
org.apache.qpid.amqp_1_0.framing.ConnectionHandler$SequentialBytesSource.getBytes(ConnectionHandler.java:371)
        at 
org.apache.qpid.amqp_1_0.framing.ConnectionHandler$BytesOutputHandler.run(ConnectionHandler.java:404)
        at java.lang.Thread.run(Thread.java:724)

The command line options for qpid-cpp are as follows:

qpidd     3027  0.5  0.8 299072  4336 ?        Ssl  06:07   0:04 
/usr/sbin/qpidd --data-dir /var/lib/qpidd --daemon -t --port 5672 --ssl-cert-db 
sql:/etc/pki/nssdb --ssl-cert-name Server-Cert --ssl-port 5671 
--ssl-require-client-authentication --ssl-sasl-no-dict

Regards,
Graham
--


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to