Hi,

OK, thanks for confirming. If I'm reading your response correctly, this 
issue is now resolved (since the 2.5.0 pom.xml requires Guice 4.0 
<https://github.com/googleads/googleads-java-lib/blob/master/modules/ads_lib/pom.xml#L161>).
 
If you're still experiencing issues, please provide more details such as 
your complete set of Maven dependencies and I'll investigate further.

Thanks,
Josh, AdWords API Team

On Sunday, October 25, 2015 at 4:50:32 AM UTC-4, Adxsearch Adxpand wrote:
>
> Yes, the 2.2.0 version needs Guice 3.0. The 2.5.0 version does not need 
> Guice 3.0, but it does need Guice 4.0. That folder name needs to be 4.0, 
> not 4.0.old.
>
> On Friday, October 23, 2015 at 9:48:13 PM UTC+2, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Are you saying that after you changed your local .m2 folder from *3.0* to 
>> *3.0.old*, version 2.5.0 worked fine?
>>
>> The reason that the creation of a new *AdWordsServices* object leads to 
>> this exception is that *AdWordsServices* has a static final Injector 
>> <https://github.com/googleads/googleads-java-lib/blob/master/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/factory/AdWordsServices.java#L44>
>>  that's 
>> created when the *AdWordsServices* class initializes. Therefore, if 
>> there are any Guice-related issues, they'll generally surface at that point.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Friday, October 23, 2015 at 9:20:36 AM UTC-4, Adxsearch Adxpand wrote:
>>>
>>> I don't think there are any Guice 3.0 dependencies in the project 
>>> updated to use the 2.5.0 version of the API. If I change the name of the 
>>> guice 3.0 folders in my local .m2 folder from "3.0" to "3.0.old", the 
>>> project using the 2.2.0 version of the API doesn't start. It complains 
>>> about a bunch of Guice 3.0 dependencies which it can't find. But the new 
>>> project using the 2.5.0 version of the API starts without any complaints. 
>>> This line of code seems to be the problem:
>>> AdWordsServices adWordsServices = new AdWordsServices();
>>> As soon as it's called, a million exceptions are thrown. It doesn't seem 
>>> to matter in which class I have it. As soon as it's called the execution 
>>> stops.
>>>
>>> On Tuesday, October 20, 2015 at 8:55:31 PM UTC+2, Josh Radcliff (AdWords 
>>> API Team) wrote:
>>>>
>>>> Hi,
>>>>
>>>> In v2.5.0, we upgraded to Guice 4.0 (see the ChangeLog 
>>>> <https://github.com/googleads/googleads-java-lib/blob/master/ChangeLog#L15>).
>>>>  
>>>> I suspect this is what's causing the exception you mentioned.
>>>>
>>>> Do any of your other maven dependencies depend on Guice? Now that the 
>>>> client library depends on Guice 4.0, you might run into strange problems 
>>>> if 
>>>> another dependency depends on Guice 3.x.
>>>>
>>>> Thanks,
>>>> Josh, AdWords API Team
>>>>
>>>> On Tuesday, October 20, 2015 at 8:16:46 AM UTC-4, Adxsearch Adxpand 
>>>> wrote:
>>>>>
>>>>> Neither 201506 nor 201509 works with 2.5.0
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5057fb10-7e29-49fc-b4dc-380a64a3c9d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to