Uploaded image for project: 'CloverETL'
  1. CloverETL
  2. CLO-4404

Improve FTP connection error reporting

    XMLWordPrintable

    Details

    • Branch:
    • QA Testing:
      JUnit test
    • QA Test Identification:
      PooledFTPOperationHandlerTest.testErrorReporting()
    • OTRS_Ticket_ID:
      2014072610000019

      Description

      The exception thrown by disconnect() (line 97) should be caught and added as a suppressed exception to the original one thrown by connect().
      Requires Java 1.7.

      2014-07-25 17:46:23,829 ERROR 18963 [WatchDog_18963] Component [Move POSLog to FTP folder:MOVE_POSLOG_TO_FTP_FOLDER1] finished with status ERROR.
      Failed to move sandbox://DOT_IP22_Hybris_to_Relate/./data-in/test1.xml to ftp://jhung:hhj110160@localhost:21/work/test1.xml
        Move failed
         Copy failed
          Failed to obtain target file info
           Failed to obtain file info
            Connection closed without indication.
      2014-07-25 17:46:23,829 ERROR 18963 [WatchDog_18963] Error details:
      org.jetel.exception.JetelRuntimeException: Component [Move POSLog to FTP folder:MOVE_POSLOG_TO_FTP_FOLDER1] finished with status ERROR.
             at org.jetel.graph.Node.createNodeException(Node.java:566)
             at org.jetel.graph.Node.run(Node.java:542)
             at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
             at java.lang.Thread.run(Unknown Source)
      Caused by: org.jetel.exception.JetelRuntimeException: Failed to move sandbox://DOT_IP22_Hybris_to_Relate/./data-in/test1.xml to ftp://jhung:hhj110160@localhost:21/work/test1.xml
             at com.opensys.cloveretl.component.MoveFiles.fail(Unknown Source)
             at com.opensys.cloveretl.component.AbstractFileOperation.processError(Unknown Source)
             at com.opensys.cloveretl.component.AbstractFileOperation.processResult(Unknown Source)
             at com.opensys.cloveretl.component.AbstractFileOperation.mainExecuteOperation(Unknown Source)
             at com.opensys.cloveretl.component.AbstractFileOperation.execute(Unknown Source)
             at org.jetel.graph.Node.run(Node.java:505)
             ... 3 more
      Caused by: java.io.IOException: Move failed
             at org.jetel.component.fileoperation.FileManager.move(FileManager.java:443)
             at org.jetel.component.fileoperation.FileManager.move(FileManager.java:369)
             at com.opensys.cloveretl.component.MoveFiles.executeOperation(Unknown Source)
             at com.opensys.cloveretl.component.MoveFiles.executeOperation(Unknown Source)
             ... 6 more
      Caused by: java.io.IOException: Copy failed
             at org.jetel.component.fileoperation.DefaultOperationHandler.move(DefaultOperationHandler.java:231)
             at org.jetel.component.fileoperation.FileManager.move(FileManager.java:436)
             ... 9 more
      Caused by: java.io.IOException: Copy failed
             at org.jetel.component.fileoperation.FileManager.copy(FileManager.java:349)
             at org.jetel.component.fileoperation.DefaultOperationHandler.move(DefaultOperationHandler.java:229)
             ... 10 more
      Caused by: java.io.IOException: Failed to obtain target file info
             at org.jetel.component.fileoperation.DefaultOperationHandler.copy(DefaultOperationHandler.java:173)
             at org.jetel.component.fileoperation.FileManager.copy(FileManager.java:342)
             ... 11 more
      Caused by: java.io.IOException: Failed to obtain file info
             at org.jetel.component.fileoperation.FileManager.info(FileManager.java:1086)
             at org.jetel.component.fileoperation.FileManager.info(FileManager.java:1068)
             at org.jetel.component.fileoperation.DefaultOperationHandler.copy(DefaultOperationHandler.java:171)
             ... 12 more
      Caused by: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
             at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
             at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490)
             at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
             at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:583)
             at org.apache.commons.net.ftp.FTP.quit(FTP.java:794)
             at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:697)
             at org.jetel.component.fileoperation.pool.PooledFTPConnection.disconnect(PooledFTPConnection.java:108)
             at org.jetel.component.fileoperation.pool.PooledFTPConnection.connect(PooledFTPConnection.java:96)
             at org.jetel.component.fileoperation.pool.FTPConnectionFactory.makeObject(FTPConnectionFactory.java:28)
             at org.jetel.component.fileoperation.pool.FTPConnectionFactory.makeObject(FTPConnectionFactory.java:21)
             at org.jetel.component.fileoperation.pool.DefaultConnectionFactory.makeObject(DefaultConnectionFactory.java:38)
             at org.jetel.component.fileoperation.pool.DefaultConnectionFactory.makeObject(DefaultConnectionFactory.java:26)
             at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
             at org.jetel.component.fileoperation.pool.ConnectionPool.borrowObject(ConnectionPool.java:91)
             at org.jetel.component.fileoperation.PooledFTPOperationHandler.connect(PooledFTPOperationHandler.java:231)
             at org.jetel.component.fileoperation.PooledFTPOperationHandler.info(PooledFTPOperationHandler.java:327)
             at org.jetel.component.fileoperation.PooledFTPOperationHandler.info(PooledFTPOperationHandler.java:336)
             at org.jetel.component.fileoperation.FileManager.info(FileManager.java:1083)
             ... 14 more
      

        Attachments

          Activity

            People

            • Assignee:
              salamonp Pavel Salamon
              Reporter:
              krivanekm Milan Krivanek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: