Tomcat Amadeus:httpsUrlConnection异常SunCertPathBuilderException

Tomcat Amadeus:httpsUrlConnection异常SunCertPathBuilderException,tomcat,amadeus,Tomcat,Amadeus,当我试图打电话获取授权令牌时,出现了此异常- 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

当我试图打电话获取授权令牌时,出现了此异常-

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
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1478)
这是我们的代码-

URL urlAuthToken = new URL("https://test.api.amadeus.com/v1/security/oauth2/token");
httpsConAuthToken = (HttpsURLConnection) urlAuthToken.openConnection();
httpsConAuthToken.setRequestMethod("POST");
httpsConAuthToken.setRequestProperty("Cache-Control", "no-cache");
httpsConAuthToken.setRequestProperty(
    "Content-Type", "application/x-www-form-urlencoded");

httpsConAuthToken.setDoInput(true);
httpsConAuthToken.setDoOutput(true);

String paramsToPassAuthToken = "grant_type=client_credentials&client_id={api key}&client_secret={secret}";
DataOutputStream wr = new DataOutputStream (
                httpsConAuthToken.getOutputStream ());
wr.writeBytes(paramsToPassAuthToken);
wr.flush();
wr.close();
请告诉我如何修理这个。谢谢你的帮助