sandy0sonu / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

does not connect.. says "connecting" forever when using jabber.org #289

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use older version 3.x
2. upgrade to version 4.x (latest)

What is the expected output?
gtalksms should connect

What do you see instead?
it says "connecting" forever. after reboot it connects but soon problem 
reappears after wifi disconnects and reconnects few times. 

could not find a fix. downgraded and that works fine.

galaxy s2 rooted Android 2.3.6

Original issue reported on code.google.com by amitabh...@gmail.com on 13 Aug 2012 at 6:58

GoogleCodeExporter commented 8 years ago
Same issue tested with stock ROM and several alternatives ROMs in a Nexus One.

Original comment by jaime...@gmail.com on 14 Aug 2012 at 1:50

GoogleCodeExporter commented 8 years ago
Can you active debug log ?
Can you try to enter manually the server settings ?

Original comment by Florent....@gmail.com on 21 Aug 2012 at 7:24

GoogleCodeExporter commented 8 years ago
For the auto server settings the DNS resolver may hang then to put manual 
server settings, do:
> Click on Preferences at the right of the application name
> "Connection settings"
> Check "Manual Server Settings"
> Server Settings
  Server host = talk.google.com
  Server port = 5222
  Servive name = gmail.com

or 

> Server Settings
  Server host = jabber.org
  Server port = 5222
  Servive name = jabber.org

Original comment by Florent....@gmail.com on 21 Aug 2012 at 1:56

GoogleCodeExporter commented 8 years ago
Same problem here even with manual server configuration...
Here after is a log at extract:

W/gtalksms(12978): xmpp connection failed: XMPPError connecting to 
jabber.org:5222.
I/gtalksms(12978): broadcasting state transition from Connecting to Waiting to 
connect via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): maybeStartReconnect scheduling retry in 300000ms. Retry #35
I/gtalksms(12978): handled action 'com.googlecode.gtalksms.action.CONNECT' - 
state now: Waiting to connect
I/gtalksms(12978): handling action 
'com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED' while in state Waiting 
to connect
I/gtalksms(12978): handled action 
'com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED' - state now: Waiting 
to connect
I/gtalksms(12978): handling action 'com.googlecode.gtalksms.action.CONNECT' 
while in state Waiting to connect
I/gtalksms(12978): xmppRequestStateChange Waiting to connect => Connected
I/gtalksms(12978): broadcasting state transition from Waiting to connect to 
Connecting via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): MainService onDestroy(): IsRunning is set to false
I/gtalksms(12978): xmppRequestStateChange Connecting => Disconnected
I/gtalksms(12978): broadcasting state transition from Connecting to 
Disconnecting via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): broadcasting state transition from Disconnecting to 
Disconnected via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): teardownListenersForConnection()
I/gtalksms(12978): MainService onDestroy(): service destroyed
I/gtalksms(12978): LocationService onStart with intent 
action=com.googlecode.gtalksms.LOCATION_STOP_SERVICE
E/ActivityThread(12978): Service com.googlecode.gtalksms.MainService has leaked 
IntentReceiver 
org.jivesoftware.smack.SmackAndroid$ConnectivtyChangedReciever@41a765f8 that 
was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread(12978): android.app.IntentReceiverLeaked: Service 
com.googlecode.gtalksms.MainService has leaked IntentReceiver 
org.jivesoftware.smack.SmackAndroid$ConnectivtyChangedReciever@41a765f8 that 
was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread(12978):    at 
com.googlecode.gtalksms.XmppManager.<init>(XmppManager.java:124)
E/ActivityThread(12978):    at 
com.googlecode.gtalksms.XmppManager.getInstance(XmppManager.java:170)
E/ActivityThread(12978):    at 
com.googlecode.gtalksms.MainService.setupXmppManagerAndCommands(MainService.java
:531)
E/ActivityThread(12978):    at 
com.googlecode.gtalksms.MainService.onHandleIntent(MainService.java:159)
E/ActivityThread(12978):    at 
com.googlecode.gtalksms.MainService$ServiceHandler.handleMessage(MainService.jav
a:139)
I/SurfaceFlinger( 1913): id=2451(499) createSurface 0x124c624 (1x1),2 flag=400, 
gtalksms
I/gtalksms(12978): onCreate(): service thread created - IsRunning is set to true
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/AUTHORS
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.CONNECT
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Donors
I/gtalksms(12978): teardownListenersForConnection()
I/gtalksms(12978): LocationService onStart with intent 
action=com.googlecode.gtalksms.LOCATION_STOP_SERVICE
I/gtalksms(12978): handling action 'com.googlecode.gtalksms.action.CONNECT' 
while in state Disconnected
I/gtalksms(12978): xmppRequestStateChange Disconnected => Connected
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Changelog
I/SurfaceFlinger( 1913): id=2451 Removed gtalksms idx=4 Map Size=4
I/SurfaceFlinger( 1913): id=2451 Removed gtalksms idx=-2 Map Size=4
D/Mms/SuggestionsProvider(14659): [start]    query(),searchSuggest=gtalksms
I/gtalksms(12978): broadcasting state transition from Disconnected to 
Connecting via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
D/gtalksms(12978): downloaded in 0 sec
I/System.out( 2429): android.database.sqlite.SQLiteException: no such column: 
recipient_ids: , while compiling: select _id, address from canonical_addresses 
WHERE recipient_ids=canonical_addresses._id and (address LIKE '%gtalksms%')
E/QSB.SearchableSource(14513): 
SearchableSource[pl.solidexplorer/.search.SearchActivity][gtalksms] failed
W/gtalksms(12978): xmpp connection failed: XMPPError connecting to 
jabber.org:5222.
I/gtalksms(12978): broadcasting state transition from Connecting to Waiting to 
connect via Intent com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
I/gtalksms(12978): maybeStartReconnect scheduling retry in 300000ms. Retry #36
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.XMPP.CONNECTION_CHANGED
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.XmppManager.maybeStartReconnect(XmppManager.java:333)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.XmppManager.connectAndAuth(XmppManager.java:502)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.XmppManager.initConnection(XmppManager.java:371)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.XmppManager.start(XmppManager.java:178)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.XmppManager.xmppRequestStateChange(XmppManager.java:258)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.MainService.onHandleIntent(MainService.java:187)
W/MessageQueue(12978):  at 
com.googlecode.gtalksms.MainService$ServiceHandler.handleMessage(MainService.jav
a:139)
I/gtalksms(12978): handled action 'com.googlecode.gtalksms.action.CONNECT' - 
state now: Waiting to connect
W/ActivityManager( 2109): startActivity called from non-Activity context; 
forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { 
cmp=com.googlecode.gtalksms/.panels.MainActivity bnds=[0,488][720,618] }
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/AUTHORS
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.CONNECT
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Donors
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Changelog
D/gtalksms(12978): downloaded in 0 sec
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.DISCONNECT
W/ActivityManager( 2109): startActivity called from non-Activity context; 
forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { 
cmp=com.googlecode.gtalksms/.panels.MainActivity bnds=[0,488][720,618] }
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/AUTHORS
I/gtalksms(12978): onStartCommand(): Intent 
com.googlecode.gtalksms.action.CONNECT
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Donors
D/gtalksms(12978): downloaded in 0 sec
D/gtalksms(12978): Downloading url:http://gtalksms.googlecode.com/hg/Changelog
D/gtalksms(12978): downloaded in 0 sec

Original comment by mathieu....@gmail.com on 28 Aug 2012 at 7:46

GoogleCodeExporter commented 8 years ago
jabber.org has been subject to repeated DoS attacks ( 
http://mail.jabber.org/pipermail/jdev/2012-August/089153.html ). Is there 
anyone on this issue who *does not* use jabber.org?

Original comment by fschm...@gmail.com on 28 Aug 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Here's what fixed the connection issue for me:

  1. make sure your jabber login reads "foo@jabber.org" instead of just "foo" 
  2. in connection settings, uncheck "manual server settings" (that's where I had forced "jabber.org" for the server and "5222" for the port)

The DDoS against jabber.org forced the admins to do some DNS magic, so that 
running a plain "telnet jabber.org 5222" does not work anymore. Letting the 
client figure it out by itself is the way to go. Thanks to zash @ #jabber on 
freenode for the hint ! 

It probably would be worth documenting somewhere on the front page/app 
changelog, as I suspect this is hitting a lot gtalksms-with-jabber users.

Cheers,

--Seb

Original comment by sdelaf...@gmail.com on 29 Aug 2012 at 2:47

GoogleCodeExporter commented 8 years ago
I am having this issue with Gmail chat. I did not use jabber.org

Original comment by amitabh...@gmail.com on 4 Oct 2012 at 10:09

GoogleCodeExporter commented 8 years ago
Closing this one, as non-jabber.org related issues should be reported on the 
mailing list or as new issue.

Original comment by fschm...@gmail.com on 26 Nov 2012 at 9:35

GoogleCodeExporter commented 8 years ago
FWIW, I had to do the opposite to get it working on a custom domain:
I had to have
login: foo
(importantly, not foo@example.net)
serverHost: example.net
serverPort: 5222
serviceName: example.net

If I used the login "foo@example.net", it wouldn't work.  In the XMPP server 
log, I'd get:

[code]
debug   Client sent opening <stream:stream> to 
debug   Disconnecting client, <stream:error> is: <stream:error><host-unknown 
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text 
xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve 
</text></stream:error>
[/code]

It seems GtalkSMS wouldn't send the hostname properly.  (Maybe it's because the 
XMPP server I'm using is prosody, I don't know.)  The moment I change the login 
from "foo@example.net" to "foo", it started working.  I hope that helps some 
folks at least. 

Original comment by the.soli...@gmail.com on 13 Jan 2014 at 11:26