Hi,

Could you share the code you are using to create your *AdWordsSession*?

Also, the error suggests that you are using a service account, but as 
mentioned in our Service Accounts guide 
<https://developers.google.com/adwords/api/docs/guides/service-accounts>:

OAuth2 offline and web flows require user interaction only once: when 
> access to the account is granted. From that point, all operations can be 
> executed with no manual steps until the access token is revoked. We 
> strongly recommend using offline or web flows instead of service accounts 
> *unless 
> you need domain-specific features* (e.g. impersonation).


Please make sure you remove any sensitive information when posting.

Thanks,
Josh, AdWords API Team

On Friday, January 2, 2015 4:26:43 AM UTC-5, Rajalakshmi Thangavelu wrote:
>
>
> Hi Team,
>
> I have connected the Google Adwords through the java and have set all the 
> properties including the client secret,clientid,etc.
>
> I m getting the below error...............
>
>
>
> log4j:WARN No appenders could be found for logger 
> (org.apache.commons.configuration.PropertiesConfiguration).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
> more info.
> Exception in thread "main" AxisFault
>  faultCode: {
> http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  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
>  faultActor: 
>  faultNode: 
>  faultDetail: 
>     {
> http://xml.apache.org/axis/}stackTrace: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(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
>     at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>     at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>     at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
>     at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
>     at sun.security.ssl.Handshaker.processLoop(Unknown Source)
>     at sun.security.ssl.Handshaker.process_record(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown 
> Source)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>     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.v201406.cm.CampaignServiceSoapBindingStub.get(CampaignServiceSoapBindingStub.java:1364)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at 
> com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:109)
>     at 
> com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:213)
>     at 
> com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:64)
>     at 
> com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)
>     at $Proxy14.get(Unknown Source)
>     at 
> adwords.axis.v201406.basicoperations.GetCampaigns.runExample(GetCampaigns.java:82)
>     at 
> adwords.axis.v201406.basicoperations.GetCampaigns.main(GetCampaigns.java:59)
> Caused by: 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.validator.PKIXValidator.doBuild(Unknown Source)
>     at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
>     at sun.security.validator.Validator.validate(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown 
> Source)
>     ... 33 more
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException: 
> unable to find valid certification path to requested target
>     at 
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown 
> Source)
>     at java.security.cert.CertPathBuilder.build(Unknown Source)
>     ... 39 more
>
>     {http://xml.apache.org/axis/}hostname:UG-dsfdf-536
>
> 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 org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>     at 
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
>     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.v201406.cm.CampaignServiceSoapBindingStub.get(CampaignServiceSoapBindingStub.java:1364)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at 
> com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:109)
>     at 
> com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(AxisHandler.java:213)
>     at 
> com.google.api.ads.common.lib.soap.SoapServiceClient.callSoapClient(SoapServiceClient.java:64)
>     at 
> com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93)
>     at $Proxy14.get(Unknown Source)
>     at 
> adwords.axis.v201406.basicoperations.GetCampaigns.runExample(GetCampaigns.java:82)
>     at 
> adwords.axis.v201406.basicoperations.GetCampaigns.main(GetCampaigns.java:59)
> Caused by: 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(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
>     at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>     at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>     at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
>     at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
>     at sun.security.ssl.Handshaker.processLoop(Unknown Source)
>     at sun.security.ssl.Handshaker.process_record(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown 
> Source)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>     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)
>     ... 21 more
> Caused by: 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.validator.PKIXValidator.doBuild(Unknown Source)
>     at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
>     at sun.security.validator.Validator.validate(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
>     at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown 
> Source)
>     ... 33 more
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException: 
> unable to find valid certification path to requested target
>     at 
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown 
> Source)
>     at java.security.cert.CertPathBuilder.build(Unknown Source)
>     ... 39 more
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d13ac5f3-66c9-4e0c-946b-0e69f0d32494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to