Android Question [Solved] B4A error in a JRDC2 database example

RAFA BRAVO

Active Member
Licensed User
Longtime User
I am trying to create an article database with the JRDC2 example. In android I use the DBRequestManager module and an error occurs when compiling in B4A. Can anybody help me?

LOGS:
B4X:
Registro conectado a:  Xiaomi Mi 9T
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-ikkCf8sGQQ7jiHZSpSjedw==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-ikkCf8sGQQ7jiHZSpSjedw==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-ikkCf8sGQQ7jiHZSpSjedw==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-ikkCf8sGQQ7jiHZSpSjedw==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-MJVL5Gb-CCXw-yUtA6gB4g==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-MJVL5Gb-CCXw-yUtA6gB4g==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-MJVL5Gb-CCXw-yUtA6gB4g==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-MJVL5Gb-CCXw-yUtA6gB4g==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-1XSQ5tPwfCa-w3z_mkcKEw==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-1XSQ5tPwfCa-w3z_mkcKEw==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
dbrequestmanager_sendjob (java line: 395)
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
    at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
    at b4a.mySQL.dbrequestmanager._sendjob(dbrequestmanager.java:395)
    at b4a.mySQL.dbrequestmanager._executequery(dbrequestmanager.java:181)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:499)
    at b4a.mySQL.main._getrecord(main.java:465)
    at b4a.mySQL.main._activity_create(main.java:420)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.mySQL.main.afterFirstLayout(main.java:105)
    at b4a.mySQL.main.access$000(main.java:17)
    at b4a.mySQL.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/b4a.mySQL-1XSQ5tPwfCa-w3z_mkcKEw==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.mySQL-1XSQ5tPwfCa-w3z_mkcKEw==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 19 more
 

RAFA BRAVO

Active Member
Licensed User
Longtime User
Thank you, make the changes and the error disappeared. A new problem appears, the network security policy does not allow communication with the server.

log:

log:
Registro conectado a:  Xiaomi Mi 9T
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
Registro conectado a:  Xiaomi Mi 9T
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy, Response:
ERROR: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.18.16 not permitted by network security policy
** Activity (main) Pause, UserClosed = false **
 
Upvote 0

RAFA BRAVO

Active Member
Licensed User
Longtime User
Thanks, I think I am moving forward because I have already managed to see the list of variables from the database in the log. but an error appears again, and I don't know why.

Log:
log:
Registro conectado a:  Xiaomi Mi 9T
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Registro conectado a:  Xiaomi Mi 9T
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
(MyMap) {Id=0, Name=1, Estado=2, Image=3, Description=4}
main$ResumableSub_GetRecordresume (java line: 572)
java.lang.NumberFormatException: For input string: "null"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:684)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:572)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
(MyMap) {Id=0, Name=1, Estado=2, Image=3, Description=4}
main$ResumableSub_GetRecordresume (java line: 572)
java.lang.NumberFormatException: For input string: "null"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:684)
    at b4a.mySQL.main$ResumableSub_GetRecord.resume(main.java:572)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
(MyMap) {Id=0, Name=1, Estado=2, Image=3, Description=4}
main$ResumableSub_GetRecordresume (java line: 572)
java.lang.NumberFormatException: For input string: "null"

 
Upvote 0

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
Hello @RAFA BRAVO

Look according to your error I see that you have a null reference.

java.lang.NumberFormatException: For input string: "null"

It shows the SQL queries from the jRDC2 config file, it also shows the code in B4A where you call that query.

That way it would be easier to help him.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
java.lang.NumberFormatException: For input string: "null"
Guess: You're trying to use NumberFormat (or NumberFormat2) with a value returned from the DB. Problem: The value returned from the DB is a Null value. Solution(s): 1) Check for Null values before using NumberFormat or 2) Setup your SQL statement not to return Null(s).
In the end, until you show some code and the query configuration (as requested by @Bladimir Silva Toro ) it's just a guess.
Update: This new issue should also be a new question on the forum, since your original issue has been solved and this is another, unrelated issue to your original post.
 
Upvote 0

RAFA BRAVO

Active Member
Licensed User
Longtime User
Actualización: este nuevo problema también debería ser una nueva pregunta en el foro, ya que su problema original se ha resuelto y este es otro problema no relacionado con su publicación original.
[/CITAR]

You're right, but I finally solved everything, it was just a problem with a capital letter. thanks to everyone.
 
Upvote 0
Top