Done

https://code.google.com/p/google-api-ads-java/issues/detail?id=47

On Tuesday, February 26, 2013 6:31:23 AM UTC+11, David Torres wrote:
>
> Hi,
>
> Thanks a lot for your bug report, do you mind filing it in the library 
> project http://code.google.com/p/google-api-ads-java/issues/list.
>
> Best,
>
> - David Torres - AdWords API Team
>
> On Sunday, February 24, 2013 7:04:48 PM UTC-5, Minh Tran wrote:
>>
>> Ok I've resolved this now.
>>
>> The reason the NullPointerException occurs is because the try block it is 
>> in is assuming that the Soap call executed successfully from earlier, 
>> except in my case it didn't. It actually threw an InvocationTargetException 
>> at SoapClientHandler.java:109 so you guys need to fix up your client lib to 
>> throw this exception back instead of assuming it worked. 
>>
>> The reason for the InvocationTargetException was because of this(note the 
>> package name refers to a previous version of the api which no longer exists)
>>
>> java.lang.ClassNotFoundException: *com.google.api.adwords*
>> .lib.AdWordsHttpSender
>>
>> Upon more digging around, I noticed in my project I have my own 
>> client-config.wsdd file which had this class in it. I removed this file and 
>> it finally worked. This project was based on an older version of the api. 
>> Not sure if this was documented in the migration docs as it looks like you 
>> have removed the old ones from your site, my api version was 201109.
>>
>> On Friday, February 22, 2013 3:14:24 PM UTC+11, Minh Tran wrote:
>>>
>>> Hi
>>>
>>> I am running the GetCampaigns class in the java examples and it runs 
>>> successfully. However I copied it to my own project and ran it from there 
>>> and I get the following exception. Any ideas?
>>>
>>>  Exception in thread "main" java.lang.NullPointerException
>>>
>>> at com.google.api.ads.common.lib.soap.axis.AxisHandler.invokeSoapCall(
>>> AxisHandler.java:194)
>>>
>>> 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 
>>> au.com.appliancesonline.adwords_portal.service.impl.GetCampaigns.runExample(
>>> GetCampaigns.java:76)
>>>
>>> at au.com.appliancesonline.adwords_portal.service.impl.GetCampaigns.main(
>>> GetCampaigns.java:56)
>>>
>>>
>>> Upon debugging, at AxisHandler.java:194, the following is null, 
>>> messageContext.getResponseMessage()
>>>
>>>
>>> My pom file has the same inclusions as the one in the examples
>>>
>>> <dependency>
>>>
>>>  <groupId>com.google.api-ads</groupId>
>>>
>>>  <artifactId>ads-lib</artifactId>
>>>
>>>  <version>1.2.14</version>
>>>
>>>  </dependency>
>>>
>>>
>>>  <dependency>
>>>
>>>  <groupId>com.google.api-ads</groupId>
>>>
>>>  <artifactId>adwords-axis</artifactId>
>>>
>>>  <version>1.2.14</version>
>>>
>>>  </dependency>
>>>
>>>
>>>  <dependency>
>>>
>>>  <groupId>com.google.http-client</groupId>
>>>
>>>  <artifactId>google-http-client-jackson2</artifactId>
>>>
>>>  <version>1.13.1-beta</version>
>>>
>>>  </dependency>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to