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?