登陆正常,服务器也连接上了。发送消息的时候却报了这种错误,找了半天百思不得其解。
09-18 17:14:18.028: E/error(7955): com:org.jivesoftware.smack.XMPPConnection@4200f178连接错误Timeout getting VCard information: request-timeout(408) Timeout getting VCard information
09-18 17:14:59.898: E/AndroidRuntime(7955): FATAL EXCEPTION: main09-18 17:14:59.898: E/AndroidRuntime(7955): java.lang.IllegalStateException: Not connected to server.
09-18 17:14:59.898: E/AndroidRuntime(7955): at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:488)
09-18 17:14:59.898: E/AndroidRuntime(7955): at org.jivesoftware.smack.ChatManager.sendMessage(ChatManager.java:235)
09-18 17:14:59.898: E/AndroidRuntime(7955): at org.jivesoftware.smack.Chat.sendMessage(Chat.java:97)
09-18 17:14:59.898: E/AndroidRuntime(7955): at com.customeservier.android.service.CustomeClientActivity.sendMessage(CustomeClientActivity.java:678)
09-18 17:14:59.898: E/AndroidRuntime(7955): at com.customeservier.android.service.CustomeClientActivity.onClick(CustomeClientActivity.java:403)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.view.View.performClick(View.java:4210)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.view.View$PerformClick.run(View.java:17365)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.os.Handler.handleCallback(Handler.java:725)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.os.Handler.dispatchMessage(Handler.java:92)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.os.Looper.loop(Looper.java:137)
09-18 17:14:59.898: E/AndroidRuntime(7955): at android.app.ActivityThread.main(ActivityThread.java:5136)
09-18 17:14:59.898: E/AndroidRuntime(7955): at java.lang.reflect.Method.invokeNative(Native Method)
09-18 17:14:59.898: E/AndroidRuntime(7955): at java.lang.reflect.Method.invoke(Method.java:511)
09-18 17:14:59.898: E/AndroidRuntime(7955): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:845)
09-18 17:14:59.898: E/AndroidRuntime(7955): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
09-18 17:14:59.898: E/AndroidRuntime(7955): at dalvik.system.NativeStart.main(Native Method)