Hi,

I keep getting the following error when I try to connect to adwords
from a debian machine, using the AdWords java API:

Could not get ClientLogin token for user: Auth token could not be
retrieved because of IOException:
java.security.NoSuchAlgorithmException: Error constructing
implementation (algorithm: Default, provider: SunJSSE, class:
sun.security.ssl.DefaultSSLContextImpl)

I am basically trying to run the example for getting keyword ideas.
The same code works perfectly on my Mac, but on the debian server. The
version of java on the server is

java version "1.6.0_0"
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)

At first the system did not find any ssl keys, so I created a keystore
called jssecacerts and added the following lines to my code:
System.setProperty("javax.net.ssl.keyStore",path+"jssecacerts");
                        
System.setProperty("javax.net.ssl.keyStorePassword","changeit");
                        
System.setProperty("javax.net.ssl.trustStore",path+"jssecacerts");
                        
System.setProperty("javax.net.ssl.trustStorePassword",path
+"changeit");

The contents of the keystore is the following:
Keystore type: JKS
Keystore provider: SUN

Your keystore contains 3 entries

google, Mar 1, 2011, trustedCertEntry,
Certificate fingerprint (MD5): 5C:70:FC:B3:8E:27:9F:
49:01:C7:F9:41:28:1C:EF:4B
adwords.google.com-2, Mar 1, 2011, trustedCertEntry,
Certificate fingerprint (MD5): 33:A0:EA:98:0E:3D:6E:26:1D:77:2D:82:DF:
66:00:7D
adwords.google.com-1, Mar 1, 2011, trustedCertEntry,
Certificate fingerprint (MD5): 5C:70:FC:B3:8E:27:9F:
49:01:C7:F9:41:28:1C:EF:4B

Now, it finds the keystore, but I am getting this error that I have
cited with the following stack trace:
com.google.api.adwords.lib.AdWordsVersion
$AdWordsVersionV200909.setHeaders(lib:AdWordsVersion.java):194)
com.google.api.adwords.lib.AdWordsServiceFactory.getConfiguredStub(lib:AdWordsServiceFactory.java):
184)
com.google.api.adwords.lib.AdWordsServiceFactory.generateSerivceStub(lib:AdWordsServiceFactory.java):
104)
com.google.api.adwords.lib.AdWordsUser.getService(lib:AdWordsUser.java):
337)
com.hypios.keyword.experiment.transofrmators.AdWordsConnect.getAdwordsSuggestions(AdWordsConnect.java:
93)
com.hypios.keyword.experiment.transofrmators.KeywordExperiment.getGoogleSuggestions(KeywordExperiment.java:
74)
com.hypios.keyworder.web.pages.SecondPage.onSubmit(SecondPage.java:60)
....

I would appreciate any help or idea how to solve this.

Thanks in advance.

Best regards,

Milan Stankovic

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to