I'm founding some misterious problem for some user in FTPResume using B4A 4.xx, could be due to net 1.53 and netextras 1.52?
It needs a new compilation?
@warwound, could you help? Many Thanks.
Maurizio
After a long debug with my colleague we've found that NetExtras has a problem in CloseNow function during SSL in a Data Connection.
The problem should be near the old 1.52 problem solved in last Erel version net lib.
Here the details:
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1156)
at com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1009)
at org.apache.commons.net.SocketClient.closeQuietly(SocketClient.java:309)
at org.apache.commons.net.SocketClient.disconnect(SocketClient.java:298)
at org.apache.commons.net.ftp.FTP.disconnect(FTP.java:434)
at org.apache.commons.net.ftp.FTPClient.disconnect(FTPClient.java:843)
at uk.co.martinpearman.b4a.netextras.FTPResume.CloseNow(FTPResume.java:471)
at com.palmosoft.primaprova.main._effetipi_uploadprogress(main.java:464)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at anywheresoftware.b4a.BA$3.run(BA.java:332)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5356)
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:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
Attached a sample project to reproduce the issue.
If you haven't time to solve the problem, if you can share the java source we can try to solve ourselves (and reshare the library with you).
@Erel: do you think is possible (should possible) to use a self-signed certificate with implicit ftp using net lib?
Thanks in advance.