• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Tomcat fails to send e-mail

 
Greenhorn
Posts: 3
Netbeans IDE Tomcat Server Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic