Number of clients: 1
client: USER zz
client: PASS zz
User logged in: zz
client: TYPE I
client: PASV
java.net.SocketException: Software caused connection abort: socket write error
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:138)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AOUT.run(AsyncStreams.java:380)
at java.base/java.lang.Thread.run(Thread.java:834)
java.net.SocketException: Software caused connection abort: recv failed
at java.base/java.net.SocketInputStream.socketRead0(Native Method)
at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:126)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:232)
at java.base/java.lang.Thread.run(Thread.java:834)
error: (SocketException) java.net.SocketException: Software caused connection abort: recv failed
error: (SocketException) java.net.SocketException: Software caused connection abort: recv failed
terminated
DataConnection_Close
Number of clients: 1
terminated
I installed a ftp client with some level of diagnostics, here is the logs...
What should I do do you think to resolve this ?
I dont have SSL certificates
B4X:
Connecting to 192.168.1.240:21...
Status: Connection established, waiting for welcome message...
Response: 220 B4X FTP Server
Command: AUTH TLS
Response: 451 Not logged in
Command: AUTH SSL
Response: 451 Not logged in
Status: Insecure server, it does not support FTP over TLS.
Command: USER zz
Response: 331
Command: PASS **
Response: 230
Command: OPTS UTF8 ON
Response: 500 Unknown command: OPTS
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200
Command: PASV
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing
furthermore, both end appear to stay connected, I can send a "custom command" from the ftp client being LIST, can even send "hello" and see it. I see that it appears in the b4j logs window immediately followed by the error below... for LIST that is.
(RuntimeException) java.lang.RuntimeException: Class instance was not initialized (ftpdataconnection)
so something isn't being made at the time of connection ???