powered by Jive Software

Remote host connection closed

Hi,

I am using ‘smack_3_2_2’ for building a chat application.

Earlier it was running fine for 2 days, and since yesterday I am getting following error:

java.net.SocketException: Connection closed by remote host

  • at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1281)*

  • 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.PacketWriter.writePackets(PacketWriter.java:208)*

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

  • at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)*

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 …</stream:features>… @1:335

  • at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)*

  • at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)*

  • 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:325)*

  • at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)*

  • at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)*

Due to this, I am unable to recieve any chats. I can send , but cant receive.

Please Help…!!

Thanks in advance.

Neha…