search cancel

FTP JOB failing | DataTransferException: General copy file exception

book

Article ID: 201872

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The RA FTP job is failing with the following error message in the report log.

com.uc4.ftpjob.DataTransferException: General copy file exception.
at com.uc4.ftpjob.commands.impl.CopyCommand.throwDataException(CopyCommand.java:711)
at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:680)
at com.uc4.ftpjob.commands.ThreadPoolJobExecutor$ThreadRunner.run(ThreadPoolJobExecutor.java:87)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NullPointerException
at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.throwDataException(FtpFacadeCommandImpl.java:55)
at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.getOutputStream(FtpFacadeCommandImpl.java:109)
at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:601)
... 6 more
2021-01-21 14:24:36 copied: /automic/test/xxx4634597_CCG.pdf - 2625430 bytes sent in 1.75 Seconds 1495.97 Kbytes/sec.
2021-01-21 14:24:36 copied: /automic/test/xxx1_CCG.pdf - 3390512 bytes sent in 1.89 Seconds 1785.41 Kbytes/sec.
2021-01-21 14:24:36 copied: /automic/test/xxx2_CCG.pdf - 3308024 bytes sent in 1.93 Seconds 1707.80 Kbytes/sec.
2021-01-21 14:24:37 copied: /automic/test/xxx3_CCG.pdf - 3919529 bytes sent in 2.08 Seconds 1883.48 Kbytes/sec.
2021-01-21 14:24:37 copied: /automic/test/xxx4_CCG.pdf - 3155554 bytes sent in 2.16 Seconds 1458.87 Kbytes/sec.
2021-01-21 14:24:37 20 files transferred, 8 not processed - 72605477 bytes sent in 5363.48 Kbytes/sec
2021-01-21 14:24:37 pool-1-thread-21648: SFtpCommandImpl: start: disconnect(): no args
2021-01-21 14:24:37 Disconnecting from gsasgoa.automic.com port 22

Environment

Release : 12.2

Component : AUTOMATION ENGINE

Cause

The RA FTP agent is currently unable to determine the max connections from the FTP server.

Resolution

The workaround is using less transfer threads than the server does allow, or increasing the amount of allowed threads on the remote SFTP server.