Solved

Javamail send error "could not convert socket to TLS"

Posted on 2011-02-15
4
5,174 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
ID: 34895835
sounds like an ssl certificate has expired
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34895837
0
 
LVL 92

Expert Comment

by:objects
ID: 34895845
strange its not happening all the time though

check the full stack trace to see where its occurring
0
 

Author Comment

by:Chris_Ryan
ID: 34896890
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

830 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