0 Replies Latest reply on Mar 24, 2010 10:33 AM by Maciej Krysiuk

    FTP poller deadlocks a file after "Connection reset" exception?

    Maciej Krysiuk Newbie

      Hi all,

       

      In my app, where I use an FTP poller, I get sometimes "Connection reset" exception (see stack trace below) when downloading a file. What's weird, is that the poller will not retry downloading the file, which remains on remote FTP server.

       

      What I'm wondering:

      - is that a intended behaviour - how to chang it?

      - is this a bug in FTP component - how to fix it?

       

      Thanks in advance for nay advice,

      Matt

       

      Failed to process file: /Outbox//DD_SOS2010032412081816.xml. Reason: javax.jbi.JBIException: java.net.SocketException: Connection reset

      javax.jbi.JBIException: java.net.SocketException: Connection reset

           at org.apache.servicemix.ftp.FtpPollerEndpoint.borrowClient(FtpPollerEndpoint.java:566)

           at org.apache.servicemix.ftp.FtpPollerEndpoint.processFileNow(FtpPollerEndpoint.java:416)

           at org.apache.servicemix.ftp.FtpPollerEndpoint$1.run(FtpPollerEndpoint.java:407)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

           at java.lang.Thread.run(Thread.java:619)

      Caused by: java.net.SocketException: Connection reset

           at java.net.SocketInputStream.read(SocketInputStream.java:168)

           at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

           at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

           at java.io.FilterInputStream.read(FilterInputStream.java:66)

           at java.io.PushbackInputStream.read(PushbackInputStream.java:122)

           at org.apache.commons.net.io.FromNetASCIIInputStream.__read(FromNetASCIIInputStream.java:75)

           at org.apache.commons.net.io.FromNetASCIIInputStream.read(FromNetASCIIInputStream.java:170)

           at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

           at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

           at org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:114)

           at org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:535)

           ... 1 more

       

      Edited by: maciej.krysiuk on Mar 24, 2010 2:33 PM