Solved

Javamail send error "could not convert socket to TLS"

Posted on 2011-02-15
4
4,830 Views
Last Modified: 2012-08-13
Hi

We have a small java module that generates a report from some data and then e-mails it to the User.

We have just recently started getting the following error from our e-mail log.  It appears to have started from a specific date, and it does not happen all the time.

It looks to me as if an expert might well be able to tell us the problem almost immediately??

I am including a sample of a good e-mail log and a bad e-mail log (the bad one is always the same)

Good e-mail log;

Jan 4, 2011 6:04:24 PM iopener.poller.DirectoryPolling run
INFO: Processing file :0241p75kke7a.csv
Jan 4, 2011 6:04:25 PM iopener.GenerateReportCLI readInputFile
INFO: 1 lines are read from the file /home/ippq360/public_html/ippq/ProjectGenerator/ReportGenerator/../ReportCSV/0241p75kke7a.csv
Jan 4, 2011 6:04:25 PM iopener.GenerateReportCLI processFile
INFO: Full version of personal report is generated for USER1
Jan 4, 2011 6:04:26 PM iopener.GenerateReportCLI sendMail
INFO: Emails are sent to recepient(s) : USER1@qwe.com , MANAGER@you.co.uk

Example of error e-mail log;

Jan 5, 2011 4:38:31 PM iopener.poller.DirectoryPolling run
INFO: Processing file :Free0269.csv
Jan 5, 2011 4:38:31 PM iopener.GenerateReportCLI readInputFile
INFO: 1 lines are read from the file /home/ippq360/public_html/ippq/ProjectGenerator/ReportGenerator/../ReportCSV/Free0269.csv
Jan 5, 2011 4:38:32 PM iopener.GenerateReportCLI processFile
INFO: Full version of personal report is generated for USER2
Jan 5, 2011 4:38:32 PM iopener.GenerateReportCLI sendMail
SEVERE: Error : Problem in sending email.
Could not convert socket to TLS
Jan 5, 2011 4:38:32 PM iopener.GenerateReportCLI processFile
SEVERE: Error in sending mailjavax.mail.MessagingException: Could not convert socket to TLS;
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

0
Comment
Question by:Chris_Ryan
  • 3
4 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
sounds like an ssl certificate has expired
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
Comment Utility
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
strange its not happening all the time though

check the full stack trace to see where its occurring
0
 

Author Comment

by:Chris_Ryan
Comment Utility
Thanks so much for the very quick response.

It is weird about the inconsistency.   The SSL certificate should be fine, but I think you are pointing us in the right direction.  We think it might be something to do with some internal Javamail certificates that need setting up or rather re-setting.

I'll let you know the final result as soon as we have sorted it.

Once again, many thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now