Ok, now I have all the logs. This is the client side (Smack):
08:42:51 AM SENT (12306126):
08:42:51 AM SENT (12306126):
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:283)
at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:272)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
at java.io.BufferedWriter.flush(BufferedWriter.java:236)
at org.jivesoftware.smack.util.ObservableWriter.flush(ObservableWriter.java:48)
at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:249)
at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:34)
at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:69)
stream:error (bad-format)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:310)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
For completeness, here is the server log (jabberd2, c2s) of the same run:
Sun Mar 5 08:42:51 2006 c2s.c:417 accept action on fd 9
Sun Mar 5 08:42:51 2006 connect
sx (sx.c:55) allocated new sx for 9
sx (server.c:236) doing server init for sx 9
sx (server.c:251) waiting for stream header
sx (server.c:254) tag 9 event 0 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:33 want read
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80c8978
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 1 bytes
sx (io.c:181) passed 1 read bytes
sx (chain.c:93) calling io read chain
sx (io.c:205) decoded read data (1 bytes):
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80c8990
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 115 bytes
sx (io.c:181) passed 115 read bytes
sx (chain.c:93) calling io read chain
sx (io.c:205) decoded read data (115 bytes):
sx (chain.c:79) calling io write chain
sx (io.c:312) handing app 50 bytes to write
sx (io.c:313) tag 9 event 3 data 0x80dffc8
Sun Mar 5 08:42:51 2006 c2s.c:104 writing to 9
Sun Mar 5 08:42:51 2006 c2s.c:108 50 bytes written
sx (ssl.c:33) preparing for starttls
sx (sx.c:148) resetting stream state
sx (sx.c:72) freeing sx for 9
sx (sx.c:55) allocated new sx for 9
sx (server.c:236) doing server init for sx 9
sx (ssl.c:517) preparing for ssl accept for 9
sx (chain.c:28) adding io plugin
sx (server.c:251) waiting for stream header
sx (server.c:254) tag 9 event 0 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:33 want read
sx (io.c:346) tag 9 event 0 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:33 want read
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80dffc8
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 100 bytes
sx (io.c:181) passed 100 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 100 bytes into ssl read buffer
sx (ssl.c:152) secure channel not established, handshake in progress
sx (ssl.c:152) secure channel not established, handshake in progress
sx (io.c:199) tag 9 event 1 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:38 want write
Sun Mar 5 08:42:51 2006 c2s.c:395 write action on fd 9
sx (io.c:293) 9 ready for writing
sx (io.c:251) encoding 0 bytes for writing:
sx (chain.c:79) calling io write chain
sx (ssl.c:220) in sxssl_wio
sx (ssl.c:152) secure channel not established, handshake in progress
sx (ssl.c:302) prepared 649 ssl bytes for write
sx (io.c:312) handing app 649 bytes to write
sx (io.c:313) tag 9 event 3 data 0x80dffc8
Sun Mar 5 08:42:51 2006 c2s.c:104 writing to 9
Sun Mar 5 08:42:51 2006 c2s.c:108 649 bytes written
sx (io.c:346) tag 9 event 0 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:33 want read
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80dffc8
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 139 bytes
sx (io.c:181) passed 139 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 139 bytes into ssl read buffer
sx (ssl.c:152) secure channel not established, handshake in progress
sx (ssl.c:152) secure channel not established, handshake in progress
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80dffe0
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 43 bytes
sx (io.c:181) passed 43 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 43 bytes into ssl read buffer
sx (ssl.c:152) secure channel not established, handshake in progress
sx (ssl.c:166) secure channel established
sx (ssl.c:171) using cipher RC4-MD5 (128 bits)
sx (io.c:199) tag 9 event 1 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:38 want write
Sun Mar 5 08:42:51 2006 c2s.c:395 write action on fd 9
sx (io.c:293) 9 ready for writing
sx (io.c:251) encoding 0 bytes for writing:
sx (chain.c:79) calling io write chain
sx (ssl.c:220) in sxssl_wio
sx (ssl.c:302) prepared 43 ssl bytes for write
sx (io.c:312) handing app 43 bytes to write
sx (io.c:313) tag 9 event 3 data 0x80dffe0
Sun Mar 5 08:42:51 2006 c2s.c:104 writing to 9
Sun Mar 5 08:42:51 2006 c2s.c:108 43 bytes written
sx (io.c:346) tag 9 event 0 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:33 want read
Sun Mar 5 08:42:51 2006 c2s.c:381 read action on fd 9
sx (io.c:159) 9 ready for reading
sx (io.c:165) tag 9 event 2 data 0x80dffe0
Sun Mar 5 08:42:51 2006 c2s.c:43 reading from 9
Sun Mar 5 08:42:51 2006 c2s.c:97 read 149 bytes
sx (io.c:181) passed 149 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 149 bytes into ssl read buffer
sx (io.c:205) decoded read data (128 bytes):
sx (server.c:91) tag 9 event 8 data 0xbffff490
Sun Mar 5 08:42:51 2006 error: Stream error (Expected stream start)
sx (error.c:79) prepared error: <stream:stream xmlns:stream=’‘http://etherx.jabber.org/streams’’ version=’‘1.0’’><stream:error xmlns:stream=’‘http://etherx.jabber.org/streams’’><bad-format xmlns=’‘urn:ietf:params:xml:ns:xmpp-streams’’/></stream:error></stream:stream>
sx (io.c:440) 9 state change from 0 to 5
sx (io.c:221) tag 9 event 1 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:38 want write
Sun Mar 5 08:42:51 2006 c2s.c:395 write action on fd 9
sx (io.c:293) 9 ready for writing
sx (io.c:251) encoding 227 bytes for writing: <stream:stream xmlns:stream=’‘http://etherx.jabber.org/streams’’ version=’‘1.0’’><stream:error xmlns:stream=’‘http://etherx.jabber.org/streams’’><bad-format xmlns=’‘urn:ietf:params:xml:ns:xmpp-streams’’/></stream:error></stream:stream>
sx (chain.c:79) calling io write chain
sx (ssl.c:220) in sxssl_wio
sx (ssl.c:224) queueing buffer for write
sx (ssl.c:240) preparing queued buffer for write
sx (ssl.c:302) prepared 248 ssl bytes for write
sx (io.c:312) handing app 248 bytes to write
sx (io.c:313) tag 9 event 3 data 0x80dffc8
Sun Mar 5 08:42:51 2006 c2s.c:104 writing to 9
Sun Mar 5 08:42:51 2006 c2s.c:108 248 bytes written
sx (io.c:338) 9 state change from 5 to 6
sx (io.c:339) tag 9 event 7 data 0x0
Sun Mar 5 08:42:51 2006 c2s.c:400 close action on fd 9
Sun Mar 5 08:42:51 2006 disconnect
sx (sx.c:72) freeing sx for 9
Sun Mar 5 08:42:51 2006 ssl.c:548 cleaning up conn state
Sun Mar 5 08:43:12 2006 c2s.c:381 read action on fd 7
sx (io.c:159) 7 ready for reading
sx (io.c:165) tag 7 event 2 data 0x80c9a88
Sun Mar 5 08:43:12 2006 c2s.c:43 reading from 7
Sun Mar 5 08:43:12 2006 c2s.c:97 read 197 bytes
sx (io.c:181) passed 197 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 197 bytes into ssl read buffer
sx (io.c:205) decoded read data (1 bytes):
Sun Mar 5 08:43:12 2006 c2s.c:381 read action on fd 8
sx (io.c:159) 8 ready for reading
sx (io.c:165) tag 8 event 2 data 0x80c9920
Sun Mar 5 08:43:12 2006 c2s.c:43 reading from 8
Sun Mar 5 08:43:12 2006 c2s.c:97 read 245 bytes
sx (io.c:181) passed 245 read bytes
sx (chain.c:93) calling io read chain
sx (ssl.c:322) in sxssl_rio
sx (ssl.c:326) loading 245 bytes into ssl read buffer
sx (io.c:205) decoded read data (1 bytes):