xmpp connection error

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

xmpp connection error

Postby jagtap.jj1 » Mon Dec 08, 2008 2:37 pm

Hello EveryBody

I am trying to connect to XMMP Server (openfire) and smack API, the xmpp objects creates but
the connect method giving xmppexception.
Is there any addtional parameter in manifist.xml for xmpp than general activity parameter; if
so give me parameters name.
if any body have solution plz reply me.


Regards
jagtap
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Postby MrSnowflake » Mon Dec 08, 2008 10:45 pm

permission.INTERNET is needed.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jagtap.jj1 » Wed Dec 10, 2008 9:40 am

Thank you MrSnowflake
Now I am connectiong to server but when I am start login or create account , It gives Application stopped unexpectedly Error and force to close appl.

Is anybody having XMPPClient.zip from http://davanum.wordpress.com/2007/12/31 ... i-for-xmpp
Or any other sample appl for XMMP Client.

Regards
jagtap
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Postby MrSnowflake » Wed Dec 10, 2008 11:57 am

jagtap.jj1 wrote:Now I am connectiong to server but when I am start login or create account , It gives Application stopped unexpectedly Error and force to close appl.
Check your log to see what's wrong.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jagtap.jj1 » Wed Dec 10, 2008 2:09 pm

There is nothing in logcat, I mean error message is not getting logged by Log.e I think it not XMMPexception if it would have been then appl must handled it and there is no necessary to fore close appl.

LogCat :
I/ActivityManager( 50): Starting activity: Intent { action=android.intent.acti
on.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000 comp={org
.igloo.createacc/org.igloo.createacc.CreateAccount} }
I/ActivityManager( 50): Start proc org.igloo.createacc for activity org.igloo.
createacc/.CreateAccount: pid=283 uid=10040 gids={3003}
I/ActivityManager( 50): Displayed activity org.igloo.createacc/.CreateAccount:
1347 ms
I/ActivityManager( 50): Process org.igloo.createacc (pid 283) has died.

Now I am getting login by after setting xmppConCofig.setSASLAuthenticationEnabled(false);
Because m/c is slow so it might be the case that appl is not getting authenticated within five seconds . so it was throwing XMPPException.

But for creating account same errorr come and force to close application. Is there any tricks.
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 9 guests