DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35863>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35863





------- Additional Comments From [EMAIL PROTECTED]  2005-10-07 12:14 -------
I'm experiencing the same problem as Dennis.

Out of 100 file transfers 2 InputStream's were returned as null.
And, which was my original problem, on one occation the application hung. See
the Java thread below. 

Seems like the FTPClient.retrieveFileStream() call now and then returns a null
InputStream and occationally hangs...

I'm currently using version 1.3.0 so I'll try Dennis fix with the 1.4.0.

Regards,
 Anders M


Current Java thread:
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:429)
        at 
org.apache.commons.net.telnet.TelnetInputStream.read(TelnetInputStream.java:339)
        - locked <0x447b0098> (a [I)
        at 
org.apache.commons.net.telnet.TelnetInputStream.read(TelnetInputStream.java:466)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
        - locked <0x447b6270> (a java.io.BufferedInputStream)
        at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        - locked <0x447b60e0> (a java.io.InputStreamReader)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        - locked <0x447b60e0> (a java.io.InputStreamReader)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:260)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:456)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:484)
        at 
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:475)
        at 
org.apache.commons.net.ftp.FTPClient.retrieveFileStream(FTPClient.java:1327)
        at spar_vo.SparFTPConnectionVO.getFile(SparFTPConnectionVO.java:119)
        at spar_uc.SparGetFileUC.performUseCase(SparGetFileUC.java:63)
        at spar.SparApplication.main(SparApplication.java:97)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to