Spark fails to login after restore from Hibernation

Description

Spark fails to log back in when I restore from Hibernation.
How to reproduce:

  1. Login Spark

  2. Hibernate

  3. Wait for more than 3 minutes (until the server acknowledges the user went offline).

  4. Log back in
    Result: Spark does not login

The logged errors are:

  •  

    • Hibernation time
      03/05/2007 17:48:53 org.jivesoftware.spark.util.log.Log error
      SEVERE: Connection closed on error.
      java.net.SocketException: Connection closed by remote host
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1186)
      at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:43)
      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.util.ObservableWriter.flush(ObservableWriter.java:48)
      at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:259)
      at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
      at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)
      03/05/2007 17:48:56 org.jivesoftware.spark.util.log.Log error
      SEVERE: Connection closed on error.
      java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen ...null... @47:1163
      at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3014)
      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:368)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

  •  

    • Reconnection attempt
      03/05/2007 17:52:33 org.jivesoftware.spark.util.log.Log error
      SEVERE: Connection closed on error.
      java.io.IOException: Stream closed
      at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)
      at java.io.BufferedWriter.write(BufferedWriter.java:203)
      at java.io.Writer.write(Writer.java:140)
      at org.jivesoftware.smack.util.ObservableWriter.write(ObservableWriter.java:66)
      at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:258)
      at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
      at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)
      03/05/2007 17:52:33 org.jivesoftware.spark.util.log.Log error
      GRAVE: Connection closed on error.
      java.net.SocketException: socket closed
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
      at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:722)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:679)
      at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
      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.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
      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:368)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
      No response from the server.:
      at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLAuthentication.java:320)
      at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:210)
      at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:341)
      at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1287)
      at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:163)
      java.io.IOException: Stream closed
      at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)
      at java.io.BufferedWriter.write(BufferedWriter.java:203)
      at java.io.Writer.write(Writer.java:140)
      at org.jivesoftware.smack.util.ObservableWriter.write(ObservableWriter.java:66)
      at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:258)
      at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
      at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)
      java.net.SocketException: Socket is closed
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1163)
      at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65)
      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.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
      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:368)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

Environment

None

Activity

Show:
Walter Ebeling
June 22, 2011, 6:02 PM

Mass closing of all bugs resoved during 2.6.0 and 2.6.1

Holger Bergunde
May 4, 2011, 7:37 AM

bug doesn't appear for a long period. reopen if necessary

Walter Ebeling
March 1, 2011, 5:37 PM

Please review the open issues and familiarize yourself with the code.

Juan Luis Rodríguez
January 25, 2010, 11:47 PM

Maybe related with SMACK-278 ?

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Priority

Major

Assignee

Holger Bergunde

Reporter

Francisco Vives