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, > -- > 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 the classpath may be missing >> some essential dependencies. In this particular case, it's missing the >> Commons Lang dependency that has the proper ArrayUtils. 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, >> >> Ray >> >> On Monday, June 23, 2014 10:20:14 AM UTC-4, Vikash Singh wrote: >>> >>> 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 >>> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.doParseProperty(PropertiesConfiguration.java:889) >>> at >>> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.parseProperty(PropertiesConfiguration.java:795) >>> at >>> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.nextProperty(PropertiesConfiguration.java:728) >>> at >>> org.apache.commons.configuration.PropertiesConfigurationLayout.load(PropertiesConfigurationLayout.java:484) >>> at >>> org.apache.commons.configuration.PropertiesConfiguration.load(PropertiesConfiguration.java:473) >>> at >>> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:383) >>> at >>> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:349) >>> at >>> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:312) >>> at >>> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:225) >>> at >>> org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:188) >>> at >>> org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:284) >>> at >>> com.google.api.ads.common.lib.conf.ConfigurationHelper.fromFile(ConfigurationHelper.java:101) >>> at >>> com.google.api.ads.common.lib.conf.ConfigurationHelper.createCombinedConfiguration(ConfigurationHelper.java:157) >>> at >>> com.google.api.ads.common.lib.conf.ConfigurationProvider.get(ConfigurationProvider.java:66) >>> at >>> com.google.api.ads.common.lib.conf.ConfigurationProvider.get(ConfigurationProvider.java:1) >>> 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:65) >>> at >>> com.sokrati.googleAccLib.GoogleCredentials.resetAccessToken(GoogleCredentials.java:54) >>> at >>> com.sokrati.googleAccLib.GoogleCredentials.getAccessToken(GoogleCredentials.java:93) >>> at >>> com.sokrati.googleAccLib.Google.getCredentialsFromHs(Google.java:202) >>> at com.sokrati.googleAccLib.Google.<init>(Google.java:123) >>> at >>> com.sokrati.bulkAcnSvc.servlets.AdGrSrvlt.firstTimeInit(AdGroupsSrvlt.java:72) >>> at >>> com.sokrati.bulkAcnSvc.servlets.BaseCommunicator.initializeConfigurations(BaseCommunicator.java:101) >>> at >>> com.sokrati.bulkAcnSvc.servlets.BaseCommunicator.initCommunicator(BaseCommunicator.java:57) >>> at >>> com.sokrati.restCommunicator.RestCommunicator.init(RestCommunicator.java:81) >>> at >>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206) >>> at >>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) >>> at >>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421) >>> at >>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4734) >>> at >>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) >>> at >>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) >>> at >>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) >>> at >>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) >>> at >>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) >>> at >>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) >>> at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385) >>> at >>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) >>> at >>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) >>> at >>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) >>> at >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) >>> at >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) >>> at >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) >>> at java.lang.Thread.run(Thread.java:701) >>> 23 Jun, 2014 3:53:28 PM org.apache.catalina.core.StandardContext >>> loadOnStartup >>> >>> Could this be any help ??? >>> >>> On Friday, June 20, 2014 1:03:08 AM UTC+5:30, Ray Tsang (AdWords API >>> Team) wrote: >>>> >>>> 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, or having >>>> wrong versions of the dependencies, or having duplicate jars, or other >>>> frameworks that may be interfering w/ the DI process, etc... >>>> >>>> It would be impossible to determine without a proper stacktrace. >>>> >>>> Thanks, >>>> >>>> Ray >>>> >>>> On Thursday, June 19, 2014 3:16:29 PM UTC-4, Vikash Singh wrote: >>>>> >>>>> 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) wrote: >>>>>> >>>>>> 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 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 com.google.api.ads.common.lib.exception.OAuthException; >>>>>>> import com.google.api.ads.common.lib.exception.ValidationException; >>>>>>> import com.google.api.client.auth.oauth2.Credential; >>>>>>> import >>>>>>> com.google.api.client.googleapis.auth.clientlogin.ClientLoginResponseException; >>>>>>> import com.google.api.ads.common.lib.auth.OfflineCredentials; >>>>>>> import com.google.api.ads.common.lib.auth.OfflineCredentials.Api; >>>>>>> >>>>>>> and i am using this jar set : >>>>>>> https://github.com/googleads/googleads-java-lib/releases/tag/1.27.0 >>>>>>> >>>>>>> >>>>>>> On Thursday, June 19, 2014 11:26:10 PM UTC+5:30, Ray Tsang (AdWords >>>>>>> API Team) wrote: >>>>>>>> >>>>>>>> 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 OfflineCredentials.Builder() >>>>>>>>> >>>>>>>>> .forApi(com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS) >>>>>>>>> .withClientSecrets(clientAppId, clientAppSecret) >>>>>>>>> .withRefreshToken(refreshToken) >>>>>>>>> .build() >>>>>>>>> .generateCredential(); >>>>>>>>> >>>>>>>>> >>>>>>>>> <https://lh5.googleusercontent.com/-oH5Grtem_X8/U6MDWID9fyI/AAAAAAAAAOI/GJHsDlTBbo4/s1600/NPE+oauth+api.png> >>>>>>>>> Any idea why this is happening? >>>>>>>>> >>>>>>>>> Any help appreciated. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Vikash >>>>>>>>> >>>>>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/d/optout.