Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-677

FTP connection not recovered after ftp server failure/recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1, 3.1
    • servicemix-components
    • None
    • 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.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            mschlienger martin schlienger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: