Closed mohitvaidya89 closed 2 years ago
It looks like you need to configure a key store for this request: https://stackoverflow.com/a/36427118
The endpoint for the API is https://ads.google.com/api/adwords If you visit that in your browser you'll get a 404 exception but you'll be able to grab the SSL certificate.
log":{"classname":"com.google.api.ads.common.lib.utils.logging.RemoteCallLoggerDelegate:115","message":"SOAP response:<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>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</faultstring> <detail> <ns1:stackTrace xmlns:ns1=\"http://xml.apache.org/axis/\">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 targetat sun.security.ssl.Alerts.getSSLException(Alerts.java:198)at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1976)at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:318)at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:312)at sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1846)at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1655)at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:260)at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1086)at sun.security.ssl.Handshaker.processRecord(Handshaker.java:1020)at sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1140)at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:976)at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1409)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1436)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1420)at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)at org.apache.axis.client.Call.invokeEngine(Call.java:2784)at org.apache.axis.client.Call.invoke(Call.java:2767)at org.apache.axis.client.Call.invoke(Call.java:2443)at org.apache.axis.client.Call.invoke(Call.java:2366)at org.apache.axis.client.Call.invoke(Call.java:1812)at com.google.api.ads.adwords.axis.v201809.cm.ConstantDataServiceSoapBindingStub.getLanguageCriterion(ConstantDataServiceSoapBindingStub.java:1203)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:100)at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:234)at com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:63)at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)at com.sun.proxy.$Proxy293.getLanguageCriterion(Unknown Source)at com.nokia.tpapps.recommendationserver.extsystem.impl.googleads.AdwordsLanguage.populateAdwordsLanguage(AdwordsLanguage.java:64)at com.nokia.tpapps.recommendationserver.extsystem.impl.googleserver.GoogleImpl.startingPlugin(GoogleImpl.java:131)at com.nokia.tpapps.recommendationserver.extsystem.ExternalSystemPluginManager.startPlugins(ExternalSystemPluginManager.java:476)at com.nokia.tpapps.recommendationserver.extsystem.ExternalSystemPluginManager.registerActivePlugins(ExternalSystemPluginManager.java:327)at com.nokia.tpapps.recommendationserver.extsystem.ExternalSystemMBeanBase.reloadConfig(ExternalSystemMBeanBase.java:316)at com.nokia.tpapps.recommendationserver.extsystem.ExternalSystemMBeanBase.reloadConfig(ExternalSystemMBeanBase.java:262)at com.nokia.tpapps.recommendationserver.server.common.ExtSystemScanner.registerDeregisterPlugin(ExtSystemScanner.java:111)at com.nokia.tpapps.recommendationserver.server.mbeans.RSServerStartupImpl$1.notify(RSServerStartupImpl.java:177)at com.nokia.tpapps.recommendationserver.server.mbeans.RSServerStartupImpl$1.notify(RSServerStartupImpl.java:156)at com.alcatel.tpapps.common.db.aerospike.ASListenerImpl$ObjectPollerTask.run(ASListenerImpl.java:492)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetat sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:290)at sun.security.validator.Validator.validate(Validator.java:264)at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:343)at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:226)at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:133)at sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1825)... 50 moreCaused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetat sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)... 56 more</ns1:stackTrace> <ns2:hostname xmlns:ns2=\"http://xml.apache.org/axis/\">SPSCETB-comsvc-0-spsrs</ns2:hostname> </detail> </soapenv:Fault> </soapenv:Body></soapenv:Envelope>","stacktrace":"","threadname":"ASListenerPoller-1"},"process":"logRequestDetails","service":"","time":"2021-10-26T08:16:14.141Z","timezone":"Asia/Riyadh","type":"log","system":"TESTBED-SPS-CE","systemid":"TESTBED-SPS-CE"}