I solved my own problem. I needed to call:

client.completePendingCommand();

Now it can transfer multiple files.


Potential wrote:
> 
> Hi, I'm calling:
> 
> OutputStream out = client.storeFileStream(outputFilename);
> 
> from org.apache.commons.net.ftp.FTPClient.
> 
> When I FTP the first file, it transfers without any problem. If I try to
> send a 2nd file,
> OutputStream okOut = client.storeFileStream(triggerFilename);
> okOut is null and throws a null pointer exception. Why do I have a problem
> when sending the 2nd or any subsequent file?
> 

-- 
View this message in context: 
http://www.nabble.com/FTP-client-outputstream-has-problem---PLease-help-tf3455753.html#a9641338
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to