Re: NPE in getRemoteAdress

2016-08-31 Thread sebb
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: >>>&

Re: NPE in getRemoteAdress

2016-08-30 Thread Oliver Zemann
___ 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

Re: NPE in getRemoteAdress

2016-08-30 Thread Oliver Zemann
);} 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

Re: NPE in getRemoteAdress

2016-08-30 Thread sebb
Timeout = Integer.parseInt(args[++base]);} >> or with FTPClient:ftpClient.setControlKeepAliveReplyTimeout(2000); //2 sec >> reply timeout >> ? >> Martin >> __ >> >> >> >>> Date: Sun, 28 Aug 2016

RE: NPE in getRemoteAdress

2016-08-30 Thread Martin Gainty
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

Re: NPE in getRemoteAdress

2016-08-29 Thread Oliver Zemann
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

RE: NPE in getRemoteAdress

2016-08-29 Thread Martin Gainty
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

Re: NPE in getRemoteAdress

2016-08-29 Thread Oliver Zemann
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

Re: NPE in getRemoteAdress

2016-08-29 Thread Oliver Zemann
); //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

RE: NPE in getRemoteAdress

2016-08-28 Thread Martin Gainty
} 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

Re: NPE in getRemoteAdress

2016-08-28 Thread Bernd Eckenfels
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

Re: NPE in getRemoteAdress

2016-08-28 Thread Oliver Zemann
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

RE: NPE in getRemoteAdress

2016-08-28 Thread 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 use > retrieveFile(),

NPE in getRemoteAdress

2016-08-28 Thread Oliver Zemann
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