Jump to content
We've recently updated our Privacy Statement, available here ×

JS doesn\'t see changes in js.quartz.properties


aosc

Recommended Posts

I've installed JS 4.5.0 on Windows. After installation I configured my external SMTP server in js.quartz.properties and restart jasperserverTomcat service. Unfortunately, when I schedule a report with email output, in jasperserver.log I still see:

 

2012-03-05 15:13:14,795 ERROR ReportExecutionJob,quartzScheduler_Worker-0:310 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mail.localhost.com, port: 25;
 

Looks like JS doesn't see my changes in js.quartz.properties.

I tried a few times to change SMTP settings in js.quartz.properties, even tried to put those settings in applicationContext-report-scheduling.xml, no effect :( Why?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,
have you tried to clean your temp (work) folder? Sometimes it doesn't read the latest configuration. Also can you post your full log here for me to see?

Please attach both files here as well if possible.
Regards,
-DJ-



Post Edited by jcuser at 03/05/2012 14:36
Link to comment
Share on other sites

[EDIT] work folder cleaned, Tomcat restarted, no effect :(

Log:

2012-03-05 15:13:14,795 ERROR ReportExecutionJob,quartzScheduler_Worker-0:310 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mail.localhost.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
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:788)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:491)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:233)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: mail.localhost.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:389)
... 7 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 10 more



Post Edited by aosc at 03/05/2012 14:37



Post Edited by aosc at 03/05/2012 14:40
Link to comment
Share on other sites

Hi,
Are you using community edition or commercial edition?
I just tested at my local using google and it works perfectly without any problem. Same setting using apache tomcat and just change those 2 files.
Do take note that i was using commercial edition and smtps
Attached are my sample file.

 

PS: I hope you don't have 2 installation of jasperserver.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...