Project

General

Profile

Bug #339

java.lang.IllegalStateException: Not connected to server.

Added by Anonymous about 8 years ago. Updated over 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
XMPP
Target version:
-
Start date:
01/30/2011
Due date:
% Done:

0%

Estimated time:
Affected version:
0.1.x
Locale:
Close

Description

Hi, when I try to access my jabber account (hosted at im2.apinc.org with my own domain name) I get the following error in logcat during the authentification (and beem just crash on the device):

W/System.err( 9951): java.lang.IllegalStateException: Not connected to server.
W/System.err( 9951):    at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:475)
W/System.err( 9951):    at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:69)
W/System.err( 9951):    at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:352)
W/System.err( 9951):    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:230)
W/System.err( 9951):    at com.beem.project.beem.service.XmppConnectionAdapter.login(XmppConnectionAdapter.java:208)
W/System.err( 9951):    at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:100)
W/System.err( 9951):    at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:57)
W/System.err( 9951):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err( 9951):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
W/System.err( 9951):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err( 9951):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
W/System.err( 9951):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
W/System.err( 9951):    at java.lang.Thread.run(Thread.java:1096)
W/dalvikvm( 9951): threadid=17: thread exiting with uncaught exception (group=0x4001b180)
E/AndroidRuntime( 9951): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception
E/AndroidRuntime( 9951): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 9951):        at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime( 9951):        at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
E/AndroidRuntime( 9951):        at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime( 9951):        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
E/AndroidRuntime( 9951):        at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime( 9951):        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
E/AndroidRuntime( 9951):        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
E/AndroidRuntime( 9951):        at java.lang.Thread.run(Thread.java:1096)
E/AndroidRuntime( 9951): Caused by: java.lang.IllegalStateException: Not connected to server.
E/AndroidRuntime( 9951):        at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:475)
E/AndroidRuntime( 9951):        at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:69)
E/AndroidRuntime( 9951):        at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:362)
E/AndroidRuntime( 9951):        at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:230)
E/AndroidRuntime( 9951):        at com.beem.project.beem.service.XmppConnectionAdapter.login(XmppConnectionAdapter.java:208)
E/AndroidRuntime( 9951):        at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:100)
E/AndroidRuntime( 9951):        at com.beem.project.beem.service.LoginAsyncTask.doInBackground(LoginAsyncTask.java:57)
E/AndroidRuntime( 9951):        at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime( 9951):        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/AndroidRuntime( 9951):        ... 4 more
I/Process ( 1999): Sending signal. PID: 9951 SIG: 3
I/dalvikvm( 9951): threadid=7: reacting to signal 3
I/dalvikvm( 9951): Wrote stack trace to '/data/anr/traces.txt'

What is strange is that if I use a wrong user/pass, it just tells me it cannot authenticate.

I am not Android 2.1 with last version of beem from Market (0.1.4).

History

#1 Updated by Victor N about 8 years ago

Hi, I registered to answer:

The problem is not there with the last 0.1.5 beta :)

#2 Updated by Whatcha Computer almost 8 years ago

I am having this same problem with 0.1.5 from hg and from the source files. Is there a fix for this?

#3 Updated by Frédéric Barthéléry about 7 years ago

  • Priority changed from High to Normal

#4 Updated by Frédéric Barthéléry over 6 years ago

  • Status changed from New to Feedback

Also available in: Atom PDF