Hello!..Thanks in advance for your help!
I'm using the samples that are in this post ,[B4X] OkHttpUtils2 with Wait For, from Erel.
I made a Web Api that it return to me the following value. 255|Ya existe una cuenta con este dominio @xyz.com
after debugging it shows me an error in line WSResponse = j.getstring
I assume that j.Getstring is a string encoded with UTF8.
What you recommend me to convert into a string value or may be an array.
"255|Ya existe una cuenta con este dominio @xyz.com"
Error occurred on line: 234 (HttpJob)
java.io.FileNotFoundException: /data/user/0/com.basicwms/cache/1 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:214)
at com.basicwms.httpjob._getstring2(httpjob.java:410)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
(Exception) java.lang.Exception: java.io.FileNotFoundException: /data/user/0/com.basicwms/cache/1 (No such file or directory)
I'm using the samples that are in this post ,[B4X] OkHttpUtils2 with Wait For, from Erel.
I made a Web Api that it return to me the following value. 255|Ya existe una cuenta con este dominio @xyz.com
B4X:
Dim j As HttpJob
j.Initialize("",Me)
j.Download(lURL)
wait for (j) jobdone (j As HttpJob)
ProgressBar.Visible = False
If j.Success Then
Log(j.GetString)
j.Release
Dim WSResponse As String
WSResponse = j.getstring
after debugging it shows me an error in line WSResponse = j.getstring
I assume that j.Getstring is a string encoded with UTF8.
What you recommend me to convert into a string value or may be an array.
"255|Ya existe una cuenta con este dominio @xyz.com"
Error occurred on line: 234 (HttpJob)
java.io.FileNotFoundException: /data/user/0/com.basicwms/cache/1 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:214)
at com.basicwms.httpjob._getstring2(httpjob.java:410)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
(Exception) java.lang.Exception: java.io.FileNotFoundException: /data/user/0/com.basicwms/cache/1 (No such file or directory)