ServiceMix
  1. ServiceMix
  2. SM-677

FTP connection not recovered after ftp server failure/recovery

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1, 3.1
    • Component/s: servicemix-components
    • Labels:
      None
    • Environment:

      Windows XP PRO SP2, JRE 1.5.08, Filezilla Server

      Description

      If I shut down the FTP server, simulating a failure, connection is never restablished when server comes online again. Throwing some exception:

      ERROR - PollingComponentSupport - Caught exception while polling: java.net.SocketException: Software caused connection abort: socket write error
      java.net.SocketException: Software caused connection abort: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77)
      at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137)
      at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
      at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
      at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
      at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
      at java.io.BufferedWriter.flush(BufferedWriter.java:236)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442)
      at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
      at org.apache.commons.net.ftp.FTP.port(FTP.java:849)
      at org.apache.commons.net.ftp.FTPClient.openDataConnection(FTPClient.java:477)
      at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2390)
      at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2364)
      at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
      at org.apache.servicemix.components.net.FTPPoller.poll(FTPPoller.java:61)
      at org.apache.servicemix.components.util.PollingComponentSupport.run(PollingComponentSupport.java:62)
      at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:595)

      I tried to stop/shutdown and restart my FTP component through jmx without sucess. Only rebooting smx will recover the connection.

        Activity

        Hide
        Guillaume Nodet added a comment -

        Author: gnodet
        Date: Tue Oct 31 06:27:46 2006
        New Revision: 469499

        URL: http://svn.apache.org/viewvc?view=rev&rev=469499
        Log:
        SM-677: FTP connection not recovered after ftp server failure/recovery

        Modified:
        incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java

        Author: gnodet
        Date: Tue Oct 31 06:28:00 2006
        New Revision: 469500

        URL: http://svn.apache.org/viewvc?view=rev&rev=469500
        Log:
        SM-677: FTP connection not recovered after ftp server failure/recovery

        Modified:
        incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java

        Show
        Guillaume Nodet added a comment - Author: gnodet Date: Tue Oct 31 06:27:46 2006 New Revision: 469499 URL: http://svn.apache.org/viewvc?view=rev&rev=469499 Log: SM-677 : FTP connection not recovered after ftp server failure/recovery Modified: incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java Author: gnodet Date: Tue Oct 31 06:28:00 2006 New Revision: 469500 URL: http://svn.apache.org/viewvc?view=rev&rev=469500 Log: SM-677 : FTP connection not recovered after ftp server failure/recovery Modified: incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            martin schlienger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development