Solved

Javamail send error "could not convert socket to TLS"

Posted on 2011-02-15
4
5,116 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

810 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