Integration FTP agent upload and download Jobs fail when using multiple threads
search cancel

Integration FTP agent upload and download Jobs fail when using multiple threads

book

Article ID: 369427

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic SaaS CA Automic One Automation

Issue/Introduction

Transferring multiple files with Job Settings of "Transfer Threads"  2 fails with exception errors below using  Integration FTP agent. It works with setting of "Transfer threads 1".

If more than 1 thread was set to the job the upload or download of multiple files fails with the error below:

StackTrace: com.automic.agent.ftp.exceptions.DataTransferException: Error when executing SFTP command.
2024-05-17 10:28:00                 at com.automic.agent.ftp.helper.ExecutorHelper.getResponse(ExecutorHelper.java:60)
2024-05-17 10:28:00                 at com.automic.agent.ftp.helper.ExecutorHelper.runSync(ExecutorHelper.java:52)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.SFTPHelperDelegate.get(SFTPHelperDelegate.java:332)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.impl.SFtpCommandImpl.getInputStream(SFtpCommandImpl.java:255)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.impl.FtpFacadeCommandImpl.getInputStream(FtpFacadeCommandImpl.java:71)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.impl.CopyCommand.execute(CopyCommand.java:500)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.ThreadPoolJobExecutor$ThreadRunner.run(ThreadPoolJobExecutor.java:91)
2024-05-17 10:28:00                 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2024-05-17 10:28:00                 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-05-17 10:28:00                 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2024-05-17 10:28:00                 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2024-05-17 10:28:00                 at java.base/java.lang.Thread.run(Thread.java:829)
2024-05-17 10:28:00             Caused by: 4: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -874546342 is negative
2024-05-17 10:28:00                 at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2167)
2024-05-17 10:28:00                 at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1284)
2024-05-17 10:28:00                 at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1249)
2024-05-17 10:28:00                 at com.automic.agent.ftp.commands.SFTPHelperDelegate.lambda$get$20(SFTPHelperDelegate.java:333)

Environment

Release: 21.0.1 or 21.0.0

Component: IG-FTP Agent

Cause

Known defect.

Resolution

Update to a fix version listed below or a newer version if available.

Fix version:

Component(s): IG-FTP Agent

  • Integration.FTP 21.1.0 - Available 
  • Integration.FTP 24.0.0 - Available