java.io.EOFException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Smack API, connect() exception
    via Stack Overflow by julia
    ,
  • One additional comment: I also tested by setting port to 5223 with the same result. {quote} INFO: Completed initialization Feb 15, 2011 2:36:02 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 58299 Feb 15, 2011 2:36:02 PM javax.jmdns.impl.HostInfo newHostInfo WARNING: Could not find any address beside the loopback. Feb 15, 2011 2:36:32 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect java.io.EOFException: input contained no data <-->at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) <-->at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) <-->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:325) <-->at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) <-->at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Feb 15, 2011 2:37:35 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException <-->at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) <-->at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:258) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:252) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165) <-->at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154) <-->at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610) <-->at sun.security.ssl.Handshaker.process_record(Handshaker.java:546) <-->at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913) <-->at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) <-->at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:652) <-->at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78) <-->at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220) <-->at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) <-->at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) <-->at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) <-->at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) <-->at java.io.BufferedWriter.flush(BufferedWriter.java:253) <-->at java.io.FilterWriter.flush(FilterWriter.java:100) <-->at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258) <-->at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186) <-->at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40) <-->at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324) <-->at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224) <-->at sun.security.validator.Validator.validate(Validator.java:235) <-->at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144) <-->... 18 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target <-->at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197) <-->at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255) <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319) <-->... 24 more {quote}
    via by Sorin Sbarnea,
  • Our internal company XMPP server supports legacy SSL connections. We are currently using the Jabber plugin with it, with the 'Enable SASL connection option' enabled as well. It is working pretty well for us. :-) One issue I am seeing in the logfile is that it takes the Jabber plugin 1 minute to connect to the server, because it first tries to connect with SASL, then gets an EOFException, and finally (60 secs later) retries with legacy SSL and succeeds. See log below: Sep 26, 2013 2:14:00 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect Sep 26, 2013 2:14:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection INFO: Trying to connect to XMPP on somebox:someport/foo.com with SASL java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) 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:325) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection setupSubscriptionMode INFO: Accepting all subscription requests Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect INFO: Connected to XMPP on somebox:someport/foo.com At first, I thought all we would need to do is uncheck the 'Enable SASL connection option' checkbox. But alas, if we deselect that, then it never connects. Sep 26, 2013 2:21:22 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect Sep 26, 2013 2:21:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection INFO: Trying to connect to XMPP on somehost:someport/foo.com java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) 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:325) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:22:22 PM hudson.model.Run execute Sep 26, 2013 2:22:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL stream:error (not-authorized) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:22:43 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect WARNING: No response from the server.: at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212) at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:319) at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:162) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:662) Sep 26, 2013 2:22:43 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Reconnect failed. Next connection attempt in 1 minutes ... Would it be possible to add a checkbox so that it can skip the original XMPP connection using SASL and directly go to XMPP over Legacy SSL? Thanks! -Steve
    via by Steve Roth,
  • Our internal company XMPP server supports legacy SSL connections. We are currently using the Jabber plugin with it, with the 'Enable SASL connection option' enabled as well. It is working pretty well for us. :-) One issue I am seeing in the logfile is that it takes the Jabber plugin 1 minute to connect to the server, because it first tries to connect with SASL, then gets an EOFException, and finally (60 secs later) retries with legacy SSL and succeeds. See log below: Sep 26, 2013 2:14:00 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect Sep 26, 2013 2:14:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection INFO: Trying to connect to XMPP on somebox:someport/foo.com with SASL java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) 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:325) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection setupSubscriptionMode INFO: Accepting all subscription requests Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect INFO: Connected to XMPP on somebox:someport/foo.com At first, I thought all we would need to do is uncheck the 'Enable SASL connection option' checkbox. But alas, if we deselect that, then it never connects. Sep 26, 2013 2:21:22 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect Sep 26, 2013 2:21:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection INFO: Trying to connect to XMPP on somehost:someport/foo.com java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) 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:325) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:22:22 PM hudson.model.Run execute Sep 26, 2013 2:22:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL stream:error (not-authorized) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Sep 26, 2013 2:22:43 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect WARNING: No response from the server.: at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212) at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:319) at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:162) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:662) Sep 26, 2013 2:22:43 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Reconnect failed. Next connection attempt in 1 minutes ... Would it be possible to add a checkbox so that it can skip the original XMPP connection using SASL and directly go to XMPP over Legacy SSL? Thanks! -Steve
    via by Steve Roth,
  • One additional comment: I also tested by setting port to 5223 with the same result. {quote} INFO: Completed initialization Feb 15, 2011 2:36:02 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 58299 Feb 15, 2011 2:36:02 PM javax.jmdns.impl.HostInfo newHostInfo WARNING: Could not find any address beside the loopback. Feb 15, 2011 2:36:32 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect java.io.EOFException: input contained no data <-->at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) <-->at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) <-->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:325) <-->at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) <-->at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Feb 15, 2011 2:37:35 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException <-->at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) <-->at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:258) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:252) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165) <-->at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154) <-->at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610) <-->at sun.security.ssl.Handshaker.process_record(Handshaker.java:546) <-->at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913) <-->at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) <-->at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:652) <-->at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78) <-->at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220) <-->at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) <-->at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) <-->at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) <-->at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) <-->at java.io.BufferedWriter.flush(BufferedWriter.java:253) <-->at java.io.FilterWriter.flush(FilterWriter.java:100) <-->at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258) <-->at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186) <-->at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40) <-->at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324) <-->at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224) <-->at sun.security.validator.Validator.validate(Validator.java:235) <-->at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144) <-->... 18 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target <-->at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197) <-->at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255) <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319) <-->... 24 more {quote}
    via by Sorin Sbarnea,
  • Sl -- Yahoo/Googletalk Instant Messages, Etc?
    via by Unknown author,
    • java.io.EOFException: input contained no data at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) 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:325) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    10 more bugmates