We have 2 Java, Hibernate, Spring v2.5.6 web applications. In v2.4.1 both 
work fine. But when changing the version to 2.5.0 and AdWords API version 
201509, one project boots with Maven 3.3.3 and Jetty version 
9.2.11.v20150529. But the other one doesn't. Both uses Java 1.7.0_71

        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>adwords-axis</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.3.1.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-annotations</artifactId>
            <version>3.4.0.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.4.0.GA</version>
        </dependency>

The stack dumps are (partially)

[INFO] jetty-9.2.11.v20150529
[INFO] Initializing Spring root WebApplicationContext
2015-10-20 13:54:59,884 ERROR 
[org.springframework.web.context.ContextLoader] - <Context initialization 
failed>
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'accountService': Autowiring of fields failed; nested 
exception is org.springframework.beans.factory.BeanCreationException: Could 
not autowire field: 
com.adxsearch.core.server.service.account.ListManagedAccounts 
com.adxsearch.core.server.facade.AccountServiceImpl.listManagedAccounts; 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'listManagedAccounts': Autowiring of fields failed; nested 
exception is org.springframework.beans.factory.BeanCreationException: Could 
not autowire field: 
com.adxsearch.core.server.service.publish.PublisherService 
com.adxsearch.core.server.service.account.ListManagedAccountsImpl.publisherService;
 
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'publisherService': Autowiring of fields 
failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: com.adxsearch.core.server.service.publish.DeployService 
com.adxsearch.core.server.service.publish.PublisherServiceImpl.deployService; 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'deployServiceImpl': Autowiring of fields failed; nested 
exception is org.springframework.beans.factory.BeanCreationException: Could 
not autowire field: 
com.adxsearch.core.server.service.publish.google.adwords.NewGoogleDeploySequencerImpl
 
com.adxsearch.core.server.service.publish.DeployServiceImpl.googleDeploySequencer;
 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'newGoogleDeploySequencer': Autowiring of fields failed; 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: 
com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkCampaignDeployer
 
com.adxsearch.core.server.service.publish.google.GoogleDeploySequencerImpl.googleBulkCampaignDeployer;
 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'googleBulkCampaignDeployer': Autowiring of fields failed; 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: 
com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkAdDeployer 
com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkCampaignDeployerImpl.googleBulkAdDeployer;
 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'googleBulkAdDeployer' defined in file 
[C:\dev\STS_Workspace_3.6.1\adxcoreScand\target\classes\com\adxsearch\core\server\service\publish\google\bulk\GoogleBulkAdDeployerImpl.class]:
 
Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class 
[com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkAdDeployerImpl]:
 
Constructor threw exception; nested exception is 
java.lang.ExceptionInInitializerError
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

Caused by: com.google.inject.CreationException: Guice creation errors:

1) Multibinder is not initialized
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:44)
  while locating 
java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct,
 
  
com.google.inject.Provider<com.google.api.ads.common.lib.client.HeaderHandler<com.google.api.ads.adwords.lib.client.AdWordsSession,
 
com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor>>>>
  at 
com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown
 
Source)
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:44)

2) Multibinder is not initialized
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
  while locating 
java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct,
 
com.google.inject.Provider<java.lang.String>>>
  at 
com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown
 
Source)
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)

3) Error injecting method, java.lang.NoSuchMethodError: 
com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;
  at 
com.google.inject.multibindings.Multibinder$RealMultibinder.initialize(Unknown 
Source)
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
Caused by: java.lang.NoSuchMethodError: 
com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;

4) Error injecting method, java.lang.NoSuchMethodError: 
com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;
  at 
com.google.inject.multibindings.Multibinder$RealMultibinder.initialize(Unknown 
Source)
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
  while locating 
java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct,
 
com.google.inject.Provider<java.lang.String>>>
  at 
com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown
 
Source)
  at 
com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
Caused by: java.lang.NoSuchMethodError: 
com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a27fc938-76f9-4bb9-b00c-bad4bdaeb6ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to