function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Email2Case: PKIX path building failed:

I am trying to run the Email2Case and it is giving me following error message. Same setup was running till last month. Does v 9.0 no more supported? or I am missing anything? It getting service URL as : 
2012-08-27 17:56:44,759 [main] INFO  Attempting to start service com.sforce.mail.EmailService with configuration file D:\Applications\Email2Case\\email2case.txt

2012-08-27 17:56:48,121 [main] INFO  LoginURL:
2012-08-27 17:56:48,122 [main] INFO  Agent will connect to:
2012-08-27 17:56:52,388 [main] ERROR Failed to bind to SFDC service on initialization.
HTTP transport error:
r.ValidatorException: PKIX path building failed:
SunCertPathBuilderException: unable to find valid certification path to requested target

 Any help will be really helpful.

Best Answer chosen by Admin (Salesforce Developers) 

All Answers


Hi Prasanna, Does your configuration have valid client certification path?


I have implemented SSL handshake however not with Salesforce. Please have a look at below URL:


Thanks for the reply!


I have a solution which fetches the server certificate and add that to the key store and then I can configure Java app to use that keystore. But the problem is I am using the standard Email-to-Case JAVA application provided by Salesforce. And which was working fine untill last few days.


This was selected as the best answer