Hi Richard,

your dependency tree shows, that you use 
  org.apache.commons:commons-configuration2
but ads-lib depends on 
  org.apache.commons:commons-configuration

therefore in your classpath only
  org.apache.commons.configuration2.MapConfiguration
is included, but not the required
  org.apache.commons.configuration.MapConfiguration

you should use org.apache.commons:commons-configuration

Regards,

Christian

Am Dienstag, 7. März 2017 20:20:31 UTC+1 schrieb Richard Siebeling:
>
> Hi,
>
> I'm getting the following error while connecting with Adwords : 
> java.lang.NoSuchMethodError: 
> org.apache.commons.configuration.MapConfiguration.<init>(Ljava/util/Properties;)V
> The stacktrace is below.
> Please help,
> thanks in advance,
> Richard
>
>
> java.lang.NoSuchMethodError: 
> org.apache.commons.configuration.MapConfiguration.<init>(Ljava/util/Properties;)V
>       at 
> com.google.api.ads.common.lib.conf.ConfigurationHelper.fromSystem(ConfigurationHelper.java:118)
>       at 
> com.google.api.ads.common.lib.conf.ConfigurationHelper.createCombinedConfiguration(ConfigurationHelper.java:144)
>       at 
> com.google.api.ads.common.lib.conf.ConfigurationProvider.get(ConfigurationProvider.java:67)
>       at 
> com.google.api.ads.common.lib.conf.ConfigurationProvider.get(ConfigurationProvider.java:31)
>       at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>       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.construct(ConstructorInjector.java:84)
>       at 
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>       at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>       at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>       at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>       at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>       at 
> com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204)
>       at 
> com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198)
>       at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
>       at 
> com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198)
>       at 
> com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179)
>       at 
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
>       at com.google.inject.Guice.createInjector(Guice.java:95)
>       at com.google.inject.Guice.createInjector(Guice.java:72)
>       at com.google.inject.Guice.createInjector(Guice.java:62)
>       at 
> com.google.api.ads.adwords.lib.utils.AdWordsInternals.<clinit>(AdWordsInternals.java:37)
>       at 
> com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<clinit>(OfflineCredentials.java:66)
>       at 
> anabrix.GoogleAdWordsProcessor.getData(GoogleAdWordsProcessor.scala:41)
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5c662566-8b68-4f0c-aa5b-4ef516eb0431%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to