Android Question NET library for FTP

pazzokli

Active Member
Licensed User
Longtime User
Hi to all, I use NET library to comunicate and upload a txt file (127k) using FTP protocol.
My account FTP in on netsons hosting space.
Sometime upload is succes, oftet retrieve this error:
"java.lang.NullPointerException: Attempt to invoke virtual methode 'void java.net.Socket.setSoTimeout(int)' on a object reference"

Somebody can help me to understand where can be error?

Thanks a lot
 

pazzokli

Active Member
Licensed User
Longtime User
You should check the version in the libraries tab.

Anyway, check the unfiltered logs. The full error message with the stack trace should be there. Call UploadFile and post the full error message.

Is possible see logs also with Bridge?
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Is possible see logs also with Bridge?
upload_2018-4-12_11-10-0.png
 
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
This evening I check logs (now I'm in office :()
A question: my app use NET library to upload same file every about 10min.
At the moment I close FTP connection immediatly after upload file.
Is it correct or I have to keep open connection?
 
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
You should check the version in the libraries tab.

Anyway, check the unfiltered logs. The full error message with the stack trace should be there. Call UploadFile and post the full error message.

Version is 1.75

I cannot see log even if log tap show "Debug mode connected to xxxxxx"
Next step: use cable with USB debug
 
Last edited:
Upvote 0
Top