commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject Re: [net] FTPClient.listFiles stalls...
Date Mon, 02 Apr 2007 07:37:06 GMT

L.S.,

Still trying to solve the FTP problem in ServiceMix, I'm a bit unsure about
the usage of completePendingCommand() in our code, which looks about like
this:
- calling retrieveInputStream() 
- reading from the the stream
- closing the stream 
- call the completePendingCommand() method

Under some conditions (Exceptions being thrown), the close() and
completePendingCommand() are never called.  Could the Exception below be
caused by continuing to use the same FTPClient instance for other FTP
operations afterwards?

Regards,

Gert


Gert Vanthienen wrote:
> 
> Rory,
> 
> We are using commons-net-1.4.1.jar.
> 
> Gert
> 
> 
> 
> Rory Winston wrote:
>> 
>> Gert
>> 
>> What version of [net] are you using?
>> Rory
>> 
>> "Jakarta Commons Users List" <commons-user@jakarta.apache.org> wrote:
>> 
>>> 
>>> 
>>> L.S.,
>>> 
>>> 
>>> I'm using Apache ServiceMix's FTP component, which uses commons net
>>> FTPClient classes internally to poll for files on an FTP server.  After
>>> a
>>> while, the polling threads lock up with the stacktrace mentioned below:
>>> I'm
>>> trying to solve this issue.  What can be the cause of this lockup and
>>> how
>>> can I avoid this?  Is there a way to specify a time-out on this
>>> operation?
>>> 
>>> 
>>> Regards,
>>> 
>>> Gert Vanthienen
>>> 
>>> 
>>> 
>>> Stack trace:
>>>    java.net.PlainSocketImpl.socketAccept(Native Method)
>>>    java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>>>    java.net.ServerSocket.implAccept(ServerSocket.java:450)
>>>    java.net.ServerSocket.accept(ServerSocket.java:421)
>>>   
>>> org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:502)
>>>   
>>> org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2390)
>>>   
>>> org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2364)
>>>    org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
>>>   
>>> org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:211)
>>>   
>>> org.apache.servicemix.ftp.FtpPollerEndpoint.pollFileOrDirectory(FtpPollerEndpoint.java:203)
>>>   
>>> org.apache.servicemix.ftp.FtpPollerEndpoint.poll(FtpPollerEndpoint.java:78)
>>>    ...
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/-net--FTPClient.listFiles-stalls...-tf3491086.html#a9749725
>>> Sent from the Commons - User mailing list archive at Nabble.com.
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>> 
>>> 
>> 
>> 
>> 
>> -----------------------------------------------------------------
>> Find the home of your dreams with eircom net property
>> Sign up for email alerts now http://www.eircom.net/propertyalerts
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-net--FTPClient.listFiles-stalls...-tf3491086.html#a9786270
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message