Here is the selector
On Tuesday, May 31, 2016 at 5:50:58 PM UTC-4, Han Vo wrote:
-- Selector campaignSelector = new Selector();
campaignSelector.setFields(new String[]{"Id", "Name"});
On Tuesday, May 31, 2016 at 5:50:58 PM UTC-4, Han Vo wrote:
Everything is still working at 2.12.0, but upgrading to 2.13.0 (even without upgrading the api version) breaks my application while using CampaignServiceInterface get method. This also breaks for every version after 2.13.0 (including 2.14.0 and 2.15.0). Please advise and here is the full stack:Exception in thread "main" java.lang.ExceptionInInitializerError at com.google.api.ads.adwords.lib.AdWordsModule. getInternals(AdWordsModule. java:61) 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:497) at com.google.inject.internal.ProviderMethod$ ReflectionProviderMethod. doProvision(ProviderMethod. java:299) at com.google.inject.internal.ProviderMethod.get( ProviderMethod.java:172) at com.google.inject.internal.ProviderInternalFactory. provision( ProviderInternalFactory.java: 81) at com.google.inject.internal.InternalFactoryToInitializable Adapter.provision( InternalFactoryToInitializable Adapter.java:53) at com.google.inject.internal.ProviderInternalFactory. circularGet( ProviderInternalFactory.java: 61) at com.google.inject.internal.InternalFactoryToInitializable Adapter.get( InternalFactoryToInitializable Adapter.java:45) at com.google.inject.internal.InjectorImpl$2$1.call( InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext( InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get( InjectorImpl.java:1012) at com.google.api.ads.common.lib.useragent. AdsUtilitiesUserAgentProvider. getUserAgent( AdsUtilitiesUserAgentProvider. java:57) at com.google.api.ads.common.lib.useragent.UserAgentCombiner$1. apply(UserAgentCombiner.java: 90) at com.google.api.ads.common.lib.useragent.UserAgentCombiner$1. apply(UserAgentCombiner.java: 87) at com.google.common.collect.Iterators$9.transform( Iterators.java:879) at com.google.common.collect.TransformedIterator.next( TransformedIterator.java:46) at com.google.common.base.Joiner$2.appendTo(Joiner.java:309) at com.google.common.base.Joiner.appendTo(Joiner.java:184) at com.google.common.base.Joiner.join(Joiner.java:240) at com.google.common.base.Joiner.join(Joiner.java:230) at com.google.api.ads.common.lib.useragent.UserAgentCombiner. getUserAgent( UserAgentCombiner.java:86) at com.google.api.ads.adwords.axis.AdWordsAxisHeaderHandler. setHeaders( AdWordsAxisHeaderHandler.java: 111) at com.google.api.ads.adwords.axis.AdWordsAxisHeaderHandler. setHeaders( AdWordsAxisHeaderHandler.java: 41) at com.google.api.ads.common.lib.client.AdsServiceClient. setHeaders(AdsServiceClient. java:108) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke( SoapServiceClient.java:91) at com.sun.proxy.$Proxy16.get(Unknown Source) at our app's stack calling campaignService.get(campaignSelector) Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.NoSuchMethodError: com.google.common.collect.Sets.newConcurrentHashSet() Ljava/util/Set; at com.google.api.ads.common.lib.utils.AdsUtilityRegistry.< init>(AdsUtilityRegistry.java: 31) at com.google.api.ads.common.lib.utils.AdsUtilityRegistry. class(AdsUtilityRegistry.java: 31) while locating com.google.api.ads.common.lib.utils.AdsUtilityRegistry for parameter 6 at com.google.api.ads.adwords.lib.utils.AdWordsInternals.< init>(AdWordsInternals.java: 46) while locating com.google.api.ads.adwords.lib.utils.AdWordsInternals 1 errorat com.google.inject.internal.InjectorImpl$2.get( InjectorImpl.java:1025) at com.google.inject.internal.InjectorImpl.getInstance( InjectorImpl.java:1051) at com.google.api.ads.adwords.lib.utils.AdWordsInternals.< clinit>(AdWordsInternals.java: 36) ... 36 moreCaused by: java.lang.NoSuchMethodError: com.google.common.collect.Sets.newConcurrentHashSet() Ljava/util/Set; at com.google.api.ads.common.lib.utils.AdsUtilityRegistry.< init>(AdsUtilityRegistry.java: 33) at com.google.api.ads.common.lib.utils.AdsUtilityRegistry$$ FastClassByGuice$$20ddab28. newInstance(<generated>) at com.google.inject.internal.cglib.reflect.$ FastConstructor.newInstance( FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactor y$1.newInstance( DefaultConstructionProxyFactor y.java:61) at com.google.inject.internal.ConstructorInjector.provision( ConstructorInjector.java:105) at com.google.inject.internal.ConstructorInjector.construct( ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$ Factory.get( ConstructorBindingImpl.java: 267) at com.google.inject.internal.ProviderToInternalFactoryAdapt er$1.call( ProviderToInternalFactoryAdapt er.java:46) at com.google.inject.internal.InjectorImpl.callInContext( InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapt er.get( ProviderToInternalFactoryAdapt er.java:40) at com.google.inject.internal.SingletonScope$1.get( SingletonScope.java:145) at com.google.inject.internal.InternalFactoryToProviderAdapt er.get( InternalFactoryToProviderAdapt er.java:41) at com.google.inject.internal.SingleParameterInjector. inject( SingleParameterInjector.java: 38) at com.google.inject.internal.SingleParameterInjector. getAll( SingleParameterInjector.java: 62) at com.google.inject.internal.ConstructorInjector.provision( ConstructorInjector.java:104) at com.google.inject.internal.ConstructorInjector.construct( ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$ Factory.get( ConstructorBindingImpl.java: 267) at com.google.inject.internal.InjectorImpl$2$1.call( InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext( InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get( InjectorImpl.java:1012) ... 38 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+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/92ee53b7-4f67-4e50-a277-1d87c880d3e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment