My Oracle Support Banner

FTP上传文件失败出现异常"Java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024" (Doc ID 2191410.1)

Last updated on AUGUST 20, 2019

适用于:

Oracle WebLogic Server - 版本 10.3.6 和更高版本
本文档所含信息适用于所有平台

症状

在weblogic 10.3.6(JDK 1.7)上执行FTP 上传文件失败,在weblogic的日志中遇到下面的异常:

2016-02-04 00:26:04,482 | FATAL
com.******.processor.iso.FTPRequestProcessor:getFtpSession(903) : Error creating FTP session. Exception is Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)
2016-02-04 00:26:04,484 | FATAL
com.******.processor.iso.FTPRequestProcessor:uploadFileToSFTP(686) : Error in uploading file to FTP server. Exception is
com.******.exceptions.SettlementException: CRITICAL_SFTP_CONNECTION_FAILED
at com.******.processor.iso.FTPRequestProcessor.getFtpSession(FTPRequestProcessor.java:907)
at com.******.processor.iso.FTPRequestProcessor.uploadFileToSFTP(FTPRequestProcessor.java:646)
at com.******.processor.iso.FTPRequestProcessor.createSettlementFileAndAppendData(FTPRequestProcessor.java:402)
at com.******.processor.iso.FTPRequestProcessor.processRequest(FTPRequestProcessor.java:134)
at com.******.processor.iso.RequestProcessorFactory.processRequest(RequestProcessorFactory.java:49)

......

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 1024 (inclusive)
at com.jcraft.jsch.Session.connect(Session.java:495)
at com.jcraft.jsch.Session.connect(Session.java:150)
at com.******.processor.iso.FTPRequestProcessor.getFtpSession(FTPRequestProcessor.java:896)
... 32 more
2016-02-04 00:26:04,488 | ERROR
com.******.processor.iso.FTPRequestProcessor:createSettlementFileAndAppendData(415) : ERROR_SFTP_Upload_File

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
原因
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.