AnsweredAssumed Answered

ClassNotFound

Question asked by Aditya on Jan 20, 2015

Hi all,

 

 

I am using asmack 4.0.6.

 

When i establish connection, i am getting log like,

 

01-21 13:56:52.736: W/TestClient(3462): Can't load class for org.jivesoftware.smackx.packet.Time

01-21 13:56:52.738: W/System.err(3462): java.lang.ClassNotFoundException: org.jivesoftware.smackx.packet.Version

01-21 13:56:52.738: W/System.err(3462): at java.lang.Class.classForName(Native Method)

01-21 13:56:52.738: W/System.err(3462): at java.lang.Class.forName(Class.java:308)

01-21 13:56:52.738: W/System.err(3462): at java.lang.Class.forName(Class.java:272)

01-21 13:56:52.738: W/System.err(3462): at com.rappier.closrr.MyService.configure(MyService.java:279)

01-21 13:56:52.738: W/System.err(3462): at com.rappier.closrr.MyService.onCreate(MyService.java:243)

01-21 13:56:52.738: W/System.err(3462): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2731)

01-21 13:56:52.738: W/System.err(3462): at android.app.ActivityThread.access$1800(ActivityThread.java:144)

01-21 13:56:52.739: W/System.err(3462): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)

01-21 13:56:52.739: W/System.err(3462): at android.os.Handler.dispatchMessage(Handler.java:102)

01-21 13:56:52.740: W/System.err(3462): at android.os.Looper.loop(Looper.java:135)

01-21 13:56:52.740: W/System.err(3462): at android.app.ActivityThread.main(ActivityThread.java:5221)

01-21 13:56:52.740: W/System.err(3462): at java.lang.reflect.Method.invoke(Native Method)

01-21 13:56:52.740: W/System.err(3462): at java.lang.reflect.Method.invoke(Method.java:372)

01-21 13:56:52.740: W/System.err(3462): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)

01-21 13:56:52.740: W/System.err(3462): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

01-21 13:56:52.740: W/System.err(3462): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jivesoftware.smackx.packet.Version" on path: DexPathList[[zip file "/data/app/com.rappier.closrr-1/base.apk"],nativeLibraryDirectories=[/vendor/li b, /system/lib]]

01-21 13:56:52.741: W/System.err(3462): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

01-21 13:56:52.741: W/System.err(3462): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

01-21 13:56:52.741: W/System.err(3462): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

01-21 13:56:52.741: W/System.err(3462): ... 15 more

01-21 13:56:52.741: W/System.err(3462): Suppressed: java.lang.ClassNotFoundException: org.jivesoftware.smackx.packet.Version

01-21 13:56:52.742: W/System.err(3462): at java.lang.Class.classForName(Native Method)

01-21 13:56:52.742: W/System.err(3462): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

01-21 13:56:52.742: W/System.err(3462): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

01-21 13:56:52.742: W/System.err(3462): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

01-21 13:56:52.742: W/System.err(3462): ... 16 more

01-21 13:56:52.742: W/System.err(3462): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

 

 

Please help..

Outcomes