powered by Jive Software

EOFException: input contained no data

Hi,

I have updated my Smack API from 1.5.0 to 2.1.0 version and in my own client I now get the following error that I did’'nt have before :

java.io.EOFException: input contained no data

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

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

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

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

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

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java

Do you have any idea ?

Regards,

Elryk

Where when and how are you getting this exception?

Alex

I really don’‘t know when I getting this exception. I connecting my client to a Jabber platform running on XCP 2.4. What I’‘m sure is that I was using Smack 1.5 in my Jabber client since june and I never had this error until a upgrade to 2.1 version. The EOFException is never thrown at the same time and is unpredictable. The Enhanced Debugger window is enable but when application crash in my IDE, I don’'t have access to it. May be should I enable the console debugger.

Elryk

I have enabled the new ConsoleDebugger. Here is a copy of two exceptions I received.

EOFException is the first one and seems to come from an empty packet I send. If it is, I dont’’ undestand why I send it.

02:40:21 PM SENT (26384885):

02:43:32 PM SENT (31407449):

java.io.EOFException: input contained no data

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

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

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

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

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

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

at com.francetelecom.rd.papayes.discover.server.jabber.xmpp.DiscoPacketReader.pars ePackets(DiscoPacketReader.java:47)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:64)[/i]

The second one seems to be thrown by a keep alive packet:

02:45:37 PM RCV (5118287): <k… @1:14)

at org.xmlpull.mxp1.MXParser.parseEpilog(MXParser.java:1588)

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

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

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

at com.francetelecom.rd.papayes.discover.server.jabber.xmpp.DiscoPacketReader.pars ePackets(DiscoPacketReader.java:47)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:64)[/i]

Was you able to resolve this issue?

We are having the similar problem.

Please let us know if you have some work arround ?

Thanks in advance.

With Regards

Rahul Saley