My application uses the Spring dispatch server, but is configured as
demonstrated in the Spring example. I'm trying to run a unit test out
of the container, but as Spring tries to initialize the application
context, it pretty much explodes with an exception stacktrace that is
about as long as my arm (which I'll paste below).
What it seems to come down to is that an attempt is being made to
register a duplicate ActionHandlerValidatorMap with the application
context. Since AHVM is a Singleton, Spring gets a bit grumpy. However,
I wanted to ask here before filing it as a bug.
My ServerModule.java class is at this address:
https://github.com/dartmanx/mapmaker2/blob/%2720110525%27/src/main/java/org/jason/mapmaker/server/ServerModule.java
The exception stacktrace is below. Thanks!
Jason
"C:\Program Files\Java\jdk1.6.0_21\bin\java" "-Dgwt.args=-gen C:\Users
\Jason\.IntelliJIdea10\system\gwt\mapmaker2.mapmaker2d2e8351e
\mapmaker2.857769bb\test\gen -out C:\Users\Jason\.IntelliJIdea10\system
\gwt\mapmaker2.mapmaker2d2e8351e\mapmaker2.857769bb\test\www" -
Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files
\JetBrains\IntelliJ IDEA 10.0.3\bin" -Dfile.encoding=UTF-8 -classpath
"C:\Users\Jason\.m2\repository\com\google\gwt\gwt-dev\2.3.0\\gwt-
dev-2.3.0.jar;F:\Programming\Projects\mapmaker2\target\generated-
sources\annotations;F:\Programming\Projects\mapmaker2\src\test
\resources;F:\Programming\Projects\mapmaker2\src\test\java;F:
\Programming\Projects\mapmaker2\src\main\resources;F:\Programming
\Projects\mapmaker2\src\main\java;F:\Programming\Projects
\mapmaker2\target\generated-sources\gwt;C:\Program Files\JetBrains
\IntelliJ IDEA 10.0.3\lib\idea_rt.jar;C:\Program Files\JetBrains
\IntelliJ IDEA 10.0.3\plugins\junit\lib\junit-rt.jar;C:\Program Files
\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre
\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:
\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib
\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib
\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:
\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java
\jdk1.6.0_21\jre\lib\ext\sunpkcs11.jar;F:\Programming\Projects
\mapmaker2\target\test-classes;F:\Programming\Projects\mapmaker2\target
\mapmaker-1.0-SNAPSHOT\WEB-INF\classes;C:\Users\Jason\.m2\repository
\com\google\gwt\gwt-servlet\2.3.0\gwt-servlet-2.3.0.jar;C:\Users\Jason
\.m2\repository\com\google\gwt\gwt-user\2.3.0\gwt-user-2.3.0.jar;C:
\Users\Jason\.m2\repository\com\google\gwt\inject\gin
\1.5.0\gin-1.5.0.jar;C:\Users\Jason\.m2\repository\com\google\inject
\guice\3.0\guice-3.0.jar;C:\Users\Jason\.m2\repository\javax\inject
\javax.inject\1\javax.inject-1.jar;C:\Users\Jason\.m2\repository
\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\Jason
\.m2\repository\com\google\inject\extensions\guice-assistedinject\3.0-
rc2\guice-assistedinject-3.0-rc2.jar;C:\Users\Jason\.m2\repository\com
\gwtplatform\gwtp-clients-common\0.6-SNAPSHOT\gwtp-clients-common-0.6-
SNAPSHOT.jar;C:\Users\Jason\.m2\repository\com\gwtplatform\gwtp-mvp-
client\0.6-SNAPSHOT\gwtp-mvp-client-0.6-SNAPSHOT.jar;C:\Users\Jason
\.m2\repository\com\gwtplatform\gwtp-dispatch-client\0.6-SNAPSHOT\gwtp-
dispatch-client-0.6-SNAPSHOT.jar;C:\Users\Jason\.m2\repository\com
\gwtplatform\gwtp-dispatch-shared\0.6-SNAPSHOT\gwtp-dispatch-
shared-0.6-SNAPSHOT.jar;C:\Users\Jason\.m2\repository\com\gwtplatform
\gwtp-dispatch-server-spring\0.6-SNAPSHOT\gwtp-dispatch-server-
spring-0.6-SNAPSHOT.jar;C:\Users\Jason\.m2\repository\com\gwtplatform
\gwtp-dispatch-server\0.6-SNAPSHOT\gwtp-dispatch-server-0.6-
SNAPSHOT.jar;C:\Users\Jason\.m2\repository\org\springframework\spring-
core\3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-asm\3.0.5.RELEASE\spring-
asm-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\commons-logging
\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-context\3.0.5.RELEASE
\spring-context-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\org
\springframework\spring-aop\3.0.5.RELEASE\spring-
aop-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\org\springframework
\spring-beans\3.0.5.RELEASE\spring-beans-3.0.5.RELEASE.jar;C:\Users
\Jason\.m2\repository\org\springframework\spring-expression
\3.0.5.RELEASE\spring-expression-3.0.5.RELEASE.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-web\3.0.5.RELEASE\spring-
web-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\com\gwtplatform
\gwtp-processors\0.6-SNAPSHOT\gwtp-processors-0.6-SNAPSHOT.jar;C:\Users
\Jason\.m2\repository\org\springframework\spring-instrument
\3.0.5.RELEASE\spring-instrument-3.0.5.RELEASE.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-orm\3.0.5.RELEASE\spring-
orm-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\org\springframework
\spring-jdbc\3.0.5.RELEASE\spring-jdbc-3.0.5.RELEASE.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-tx\3.0.5.RELEASE\spring-
tx-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\org\springframework
\spring-webmvc\3.0.5.RELEASE\spring-webmvc-3.0.5.RELEASE.jar;C:\Users
\Jason\.m2\repository\org\springframework\spring-context-support
\3.0.5.RELEASE\spring-context-support-3.0.5.RELEASE.jar;C:\Users\Jason
\.m2\repository\org\geotools\gt-api\2.7.0\gt-api-2.7.0.jar;C:\Users
\Jason\.m2\repository\com\vividsolutions\jts\1.11\jts-1.11.jar;C:\Users
\Jason\.m2\repository\xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar;C:
\Users\Jason\.m2\repository\org\geotools\gt-referencing\2.7.0\gt-
referencing-2.7.0.jar;C:\Users\Jason\.m2\repository\java3d\vecmath
\1.3.2\vecmath-1.3.2.jar;C:\Users\Jason\.m2\repository\commons-pool
\commons-pool\1.5.4\commons-pool-1.5.4.jar;C:\Users\Jason
\.m2\repository\org\geotools\gt-metadata\2.7.0\gt-metadata-2.7.0.jar;C:
\Users\Jason\.m2\repository\org\geotools\gt-opengis\2.7.0\gt-
opengis-2.7.0.jar;C:\Users\Jason\.m2\repository\net\java\dev
\jsr-275\jsr-275\1.0-beta-2\jsr-275-1.0-beta-2.jar;C:\Users\Jason
\.m2\repository\org\geotools\gt-main\2.7.0\gt-main-2.7.0.jar;C:\Users
\Jason\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar;C:\Users\Jason
\.m2\repository\org\geotools\gt-shapefile\2.7.0\gt-
shapefile-2.7.0.jar;C:\Users\Jason\.m2\repository\org\geotools\gt-data
\2.7.0\gt-data-2.7.0.jar;C:\Users\Jason\.m2\repository\commons-
collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:
\Users\Jason\.m2\repository\org\apache\commons\commons-compress
\1.1\commons-compress-1.1.jar;C:\Users\Jason\.m2\repository\commons-
fileupload\commons-fileupload\1.2.2\commons-fileupload-1.2.2.jar;C:
\Users\Jason\.m2\repository\javax\validation\validation-api\
1.0.0.GA
\validation-api-1.0.0.GA.jar;C:\Users\Jason\.m2\repository\javax
\validation\validation-api\
1.0.0.GA\validation-api-1.0.0.GA-
sources.jar;C:\Users\Jason\.m2\repository\cglib\cglib
\2.2\cglib-2.2.jar;C:\Users\Jason\.m2\repository\asm\asm
\3.1\asm-3.1.jar;C:\Users\Jason\.m2\repository\xml-apis\xml-apis
\1.3.04\xml-apis-1.3.04.jar;C:\Users\Jason\.m2\repository\org\slf4j
\slf4j-jcl\1.6.1\slf4j-jcl-1.6.1.jar;C:\Users\Jason\.m2\repository\org
\slf4j\slf4j-api\1.6.1\slf4j-api-1.6.1.jar;C:\Users\Jason
\.m2\repository\junit\junit\4.5\junit-4.5.jar;C:\Users\Jason
\.m2\repository\org\springframework\spring-test\3.0.5.RELEASE\spring-
test-3.0.5.RELEASE.jar;C:\Users\Jason\.m2\repository\com\gwtplatform
\gwtp-tester\0.6-SNAPSHOT\gwtp-tester-0.6-SNAPSHOT.jar;C:\Users\Jason
\.m2\repository\mysql\mysql-connector-java\5.1.14\mysql-connector-
java-5.1.14.jar;C:\Users\Jason\.m2\repository\org\apache\openjpa
\openjpa-all\2.1.0\openjpa-all-2.1.0.jar"
com.intellij.rt.execution.application.AppMain
com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4
org.jason.mapmaker.server.service.TestShapefileServiceImpl,testDecompressFileListFromUrlWithGoodUrl
May 28, 2011 7:44:46 AM
org.springframework.test.context.TestContextManager
retrieveTestExecutionListeners
INFO: @TestExecutionListeners is not present for class [class
org.jason.mapmaker.server.service.TestShapefileServiceImpl]: using
defaults.
May 28, 2011 7:44:47 AM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[applicationContext.xml]
May 28, 2011 7:44:47 AM
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for
component scanning
May 28, 2011 7:44:47 AM
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for
component scanning
May 28, 2011 7:44:47 AM
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for
component scanning
May 28, 2011 7:44:47 AM
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
registerDefaultFilters
INFO: JSR-330 'javax.inject.Named' annotation found and supported for
component scanning
May 28, 2011 7:44:47 AM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing
org.springframework.context.support.GenericApplicationContext@e7b241:
startup date [Sat May 28 07:44:47 CDT 2011]; root of context hierarchy
May 28, 2011 7:44:47 AM
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
<init>
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for
autowiring
May 28, 2011 7:44:48 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@9e5c73:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,locationService,mapmakerService,mtfccService,shapefileService,borderPointRepository,locationRepository,mtfccRepository,getAvailableFeatureTypesHandler,getLocationCountHandler,getLocationsByStateAndMtfccHandler,getLocationsHandler,dispatch,secureRandomSingleton,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,loadTimeWeaver,dataSource,entityManagerFactory,persistenceAnnotation,transactionManager,org.jason.mapmaker.server.ServerModule#0,logger,com.gwtplatform.dispatch.server.spring.DispatchModule#0,getActionHandlerValidatorRegistry,getDispatch,com.gwtplatform.dispatch.server.spring.configuration.DefaultModule#0,getSecurityCookieName,getCookieFilter,getRequestProvider,getGetAvailableFeaturesCountHandler,getGetAvailableFeatureTypesHandler,getGetCountyBasedLocationsHandler,getGetLocationByGeoIdHandler,getGetLocationCountHandler,getGetLocationsByStateAndMtfccHandler,getGetMtfccTypesHandler,getGetStateBasedLocationsHandler,getGetStatesByMtfccHandler,getImportShapefileHandler,getDefaultActionValidator];
root of factory hierarchy
May 28, 2011 7:44:48 AM
org.springframework.jdbc.datasource.DriverManagerDataSource
setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
May 28, 2011 7:44:48 AM
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
createNativeEntityManagerFactory
INFO: Building JPA container EntityManagerFactory for persistence unit
'transactions-optional'
28 transactions-optional WARN [main] openjpa.Runtime - An error
occurred while registering a ClassTransformer with
PersistenceUnitInfo: name 'transactions-optional', root URL [file:/F:/
Programming/Projects/mapmaker2/target/mapmaker-1.0-SNAPSHOT/WEB-INF/
classes/]. The error has been consumed. To see it, set your
openjpa.Runtime log level to TRACE. Load-time class transformation
will not be available.
May 28, 2011 7:44:48 AM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@9e5c73:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,locationService,mapmakerService,mtfccService,shapefileService,borderPointRepository,locationRepository,mtfccRepository,getAvailableFeatureTypesHandler,getLocationCountHandler,getLocationsByStateAndMtfccHandler,getLocationsHandler,dispatch,secureRandomSingleton,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,loadTimeWeaver,dataSource,entityManagerFactory,persistenceAnnotation,transactionManager,org.jason.mapmaker.server.ServerModule#0,logger,com.gwtplatform.dispatch.server.spring.DispatchModule#0,getActionHandlerValidatorRegistry,getDispatch,com.gwtplatform.dispatch.server.spring.configuration.DefaultModule#0,getSecurityCookieName,getCookieFilter,getRequestProvider,getGetAvailableFeaturesCountHandler,getGetAvailableFeatureTypesHandler,getGetCountyBasedLocationsHandler,getGetLocationByGeoIdHandler,getGetLocationCountHandler,getGetLocationsByStateAndMtfccHandler,getGetMtfccTypesHandler,getGetStateBasedLocationsHandler,getGetStatesByMtfccHandler,getImportShapefileHandler,getDefaultActionValidator];
root of factory hierarchy
May 28, 2011 7:44:48 AM
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean destroy
INFO: Closing JPA EntityManagerFactory for persistence unit
'transactions-optional'
May 28, 2011 7:44:48 AM
org.springframework.test.context.TestContextManager
prepareTestInstance
SEVERE: Caught exception while allowing TestExecutionListener
[org.springframework.test.context.support.DependencyInjectionTestExecutionListener@b57e9a]
to prepare test instance
[org.jason.mapmaker.server.service.TestShapefileServiceImpl@18adae2]
java.lang.IllegalStateException: Failed to load ApplicationContext
at
org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:
308)
at
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:
109)
at
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:
75)
at
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:
321)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:
220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner
$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:
303)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:
240)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:
61)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:
70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:
180)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:
97)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:
192)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:
60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:
115)
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'dispatch' defined in URL [jar:file:/C:/
Users/Jason/.m2/repository/com/gwtplatform/gwtp-dispatch-server-spring/
0.6-SNAPSHOT/gwtp-dispatch-server-spring-0.6-SNAPSHOT.jar!/com/
gwtplatform/dispatch/server/spring/DispatchServiceImpl.class]:
Unsatisfied dependency expressed through constructor argument with
index 1 of type [com.gwtplatform.dispatch.server.Dispatch]: : Error
creating bean with name 'getDispatch' defined in class path resource
[com/gwtplatform/dispatch/server/spring/DispatchModule.class]:
Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getDispatch' defined in class path resource
[com/gwtplatform/dispatch/server/spring/DispatchModule.class]:
Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
425)
at
org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:
84)
at
org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:
1)
at
org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:
280)
at
org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:
304)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'getDispatch' defined in class path
resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
581)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
983)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
879)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:
844)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:
786)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:
703)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:
795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
723)
... 43 more
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
157)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
570)
... 56 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
331)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.instantiate(SpringUtils.java:
52)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.getOrCreate(SpringUtils.java:
44)
at
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch(DispatchModule.java:
73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
145)
... 57 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
581)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
983)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
879)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
194)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:
1079)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
266)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:
844)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:
786)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:
703)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:
795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
723)
... 71 more
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
157)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
570)
... 87 more
Caused by: java.lang.IllegalStateException: Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.registerSingleton(DefaultSingletonBeanRegistry.java:
124)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.registerBean(SpringUtils.java:
61)
at
com.gwtplatform.dispatch.server.spring.HandlerModule.bindHandler(HandlerModule.java:
42)
at
org.jason.mapmaker.server.ServerModule.configureHandlers(ServerModule.java:
32)
at
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry(DispatchModule.java:
59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
145)
... 88 more
java.lang.IllegalStateException: Failed to load ApplicationContext
at
org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:
308)
at
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:
109)
at
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:
75)
at
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:
321)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:
220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner
$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:
303)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:
240)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:
61)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:
70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:
180)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:
97)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:
192)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:
60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:
115)
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'dispatch' defined in URL [jar:file:/C:/
Users/Jason/.m2/repository/com/gwtplatform/gwtp-dispatch-server-spring/
0.6-SNAPSHOT/gwtp-dispatch-server-spring-0.6-SNAPSHOT.jar!/com/
gwtplatform/dispatch/server/spring/DispatchServiceImpl.class]:
Unsatisfied dependency expressed through constructor argument with
index 1 of type [com.gwtplatform.dispatch.server.Dispatch]: : Error
creating bean with name 'getDispatch' defined in class path resource
[com/gwtplatform/dispatch/server/spring/DispatchModule.class]:
Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getDispatch' defined in class path resource
[com/gwtplatform/dispatch/server/spring/DispatchModule.class]:
Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
425)
at
org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:
84)
at
org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:
1)
at
org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:
280)
at
org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:
304)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'getDispatch' defined in class path
resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
581)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
983)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
879)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:
844)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:
786)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:
703)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:
795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
723)
... 43 more
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public com.gwtplatform.dispatch.server.Dispatch
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch()]
threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
157)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
570)
... 56 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'com.gwtplatform.dispatch.server.spring.DispatchImpl': Unsatisfied
dependency expressed through constructor argument with index 0 of type
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry]: :
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'getActionHandlerValidatorRegistry' defined in
class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
331)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.instantiate(SpringUtils.java:
52)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.getOrCreate(SpringUtils.java:
44)
at
com.gwtplatform.dispatch.server.spring.DispatchModule.getDispatch(DispatchModule.java:
73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
145)
... 57 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'getActionHandlerValidatorRegistry'
defined in class path resource [com/gwtplatform/dispatch/server/spring/
DispatchModule.class]: Instantiation of bean failed; nested exception
is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
581)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
983)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
879)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
194)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:
1079)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
266)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:
844)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:
786)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:
703)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:
795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
723)
... 71 more
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public
com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorRegistry
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry()]
threw exception; nested exception is java.lang.IllegalStateException:
Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
157)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
570)
... 87 more
Caused by: java.lang.IllegalStateException: Could not register object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@9c82f4]
under bean name
'com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl#0':
there is already object
[com.gwtplatform.dispatch.server.actionhandlervalidator.ActionHandlerValidatorMapImpl@159780d]
bound
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.registerSingleton(DefaultSingletonBeanRegistry.java:
124)
at
com.gwtplatform.dispatch.server.spring.utils.SpringUtils.registerBean(SpringUtils.java:
61)
at
com.gwtplatform.dispatch.server.spring.HandlerModule.bindHandler(HandlerModule.java:
42)
at
org.jason.mapmaker.server.ServerModule.configureHandlers(ServerModule.java:
32)
at
com.gwtplatform.dispatch.server.spring.DispatchModule.getActionHandlerValidatorRegistry(DispatchModule.java:
59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
145)
... 88 more
Process finished with exit code -1