RE: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2019-02-13 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hi, Since this is already an old thread and for better tracking, could you create a new one and include the details of your issue through that thread? We can continue our discussion through there. Thanks and regards, Peter AdWords API Team =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2019-02-13 Thread Ajanta Phatak
I have the same issue. For me to resolve the issue, I did what Patrick suggested here, but I had to also remove the old jars from the default spark jars directory. Could anyone suggest a way to avoid that? On Wednesday, August 9, 2017 at 4:25:35 AM UTC-4, Patrick McGeever wrote: > > Actually we

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2017-08-09 Thread Patrick McGeever
Actually we managed to resolve the problem so just in case someone else stumbles upon this thread I will describe how we resolved it. In our case we were depending on a jar in our Spark project (Google Adwords ads-lib) which in turn depended on guava-20.0 and commons-configuration-1.10. When

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2017-08-09 Thread Patrick McGeever
Actually we managed to resolve the problem so just in case someone else stumbles upon this thread I will describe how we resolved it. In our case we were depending on a jar in our Spark project (Google Adwords ads-lib) which in turn depended on guava-20.0 and commons-configuration-1.10. When

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2017-07-27 Thread 'Peter Oliquino' via AdWords API Forum
Hi Patrick, This appears to be a very old thread. This said, and also for better tracking, could you create a new one? We'll continue our discussion on the issue you are encountering from there. Best regards, Peter AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2017-07-27 Thread Patrick McGeever
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, ku...@arw.is 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

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2016-08-25 Thread 'Joyce Lava' via AdWords API Forum
Hi, I noticed this thread is a bit old. Please open a new thread with your concerns. Thanks, Joyce, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2016-08-25 Thread kumar
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.

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2015-09-29 Thread chandra sekhar lagadapati
Mr. Ray Please suggest My stacktrace is : Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.configuration.MapConfiguration.setTrimmingDisabled(Z)V at com.google.api.ads.common.lib.conf.ConfigurationHelper.fromSystem(ConfigurationHelper.java:120) at

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2015-09-29 Thread Umesh Dengale
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

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-24 Thread Vikash Singh
Hey Ray, We were including commons-lang-2.0.jar from somewhere in the app. Removed it and it worked fine. Thanks for all your help. :) cheers, -- Vikash On Monday, June 23, 2014 10:50:12 PM UTC+5:30, Ray Tsang (AdWords API Team) wrote: Vikash, Thanks for the stacktrace! It seems that

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-24 Thread Ray Tsang (AdWords API Team)
That's great to hear. I'm glad one of my guesses was right =) Cheers, Ray On Tuesday, June 24, 2014 6:36:04 AM UTC-7, Vikash Singh wrote: Hey Ray, We were including commons-lang-2.0.jar from somewhere in the app. Removed it and it worked fine. Thanks for all your help. :) cheers, --

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-23 Thread Vikash Singh
Hi Ray, Finally managed to get stackTrace: 23 Jun, 2014 3:53:28 PM org.apache.catalina.core.ApplicationContext log SEVERE: StandardWrapper.Throwable java.lang.NoSuchMethodError: org.apache.commons.lang.ArrayUtils.contains([CC)Z at

OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Vikash Singh
This value: com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS Is null. As In code: credential = new OfflineCredentials.Builder() .forApi(com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS) .withClientSecrets(clientAppId,

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Ray Tsang (AdWords API Team)
Vikash, Could I trouble you to send me the full stacktrace? Thanks, Ray On Thursday, June 19, 2014 11:39:13 AM UTC-4, Vikash Singh wrote: This value: com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS Is null. As In code: credential = new

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Vikash Singh
Hi Ray, Sorry to say this but there is no stack-trace. The flow is basically a sequence of proprietary classes. So can't print that. But the import statement is as follows: import com.google.api.ads.adwords.lib.client.AdWordsSession; import

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Ray Tsang (AdWords API Team)
Vikash, There should be a stracktrace - could I trouble you to check if the exception was swallowed and so the stacktrace isn't being handled properly?? Thanks, Ray On Thursday, June 19, 2014 2:24:59 PM UTC-4, Vikash Singh wrote: Hi Ray, Sorry to say this but there is no stack-trace. The

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Vikash Singh
Hi Ray, Also this value: com.google.api.ads.common.lib.auth.OfflineCredentials.Api.values() is giving An exception occurred: java.lang.NoClassDefFoundError It seems like some issue while loading the classes from the jars. Any idea what it could be and how to fix it?? On Thursday, June 19,

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Vikash Singh
Hi Ray, Yes the exception is absorbed a few steps down the line and then thrown as a different error. We use a rest framework for communication and that is what is absorbing the error so the stack trace is missing. :( On Friday, June 20, 2014 12:39:48 AM UTC+5:30, Ray Tsang (AdWords API Team)

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Vikash Singh
Also please note that this is a service. deployed on tomcat. Could that be somehow causing the imporper class loading issue ??? On Friday, June 20, 2014 12:39:48 AM UTC+5:30, Ray Tsang (AdWords API Team) wrote: Vikash, There should be a stracktrace - could I trouble you to check if the

Re: OfflineCredentials.Api.ADWORDS is giving value null and causing nullPointerException

2014-06-19 Thread Ray Tsang (AdWords API Team)
Vikash, I will need the stacktrace to further assist you. Its most likely that there was a initialization error as the OfflineCredentials.Api enumerated values may depend on Guice dependency injected instances. There could be many possible causes, such as not having the right dependencies,