email scheduler help how to configure

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.

thanks

Jasemilly

jasemilly's picture
355
Joined: Oct 6 2009 - 2:40am
Last seen: 5 years 3 months ago
Is there a reason why you are using setting up such an old version of the server? 3.7.0 is 3 years old.
mgeise - 10 years 11 months ago

2 Answers:

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.

mgeise's picture
45785
Joined: Mar 5 2007 - 6:18am
Last seen: 3 years 9 months ago

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.

jasemilly - 10 years 11 months ago

 

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
kcollins's picture
12421
Joined: Aug 30 2011 - 12:22pm
Last seen: 3 years 1 month ago
Feedback