Android Question Error with HttpJob

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am using a httpjob to call a webservice but I am getting an error from this when this came back. The webservice run fine and save to database

jobproductoid this is the name job

this is the error

java.lang.RuntimeException: java.lang.ClassNotFoundException:
b4a.example.jobproductoid
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:984)
at anywheresoftware.b4a.keywords.Common$6.run(Common.java:995)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.ClassNotFoundException: b4a.example.jobproductoid
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at

anywheresoftware.b4a.keywords.Common.getComponentBA(Common.java:1020)
at anywheresoftware.b4a.keywords.Common.access$0(Common.java:1010)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:929)
... 8 more

Caused by: java.lang.ClassNotFoundException: Didn't find class "b4a.example.jobproductoid" on path: DexPathList[[zip file "/data/app/b4a.example-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-1/lib/arm,

/vendor/lib, /system/lib]]

at

dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

... 14 more
Suppressed: java.lang.ClassNotFoundException: b4a.example.jobproductoid
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 15 more

Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
 

mrjaw

Active Member
Licensed User
Longtime User
This problem now scaled to all app. I tested with a new project just one call and the problem is to receive the answer

LogCat connected to: B4A-Bridge: TCL ALCATEL ONE TOUCH 4037T
--------- beginning of /dev/log/main
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
<html><body><h2>404 Not found</h2></body></html>
java.lang.RuntimeException: java.lang.ClassNotFoundException: b4a.example.joba
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:984)
at anywheresoftware.b4a.keywords.Common$6.run(Common.java:995)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: b4a.example.joba
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:251)
at java.lang.Class.forName(Class.java:216)
at anywheresoftware.b4a.keywords.Common.getComponentBA(Common.java:1020)
at anywheresoftware.b4a.keywords.Common.access$0(Common.java:1010)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:929)
... 10 more
Caused by: java.lang.NoClassDefFoundError: b4a/example/joba
... 16 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "b4a.example.joba" on path: DexPathList[[zip file "/data/app/b4a.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/b4a.example-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
... 16 more
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
<html><body><h2>404 Not found</h2></body></html>
java.lang.RuntimeException: java.lang.ClassNotFoundException: b4a.example.joba
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:984)
at anywheresoftware.b4a.keywords.Common$6.run(Common.java:995)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: b4a.example.joba
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:251)
at java.lang.Class.forName(Class.java:216)
at anywheresoftware.b4a.keywords.Common.getComponentBA(Common.java:1020)
at anywheresoftware.b4a.keywords.Common.access$0(Common.java:1010)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:929)
... 10 more
Caused by: java.lang.NoClassDefFoundError: b4a/example/joba
... 16 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "b4a.example.joba" on path: DexPathList[[zip file "/data/app/b4a.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/b4a.example-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
... 16 more
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
 
Upvote 0
Top