SFTP Jobs fail with “InvalidAlgorithmParameterException” when using Java versions 8 or less or a non-default SFTP port.

Document ID : KB000088008
Last Modified Date : 14/04/2018
Show Technical Document Details
Error Message :
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 4096 (inclusive)

The above exception occurs in the current versions of the FTP Agent (versions 3.1.5 HF1 and 4.0.1), and only happens when running SFTP jobs with a Java version less than 1.8 or using a non-default SFTP Port  (port other than port 22).
OS Version: N/A
Cause type:
Root Cause: There is a conflict with Java 8 and jsch0.1.53, which is used by the FTP agent.
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
RA FTP 4.0.2 - Available
Additional Information:
Workaround :
Load the previous version of the FTP Agent (3.1.5).