AnsweredAssumed Answered

Disconnections on spark 2.5.7 client with openfire 3.3.3

Question asked by sateeshkn on Oct 26, 2007
Latest reply on Dec 5, 2007 by jcarson

 

We are facing frequent disconnections with openfire 3.3.3 and spark 2.5.7 on spark client every 30-40 seconds, sometimes 1 minute.

 

 

Does spark client send "keep alive" packets onto the server to keep the connection alive.

 

 

I could not trace any thing on the openfire server regarding this error.

 

 

java.net.SocketException: Connection reset

 

 

        at java.net.SocketInputStream.read(SocketInputStream.java:168)

 

 

        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)

 

 

        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)

 

 

        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)

 

 

        at java.io.InputStreamReader.read(InputStreamReader.java:167)

 

 

        at java.io.BufferedReader.fill(BufferedReader.java:136)

 

 

        at java.io.BufferedReader.read1(BufferedReader.java:187)

 

 

        at java.io.BufferedReader.read(BufferedReader.java:261)

 

 

        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)

 

 

        at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)

 

 

        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)

 

 

        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

 

 

        at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:371)

 

 

        at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)

 

 

        at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

 

 

In PacketReader Exception End

 

 

java.lang.Exception: Stack trace

 

 

Packet Writer writePackets()org.jivesoftware.smack.XMPPConnection@dbe178 true

 

 

        at java.lang.Thread.dumpStack(Thread.java:1206)Packet Writer writePackets()java.io.BufferedWriter@b6ece5

 

 

 

 

 

        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:568)

 

 

In PacketWriter IOException Start       at org.jivesoftware.smack.PacketReader.notifyConnectionError(PacketReader.java:

 

 

14)

 

 

 

 

 

        at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:381)

 

 

        at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)

 

 

        at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

 

 

java.net.SocketException: Connection reset by peer: socket write error

 

 

        at java.net.SocketOutputStream.socketWrite0(Native Method)

 

 

        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

 

 

        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

 

 

        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)

 

 

        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)

 

 

        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)

 

 

        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)

 

 

        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)

 

 

        at java.io.BufferedWriter.flush(BufferedWriter.java:236)

 

 

        at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:261)

 

 

        at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

 

 

        at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)

 

 

In PacketWriter IOException End

 

 

java.lang.Exception: Stack trace

 

 

        at java.lang.Thread.dumpStack(Thread.java:1206)

 

 

        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:568)

 

 

        at org.jivesoftware.smack.PacketReader.notifyConnectionError(PacketReader.java:214 )

 

 

        at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:309)

 

 

        at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

 

 

        at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)

 

 

java.net.SocketException: Connection reset

 

 

        at java.net.SocketInputStream.read(SocketInputStream.java:168)

 

 

        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)

 

 

        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)

 

 

        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)

 

 

        at java.io.InputStreamReader.read(InputStreamReader.java:167)

 

 

        at java.io.BufferedReader.fill(BufferedReader.java:136)

 

 

        at java.io.BufferedReader.read1(BufferedReader.java:187)

 

 

        at java.io.BufferedReader.read(BufferedReader.java:261)

 

 

        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)

 

 

        at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)

 

 

        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)

 

 

        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

 

 

        at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:371)

 

 

        at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)

 

 

        at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

 

 

java.net.SocketException: Connection reset by peer: socket write error

 

 

        at java.net.SocketOutputStream.socketWrite0(Native Method)

 

 

        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

 

 

        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

 

 

        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)

 

 

        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)

 

 

        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)

 

 

        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)

 

 

        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)

 

 

        at java.io.BufferedWriter.flush(BufferedWriter.java:236)

 

 

        at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:261)

 

 

        at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

 

 

        at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)

 

 

 

 

 

Outcomes