无法生成DH密钥对

时间:2014-09-24 14:34:03

标签: java sslexception

我们最近将代码从Java 5迁移到Java 7,Tomcat 6迁移到Tomcat 7,Spring 2.5迁移到Spring 4.0.6。所有这一切在一起。 Unix服务器也在内存和磁盘空间中进行了升级。 但是自从发布后,当批处理作业发送电子邮件时,我们在生产中遇到错误。我们不确定是什么导致了这个错误。我看到其他一些帖子,比如

DH keypair exception in salesforce

Java 7 and Could not generate DH keypair

Is there a workaround for: java.lang.RuntimeException: Could not generate DH keypair

Could not generate DH keypair from proxy server

但他们并没有帮助。有人可以用简单的语言解释造成这个问题的原因。

org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response;
  nested exception is:
        javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair. Failed messages: javax.mail.MessagingException: Exception reading r
esponse;
  nested exception is:
        javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Exception reading response;
  nested exception is:
        javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
        at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
        at javax.mail.Service.connect(Service.java:288)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:397)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:363)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:351)
        at xxx.AbstractEmailServices.sendSingleEmail(AbstractEmailServices.java:281)
        at xxx.EmailServices.sendEmail(EmailServices.java:87)
        at xxx.EmailHelper.sendEmail(EmailHelper.java:60)
        at xxx.EmailHelper.sendEmail(EmailHelper.java:47)
        at xxx.CSVJobListener.afterJob(CSVJobListener.java:68)
        at org.springframework.batch.core.listener.CompositeJobExecutionListener.afterJob(CompositeJobExecutionListener.java:60)
        at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:343)
        at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:134)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)

0 个答案:

没有答案