Re: [NET] Errorhandling of "bad" FTP Servers

2017-01-22 Thread Oliver Zemann
Yes, but apache commons sends first FEAT when i use autodetectUTF8(), which is imo wrong. The javadoc states that autodetectUTF8() has to be used before connect(), but i dont understand why. setAutodetectUTF8 only sets a flag which is consulted during connect; it does not send anything to the

Re: [NET] Errorhandling of "bad" FTP Servers

2017-01-22 Thread Oliver Zemann
Please prefix the subject line with the Commons Component in future (as above) Sorry, next time i will do that. On 22 January 2017 at 09:12, Oliver Zemann <oliver.zem...@gmail.com> wrote: Hi, i would like to know how to handle FTP Servers that do not behave like they should (or

Errorhandling of "bad" FTP Servers

2017-01-22 Thread Oliver Zemann
Hi, i would like to know how to handle FTP Servers that do not behave like they should (or behave different than most others). For example, currently i would like to connect to one of those servers which sends " MODE Z" directly after a login (USER) which is interpreted wrong by apache commons

Re: NPE in getRemoteAdress

2016-08-30 Thread Oliver Zemann
Seems like that made it. I used a new FTPClient for each file to download, that worked now in the JUnit. Will try it this weekend to get the same in my application. Thanks! Am 30.08.2016 um 16:23 schrieb sebb: On 29 August 2016 at 18:28, Oliver Zemann <oliver.zem...@gmail.com> wrot

Re: NPE in getRemoteAdress

2016-08-30 Thread Oliver Zemann
(or the same) FTP serverand concurrently retrieve files. If you want to share a single FTPClient instance between multiplethreads, you must serialize access to the object with critical sections. Can someone tell me what is meant by "critical sections" ? Am 30.08.2016 um 16

Re: NPE in getRemoteAdress

2016-08-29 Thread Oliver Zemann
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 <oliver.zem...@gmail.com>: byte

Re: NPE in getRemoteAdress

2016-08-29 Thread Oliver Zemann
re 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 <oliver.zem...@gmail.com>: 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
ConnectionInfo is a JAXB Bean. I just have seen that thunderbird messed up some lines during copy/paste The connectionInfo is fully initialized, here is a short part of it: public class ConnectionInfo { @XmlElement(name = "Name") private String name; @XmlElement(name = "Host") private String

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:

Re: [configuration] best practice with nested xml files

2012-05-03 Thread Oliver Zemann
01.05.2012 13:07, schrieb Oliver Zemann: Hi following scenario: I have one global config.xml which contains a regularconfiguration and includes some furtherconfiguration fileName=a1.xml / configuration fileName=a2.xml / ... The a1.xml also contains some xml references likexml fileName=a1_1.xml / xml

[configuration] best practice with nested xml files

2012-05-01 Thread Oliver Zemann
Hi following scenario: I have one global config.xml which contains a regular configuration and includes some further configuration fileName=a1.xml / configuration fileName=a2.xml / ... The a1.xml also contains some xml references like xml fileName=a1_1.xml / xml fileName=a1_2.xml / ... which the

Re: [configuration] recursive inclusion of xml files with fileNames tag

2012-04-20 Thread Oliver Zemann
oliver.he...@oliver-heger.de: Hi Oliver, Am 19.04.2012 16:05, schrieb Oliver Zemann: Hi, just a short question: is it possible to include recursive all xml files that are referenced by any already included xml? eg.: root.xml: ?xml version=1.0 encoding=UTF-8? additional         xml

[configuration] recursive inclusion of xml files with fileNames tag

2012-04-19 Thread Oliver Zemann
Hi, just a short question: is it possible to include recursive all xml files that are referenced by any already included xml? eg.: root.xml: ?xml version=1.0 encoding=UTF-8? additional xml fileName=other.xml config-name=another/ /additional other.xml: ?xml version=1.0 encoding=UTF-8?