Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HDelacierva's avatar

API using Java

I am working on a Java project that utilizes "Datalastic" vessel tracking API. I am trying to implement a method that retrieves vessel location data but I am getting a javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed error. I have already added the necessary SSL certificate to my project and verified that the connection to the API endpoint is successful. I am using Java version 11, and the Apache HttpClient library version 4.5.14 for sending the requests to the API. How can I resolve this SSLHandshakeException and correctly retrieve the location data for vessels? Are there any known issues with using this specific version of Java or the HttpClient library with this API?

0 likes
1 reply
jlrdw's avatar

Have you tried a Java forum. If you are doing Java programming you have probably seen tutorials by Baeldung.

Maybe check that out also.

Also coderanch is a good forum.

Please or to participate in this conversation.