java - javax.mail.MessagingException: Can't send command to SMTP host -
in java mail service send getting next exception
javax.mail.messagingexception: can't send command smtp host; nested exception is: javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target @ com.sun.mail.smtp.smtptransport.sendcommand(smtptransport.java:1365) @ com.sun.mail.smtp.smtptransport.sendcommand(smtptransport.java:1353) @ com.sun.mail.smtp.smtptransport.ehlo(smtptransport.java:794) @ com.sun.mail.smtp.smtptransport.protocolconnect(smtptransport.java:336) @ javax.mail.service.connect(service.java:258) @ javax.mail.service.connect(service.java:137) @ javax.mail.service.connect(service.java:86) @ javax.mail.transport.send0(transport.java:150) @ javax.mail.transport.send(transport.java:80) @ com.csdcsystems.amanda.common.utility.emailhelper.sendmail(emailhelper.java:244) @ com.csdcsystems.amanda.jems.web.viewmodel.folderemailprintoutputviewmodel.sendemail(folderemailprintoutputviewmodel.java:117) @ com.csdcsystems.amanda.jems.web.viewmodel.folderemailprintoutputviewmodel.sendemail(folderemailprintoutputviewmodel.java:91) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.zkoss.bind.impl.paramcall.call(paramcall.java:109) @ org.zkoss.bind.impl.binderimpl.doexecute(binderimpl.java:1508) @ org.zkoss.bind.impl.binderimpl.docommand(binderimpl.java:1261) @ org.zkoss.bind.impl.binderimpl.access$1500(binderimpl.java:95) @ org.zkoss.bind.impl.binderimpl$commandeventlistener.onevent0(binderimpl.java:1145) @ org.zkoss.bind.impl.binderimpl$commandeventlistener.onevent(binderimpl.java:1103) @ org.zkoss.zk.ui.abstractcomponent.onevent(abstractcomponent.java:2734) @ org.zkoss.zk.ui.abstractcomponent.service(abstractcomponent.java:2705) @ org.zkoss.zk.ui.abstractcomponent.service(abstractcomponent.java:2646) @ org.zkoss.zk.ui.impl.eventprocessor.process(eventprocessor.java:136) @ org.zkoss.zk.ui.impl.uiengineimpl.processevent(uiengineimpl.java:1709) @ org.zkoss.zk.ui.impl.uiengineimpl.process(uiengineimpl.java:1494) @ org.zkoss.zk.ui.impl.uiengineimpl.execupdate(uiengineimpl.java:1204) @ org.zkoss.zk.au.http.dhtmlupdateservlet.process(dhtmlupdateservlet.java:558) @ org.zkoss.zk.au.http.dhtmlupdateservlet.doget(dhtmlupdateservlet.java:456) @ org.zkoss.zk.au.http.dhtmlupdateservlet.dopost(dhtmlupdateservlet.java:464) @ javax.servlet.http.httpservlet.service(httpservlet.java:637) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:293) @ org.apache.coyote.http11.http11processor.process(http11processor.java:859) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:602) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489) @ java.lang.thread.run(unknown source)
take here:
javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target
see these relevant threads:
solutions suncertpathbuilderexception
how solve sun.security.provider.certpath.suncertpathbuilderexception?
allowing java utilize untrusted certificate ssl/https connection
unable find valid certification path requested target - error after cert imported
java javamail
No comments:
Post a Comment