jasemilly Posted October 18, 2012 Share Posted October 18, 2012 Hi I am running jasper server ce 3.7.0 I have configured the js.quartz.properties file to allow the emailing and scheduling of reports, I have used telnet and SMTP to test my username etc and have sent a test email no problem, but when I try and schedule a report and email it I get the following error which I don't understand. Mail server connection failed; nested exception is javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:342) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:338) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1259) It's a ms exchange server I am trying to speak to, but should that be an issue for simple SMTP??? any thoughts or ideas much appreciated.thanksJasemilly Link to comment Share on other sites More sharing options...
Solution mgeise Posted October 18, 2012 Solution Share Posted October 18, 2012 Your email server is likely missing a valid SSL cert. Either you are connecting on a secure port or the standard port is redirected to a secure port - either way, Java is expecting a valid cert. Link to comment Share on other sites More sharing options...
mgeise Posted October 18, 2012 Share Posted October 18, 2012 Is there a reason why you are using setting up such an old version of the server? 3.7.0 is 3 years old. Link to comment Share on other sites More sharing options...
kcollins Posted October 18, 2012 Share Posted October 18, 2012 Jasemilly,If your email server requires authentication, you also need to set a property to 'true' in applicationContext-report-scheduling.xml: <property name="javaMailProperties"> <props> <prop key="mail.smtp.auth">true</prop> </props> </property> Could this be the problem? -Kris Link to comment Share on other sites More sharing options...
jasemilly Posted October 19, 2012 Author Share Posted October 19, 2012 Thanks guys yes I am sure the email server is missing a ssl cert. Created a gmail account first thing this morning and it worked first time. Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now