powered by Jive Software

On the different versions of the android using BOSH-version of Smack

I use from here (http://www.igniterealtime.org/community/message/199381 # 199381) provided by the sample application working with the BOSH branch of Smack and Android, to run on the android 2.0 there is no problem, but in the android 1.5, and android 1.6 is running and when to connect the server will throw an exception: java.lang.IllegalStateException: Could not load com.kenai.jbosh.HTTPSender implementation, Here is the error I get in LogCat:

01-15 01:34:05.477: ERROR/dalvikvm(819): Could not find method org.apache.http.conn.ssl.SSLSocketFactory., referenced from method com.kenai.jbosh.ApacheHTTPSender.initHttpClient
01-15 01:34:05.477: WARN/dalvikvm(819): VFY: unable to resolve direct method 1036: Lorg/apache/http/conn/ssl/SSLSocketFactory;. (Ljavax/net/ssl/SSLContext;)V
01-15 01:34:05.477: WARN/dalvikvm(819): VFY: rejecting opcode 0x70 at 0x0059
01-15 01:34:05.486: WARN/dalvikvm(819): VFY: rejected Lcom/kenai/jbosh/ApacheHTTPSender;.initHttpClient (Lcom/kenai/jbosh/BOSHClientConfig;)Lorg/apache/http/client/HttpClient;
01-15 01:34:05.486: WARN/dalvikvm(819): Verifier rejected class Lcom/kenai/jbosh/ApacheHTTPSender;
01-15 01:34:05.547: ERROR/XMPPClient(819): [SettingsDialog] Failed to connect to 192.168.0.120
01-15 01:34:05.547: ERROR/XMPPClient(819): Can’t connect to test.android.com:
01-15 01:34:05.547: ERROR/XMPPClient(819): – caused by: java.lang.IllegalStateException: Could not load com.kenai.jbosh.HTTPSender implementation
01-15 01:34:05.547: ERROR/XMPPClient(819): at org.jivesoftware.smack.BOSHConnection.connect(BOSHConnection.java:206)
01-15 01:34:05.547: ERROR/XMPPClient(819): at org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:52)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.performClick(View.java:2179)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.onTouchEvent(View.java:3828)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.widget.TextView.onTouchEvent(TextView.java:6291)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.dispatchTouchEvent(View.java:3368)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent( PhoneWindow.java:1707)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindo w.java:1197)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.app.Dialog.dispatchTouchEvent(Dialog.java:588)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(Phone Window.java:1691)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.os.Looper.loop(Looper.java:123)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.app.ActivityThread.main(ActivityThread.java:3948)
01-15 01:34:05.547: ERROR/XMPPClient(819): at java.lang.reflect.Method.invokeNative(Native Method)
01-15 01:34:05.547: ERROR/XMPPClient(819): at java.lang.reflect.Method.invoke(Method.java:521)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
01-15 01:34:05.547: ERROR/XMPPClient(819): at dalvik.system.NativeStart.main(Native Method)
01-15 01:34:05.547: ERROR/XMPPClient(819): Nested Exception:
01-15 01:34:05.547: ERROR/XMPPClient(819): java.lang.IllegalStateException: Could not load com.kenai.jbosh.HTTPSender implementation
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.kenai.jbosh.ServiceLib.loadService(ServiceLib.java:83)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.kenai.jbosh.BOSHClient.(BOSHClient.java:234)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.kenai.jbosh.BOSHClient.create(BOSHClient.java:367)
01-15 01:34:05.547: ERROR/XMPPClient(819): at org.jivesoftware.smack.BOSHConnection.connect(BOSHConnection.java:170)
01-15 01:34:05.547: ERROR/XMPPClient(819): at org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:52)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.performClick(View.java:2179)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.onTouchEvent(View.java:3828)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.widget.TextView.onTouchEvent(TextView.java:6291)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.View.dispatchTouchEvent(View.java:3368)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent( PhoneWindow.java:1707)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindo w.java:1197)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.app.Dialog.dispatchTouchEvent(Dialog.java:588)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(Phone Window.java:1691)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.os.Looper.loop(Looper.java:123)
01-15 01:34:05.547: ERROR/XMPPClient(819): at android.app.ActivityThread.main(ActivityThread.java:3948)
01-15 01:34:05.547: ERROR/XMPPClient(819): at java.lang.reflect.Method.invokeNative(Native Method)
01-15 01:34:05.547: ERROR/XMPPClient(819): at java.lang.reflect.Method.invoke(Method.java:521)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
01-15 01:34:05.547: ERROR/XMPPClient(819): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
01-15 01:34:05.547: ERROR/XMPPClient(819): at dalvik.system.NativeStart.main(Native Method)
01-15 01:34:05.576: DEBUG/AndroidRuntime(819): Shutting down VM
01-15 01:34:05.576: WARN/dalvikvm(819): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
01-15 01:34:05.586: ERROR/AndroidRuntime(819): Uncaught handler: thread main exiting due to uncaught exception
01-15 01:34:05.608: ERROR/AndroidRuntime(819): java.lang.IllegalStateException: Can’t connect to test.android.com:
01-15 01:34:05.608: ERROR/AndroidRuntime(819): – caused by: java.lang.IllegalStateException: Could not load com.kenai.jbosh.HTTPSender implementation
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:57)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.View.performClick(View.java:2179)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.View.onTouchEvent(View.java:3828)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.widget.TextView.onTouchEvent(TextView.java:6291)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.View.dispatchTouchEvent(View.java:3368)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent( PhoneWindow.java:1707)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindo w.java:1197)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.app.Dialog.dispatchTouchEvent(Dialog.java:588)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(Phone Window.java:1691)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.os.Looper.loop(Looper.java:123)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at android.app.ActivityThread.main(ActivityThread.java:3948)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at java.lang.reflect.Method.invokeNative(Native Method)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at java.lang.reflect.Method.invoke(Method.java:521)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at dalvik.system.NativeStart.main(Native Method)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): Caused by: Can’t connect to test.android.com:
01-15 01:34:05.608: ERROR/AndroidRuntime(819): – caused by: java.lang.IllegalStateException: Could not load com.kenai.jbosh.HTTPSender implementation
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at org.jivesoftware.smack.BOSHConnection.connect(BOSHConnection.java:206)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): at org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:52)
01-15 01:34:05.608: ERROR/AndroidRuntime(819): … 22 more

This is because the android 2.0 SDK in a certain part of the update do?I hope someone can tell what causes this and how to solve。

Thanks in advance