Solved

Javamail send error "could not convert socket to TLS"

Posted on 2011-02-15
4
5,391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

726 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