Dear friends, please for help,
I am using Okhttputils2 (v 2.96)
B4A 11.20
In newer Android is everything OK
but
in Android 4.4.2 with SDK 19, I get this error:
I use this code and App crash here. I can not see the "***OK***" message in log". If I use https.....address in Internet Explorer, everything is OK.
I found this thread with some advices , but it is only for SSL: B4A THREAD
It looks very similar.
Please, where I am doing mistake? Why in newer Android is everything ok and in old smart phone the app crashed?
Best regards
p4ppc
I am using Okhttputils2 (v 2.96)
B4A 11.20
In newer Android is everything OK
but
in Android 4.4.2 with SDK 19, I get this error:
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x64baae60: Failure in SSL library, usually a protocol error
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version (external/openssl/ssl/s23_clnt.c:744 0x5bad1cfc:0x00000000), Response:
httpjob_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3 (java line: 297)
java.io.FileNotFoundException: /data/data/try.app1.mobile/cache/1: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:449)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:215)
at try.app1.mobile.httpjob._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3(httpjob.java:297)
at try.app1.mobile.httpjob._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(httpjob.java:286)
at try.app1.mobile.okwww$ResumableSub_work.resume(okwww.java:5407)
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:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5291)
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:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:440)
... 17 more
StackTrace2: java.io.FileNotFoundException: /data/data/try.app1.mobile/cache/1: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:449)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:215)
at try.app1.mobile.httpjob._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3(httpjob.java:297)
at try.app1.mobile.httpjob._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(httpjob.java:286)
at try.app1.mobile.okwww2018$ResumableSub_work.resume(okwww.java:5407)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
I use this code and App crash here. I can not see the "***OK***" message in log". If I use https.....address in Internet Explorer, everything is OK.
B4X:
Dim way as String = "https://www.xxxx.com/file.php"
Dim j As HttpJob
j.Initialize("", Me)
j.Download(way)
Wait For (j) JobDone(j As HttpJob)
Log("***************** OK ********************" )
I found this thread with some advices , but it is only for SSL: B4A THREAD
It looks very similar.
Please, where I am doing mistake? Why in newer Android is everything ok and in old smart phone the app crashed?
Best regards
p4ppc