Solved

Email send not working: No provider for SMTP

Posted on 2011-02-23
3
1,693 Views
Last Modified: 2012-05-11
Hi Guys,

We are using Quality center on site and what we are finding is the tool is unable to send emails after abount an hour or so after restarting the service or rebooting. When we first reboot emails are send without issue. The error that is being thrown is below.
I'm hoping someone can work out from this error so possible causes. The fact that it does work initially we suspect that Quality center is setup correctly to send emails. The error is below. Any help or ideas would be appreciated

Messages:
Failed to mail the specified entities; Failed to mail the specified entities; Failed to send mail to 'David.xxxxl@xxxx.gov.au' ; Failed to send the message via mail server 'exchangerelay.prod.csanet.gov.au'; No provider for SMTP; No provider for SMTP;

Stack Trace:
javax.mail.NoSuchProviderException: No provider for SMTP
at javax.mail.Session.getProvider(Session.java:455)
at javax.mail.Session.getTransport(Session.java:650)
at javax.mail.Session.getTransport(Session.java:631)
at javax.mail.Session.getTransport(Session.java:617)
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:496)
wrapped in com.mercury.optane.core.CTdException: No provider for SMTP
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:545)
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:489)
at com.mercury.td.tdserver.mail.MailLogic.sendMessage(MailLogic.java:1629)
wrapped in com.mercury.optane.core.CTdException: Failed to send the message via mail server 'exchangerelay.prod.xxxx.gov.au'
at com.mercury.td.tdserver.mail.MailLogic.sendMessage(MailLogic.java:1631)
at com.mercury.td.tdserver.mail.MailLogic.sendMail(MailLogic.java:778)
wrapped in com.mercury.optane.core.CTdException: Failed to send mail to 'David.xxxx@xxxx.gov.au'
at com.mercury.td.tdserver.mail.MailLogic.sendMail(MailLogic.java:782)
at com.mercury.td.tdserver.mail.MailLogic.sendEntity(MailLogic.java:708)
wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.mail.MailLogic.sendEntity(MailLogic.java:711)
at com.mercury.td.tdserver.mail.MailLogic.sendEntity(MailLogic.java:538)
wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.mail.MailLogic.sendEntity(MailLogic.java:555)
at com.mercury.td.tdserver.requests.MailEntity.execute(MailEntity.java:36)
at com.mercury.optane.core.web.RequestsDispatcher.execute(RequestsDispatcher.java:91)
at com.mercury.td.web.CAbsServlet.executeFunction(CAbsServlet.java:486)
at com.mercury.td.web.CAbsServlet.processRequest(CAbsServlet.java:478)
at com.mercury.td.web.CTdServlet.processRequest(CTdServlet.java:165)
at com.mercury.td.web.CAbsServlet.doPost(CAbsServlet.java:352)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.hp.qc.core.utils.gzipfilter.GZIPFilter.doFilter(GZIPFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.mercury.optane.core.state.ServerStatusFilter.doFilter(ServerStatusFilter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
0
Comment
Question by:victoriaharry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:ajaykerala
ID: 34959594
your classpath dont seem to have mail.jar and activation.jar.

0
 

Author Comment

by:victoriaharry
ID: 34959622
Thanks for the quick reply. A couple of follow up questions

1) How would I update the classpath to include the location of these files
2) Any idea why it will work for about an hour or so after a server reboot

Thanks

Gavin
0
 
LVL 1

Accepted Solution

by:
Shura85 earned 500 total points
ID: 35148365
Copy the jars into the directory where you are developing them.  Or you can reference your classpath through a manifest.txt
http://download.oracle.com/javase/tutorial/deployment/jar/downman.html
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question