java.io.EOFException: input contained no data

Hello

New Smack user here o/

Unfortunately I cannot get a connection to Google talk using the latest release. I’ve just created a new Java project in eclipse, copied the jars from smack_src_3_1_0 and created a simple Application with the following two lines:

XMPPConnection xmppConnection = new XMPPConnection(new ConnectionConfiguration(“talk.google.com”, 443));

xmppConnection.connect();

ConnectionConfiguration talk = new ConnectionConfiguration(“talk.google.com”, 443);

XMPPConnection xmppConnection = new XMPPConnection(talk);

xmppConnection.connect();

And I’m receiving the following exception:

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:368)

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

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

Exception in thread “main” Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:164)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:945)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:904)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1415)

at SmackTest.main(SmackTest.java:20)

By enabling the debug console I can tell that smack is indeed trying to contact the other host.

Under raw packets send:

<stream:stream to=“talk.google.com” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>

</stream:stream>

However, there are no packets received.

Did I miss something?

I just tried to send the xml quoted in the first post manually and got the following response:

<stream:stream from=“talk.google.com” id=“E66D5F91946B0706” version=“1.0” xmlns:stream=“http://etherx.jabber.org/streams” xmlns=“jabber:client”>

stream:features

PLAIN

X-GOOGLE-TOKEN

</stream:features>

stream:error

<str:text xmlns:str=“urn:ietf:params:xml:ns:xmpp-streams”>Set the ‘to’ attribute of stream element to the domain part of the user’s JID. Example: to=‘gmail.com’.</str:text>

</stream:error>

</stream:stream>