java - How it is working bool = DBConnection.getFTPConnection().storeFile(hostDir, input); -
i using method store file.from computer server when use facing exception. 1. software caused connection abort: recv failed
2. software caused connection abort: socket write error
3. org.apache.commons.net.io.copystreamexception: ioexception caught while copying. don't how solve that. please me
try catch exception more details:
try { bool result = dbconnection.getftpconnection().storefile(hostdir, input); system.out.println("upload: " + result); } catch (copystreamexception ex) { system.out.println("copystreamexception: " + ex.getmessage()); system.out.println("totaly transfered " + ex.gettotalbytestransferred() + " bytes."); system.out.println("inner ioexception: " + ex.getioexception().getmessage()); }
this can find cause of issue.
Comments
Post a Comment