I am experiencing this problem also.

Did you resolve it in the end?

Would be good to know how.


On Friday, 26 August 2016 06:29:30 UTC+1, [email protected] wrote:
>
> Hi All,
>
> I have the same issue right now. I am trying to run my Adwords project as 
> a spark job in scala. It works well on my local machine but when I compile 
> and create a jar for it, it fails because of the following error. 
> I am using the two dependencies for my Adwords project.
> "com.google.api-ads" % "ads-lib" % "2.14.0" 
> "com.google.api-ads" % "adwords-axis" % "2.15.0"
>
> Would be nice if someone can point out possible solutions. I have made 
> sure that I added commons configuration jar to my build, but it still cant 
> find it during runtime. 
>
> 16/08/25 17:33:45 ERROR yarn.ApplicationMaster: User class threw exception: 
> java.lang.NoSuchMethodError: 
> org.apache.commons.configuration.MapConfiguration.<init>(Ljava/util/Properties;)V
> 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:36)
>       at 
> com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<clinit>(OfflineCredentials.java:66)
>       at config.APISConfig$.create_adwords_session(APISConfig.scala:18)
>       at 
> campaign_by_apisearches.APICampaignStarter$.<init>(APICampaignStarter.scala:18)
>       at 
> campaign_by_apisearches.APICampaignStarter$.<clinit>(APICampaignStarter.scala)
>       at 
> campaign_by_apisearches.APICampaignStarter.main(APICampaignStarter.scala)
>       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:498)
>       at 
> org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:525)
> 16/08/25 17:33:45 INFO yarn.ApplicationMaster: Final app status: FAILED, 
> exitCode: 15, (reason: User class threw exception: 
> java.lang.NoSuchMethodError: 
> org.apache.commons.configuration.MapConfiguration.<init>(Ljava/util/Properties;)V)
> 16/08/25 17:33:55 ERROR yarn.ApplicationMaster: SparkContext did not 
> initialize after waiting for 100000 ms. Please check earlier log output for 
> errors. Failing the application.
> 16/08/25 17:33:55 INFO util.ShutdownHookManager: Shutdown hook called
>
>
> On Tuesday, September 29, 2015 at 2:24:58 PM UTC-6, Umesh Dengale wrote:
>>
>> Hello,
>>
>> Thanks for providing the stacktrace.  It seems that the classpath may be 
>> missing some essential dependencies (e.g. commons-configuration jar 
>> etc.). Again, this could be caused by many things that may be beyond the 
>> AdWords API: missing dependency, or duplicate dependency, or incompatible 
>> version, etc.
>>
>> Thanks,
>> Umesh, AdWords API Team
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
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 [email protected].
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/25d8f4e2-4bbb-4d8e-b019-50f35f1a4d5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to