powered by Jive Software

Cannot connect to Google Talk behind proxy

Hi, I have read various discussion threads related to proxy issue with

smack. I am still not sure if smack support access behind the firewall.

In one of the threads, I came across this issue which is available

as a patch: Need to add in http proxy support to XMLConnection.

http://www.igniterealtime.org/issues/browse/SMACK-226?page=com.atlassian.jira.pl ugin.system.issuetabpanels:all-tabpanel

I installed this patch. When I am not connect via proxy I am

able to connect to google talk but when I am behind proxy (and provide

SOCKS details) I get following exception on connect(). The SOCKS proxy

is SOCKS5:

java.io.EOFException: input contained no data

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

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

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$0(PacketReader.java:266)

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

Connection failed. No response from server.:

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

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

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

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

I get the same error when:

  1. I provide wrong SOCKS user / pass

  2. I provide correct SOCKS user/pass.

I am trying to connect to Google Talk with following credentials:

private static final String xmppServer = “talk.google.com”;

private static final int xmppPort = 5223;

private static final String domain = “gmail.com”;

Can anyone point if at all I can use smack 3.0.4 to access Google Talk (or any public XMPP server) from behind the firewall ???