gt;>
>> That seems the most likely.
>>
>> FTPClient is not guaranteed to be thread-safe.
>> I'm not sure that the java.io classes such as InputStream are thread
>> safe either.
>>
>>> Am 29.08.2016 um 01:40 schrieb Martin Gainty:
>>>&
___
Date: Sun, 28 Aug 2016 20:06:46 +0200
From: e...@zusammenkunft.net
To: user@commons.apache.org
CC: oliver.zem...@gmail.com
Subject: Re: NPE in getRemoteAdress
Hello,
I am not sure about your NPE, but this code here ignores the result of
the read call. It cannot
);}
or with FTPClient:ftpClient.setControlKeepAliveReplyTimeout(2000); //2 sec
reply timeout
?
Martin
__
Date: Sun, 28 Aug 2016 20:06:46 +0200
From: e...@zusammenkunft.net
To: user@commons.apache.org
CC: oliver.zem...@gmail.com
Subject: Re: NPE in getRemoteAdress
Hello,
I am
Timeout = Integer.parseInt(args[++base]);}
>> or with FTPClient:ftpClient.setControlKeepAliveReplyTimeout(2000); //2 sec
>> reply timeout
>> ?
>> Martin
>> __
>>
>>
>>
>>> Date: Sun, 28 Aug 2016
e you may want to look at
> > ScheduledExecutorService examples
> > herehttps://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledExecutorService.html
> > Martin
> >> Subject: Re: NPE in getRemoteAdress
> >> To: user@commons.apache.org
> >> From: oliver
ScheduledExecutorService
examples
herehttps://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledExecutorService.html
Martin
Subject: Re: NPE in getRemoteAdress
To: user@commons.apache.org
From: oliver.zem...@gmail.com
Date: Mon, 29 Aug 2016 19:28:56 +0200
My download method looks like this:
private
Martin
> Subject: Re: NPE in getRemoteAdress
> To: user@commons.apache.org
> From: oliver.zem...@gmail.com
> Date: Mon, 29 Aug 2016 19:28:56 +0200
>
> My download method looks like this:
>
> private void downloadDirectory(FTPClient client, String sour
liveReplyTimeout =
Integer.parseInt(args[++base]);}
or with FTPClient:ftpClient.setControlKeepAliveReplyTimeout(2000); //2 sec
reply timeout
?
Martin
__
Date: Sun, 28 Aug 2016 20:06:46 +0200
From: e...@zusammenkunft.net
To: user@commons.apache.org
); //2 sec
reply timeout
?
Martin
__
Date: Sun, 28 Aug 2016 20:06:46 +0200
From: e...@zusammenkunft.net
To: user@commons.apache.org
CC: oliver.zem...@gmail.com
Subject: Re: NPE in getRemoteAdress
Hello,
I am not sure about your NPE, but this code here i
}
or with FTPClient:ftpClient.setControlKeepAliveReplyTimeout(2000); //2 sec
reply timeout
?
Martin
__
> Date: Sun, 28 Aug 2016 20:06:46 +0200
> From: e...@zusammenkunft.net
> To: user@commons.apache.org
> CC: oliver.zem...@gmail.com
> Subject: Re: NPE in getRemoteAdress
Hello,
I am not sure about your NPE, but this code here ignores the result of
the read call. It cannot deal with short reads:
Am Sun, 28 Aug 2016
15:50:36 +0200 schrieb Oliver Zemann :
> byte b[] =new byte[4096];
> while (inputStream.read(b) != -1) {
> fos.write(b);
> bytesWritten += b.lengt
er where i have problems.
Am 28.08.2016 um 16:55 schrieb Martin Gainty:
where is connectionInfo initialised?
-M
To: user@commons.apache.org
From: oliver.zem...@gmail.com
Subject: NPE in getRemoteAdress
Date: Sun, 28 Aug 2016 15:50:36 +0200
Hi
i am trying to get some files from a FTP Server. When i
where is connectionInfo initialised?
-M
> To: user@commons.apache.org
> From: oliver.zem...@gmail.com
> Subject: NPE in getRemoteAdress
> Date: Sun, 28 Aug 2016 15:50:36 +0200
>
> Hi
>
> i am trying to get some files from a FTP Server. When i use
> retrieveFile(),
Hi
i am trying to get some files from a FTP Server. When i use
retrieveFile(), it works, but i would like to add some listeners to it
(how many bytes got transfered etc.) so i used retrieveFileStream().
Now i get some exceptions and no files are downloaded.
This is the part of the code:
@Ove
14 matches
Mail list logo