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

        martin schlienger created issue -
        Guillaume Nodet made changes -
        Field Original Value New Value
        Fix Version/s 3.0.1 [ 11716 ]
        Fix Version/s 3.1 [ 11790 ]
        Assignee Guillaume Nodet [ gnt ]
        Component/s servicemix-components [ 11511 ]
        Guillaume Nodet made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Jeff Turner made changes -
        Project Import Sat Nov 27 00:46:19 EST 2010 [ 1290836779991 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development