This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat fails to send e-mail

 
edwin angarita
Greenhorn
Posts: 3
Netbeans IDE Suse Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone in Javaranch, I am having a little issue and I don't know exactly how to solve it, I have a Java mail connection with a smtps server (ssh) I get the certified and everything works fine, my applications send emails without a problem, but after 15 days or a month the application start to fail, doesn't send any email and i get the following exception

the line 591 is the following

that's the line where i connect to the sender email and my password

but if I restart my tomcat the java mail start working again
this problem is driving my crazy, please i will appreciate any help!!!
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possibility could be, there are stale connections with the SMTP server which after sometime somehow interfere with your new connections. Examine the code to see, if you have released the connection resources completely.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic