Solved

Javamail send error "could not convert socket to TLS"

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 65
Python variable _ manually assigned 9 61
egit plugin on eclipse 8 28
Steps to follow for Maintenance of Servers 4 49
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

929 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

14 Experts available now in Live!

Get 1:1 Help Now