I eagerly downloaded Smack 2.0.0 a few minutes ago but I can’'t get a GoogleTalkConnection up - I always get “XMPPError connecting to talk.google.com:5222.: (502)” in construction of a new GoogleTalkConnection. I have smack.jar, smackx.jar on classpath, and my code is as simple as:
GoogleTalkConnection con = new GoogleTalkConnection();
What could be going on? I am not running a firewall, I can connect to google talk using the username and pwd in google talk itself - the only other thing I can think of is that I’‘m using 1.4.1 java, it doesn’'t require 1.4.2 does it?
emm… i’‘m not a coder and Google Talk spec, but i’'m reading whole forum and i think you should not put @gmail.com, but just username. Not sure about this though.
Hi - this error occurs in constructing a GoogleTalkConnection, before the login or chat is attempted (judging by the other examples you LOGIN without the @gmail but you open chats to people with the @gmail, but hey, if only I could get that far)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:124)
So this isn’‘t a smack thing - but I’‘m still none the wiser. I’'ve just tried to telnet to talk.google.com and it didnt let me (i.e. telnet talk.google.com 5222). Can anyone else do this? Maybe I am being blocked on this network somehow after all.