Foldering integration test error while splitting out WFB Foldering
We are working on setting up WFB Foldering as a separate project and moving the WFB specific code, unit tests, integration tests, and endpoint tests to that project. We can successfully execute the unit tests and integration tests in Eclipse, but when we execute the integration tests via the developer ant script, we get the error below. Has anyone seen an error like this before when working with the integration tests? 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:211) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30) at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in class path resource [FolderingV3-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner bean 'com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor#0' of type [com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor#0' defined in class path resource [FolderingV3-servlet.xml]: Cannot resolve reference to bean 'controllerMethodResolver' while setting bean property 'controllerMethodResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerMethodResolver' defined in class path resource [application-security-context.xml]: Cannot resolve reference to bean 'handlerMapping' while setting bean property 'handlerMapping'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMapping' defined in class path resource [application-security-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Cannot create inner bean 'com.trgr.cobalt.foldering.web.filter.CacheInterceptor#0' of type [com.trgr.cobalt.foldering.web.filter.CacheInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.trgr.cobalt.foldering.web.filter.CacheInterceptor#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.trgr.cobalt.foldering.web.cache.AnnotatedResourceFinder com.trgr.cobalt.foldering.web.filter.CacheInterceptor.annotatedResourceFinder; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'annotatedResourceFinder' defined in file [C:\devten\projects\WFBFoldering\tmp\platformBinaries\WebContent\WEB-INF\classes\com\trgr\cobalt\foldering\web\cache\AnnotatedResourceFinder.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientCaseManagerController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.trgr.cobalt.foldering.service.CategoryService com.trgr.cobalt.foldering.wfb.feature.clientcase.communication.ClientCaseManagerController.categoryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.trgr.cobalt.foldering.dao.CategoryDAO com.trgr.cobalt.foldering.service.impl.CategoryServiceImpl.categoryDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'categoryDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.trgr.cobalt.foldering.dao.impl.BaseUserDataDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDataSessionFactory' defined in class path resource [application-database-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Key: user1 is not a valid UUID Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#0': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) 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) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner bean 'com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor#0' of type [com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.trgr.cobalt.infrastructure.spring.deprecation.DeprecatedEndpointInterceptor#0' defined in class path resource [FolderingV3-servlet.xml]: Cannot resolve reference to bean 'controllerMethodResolver' while setting bean property 'controllerMethodResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerMethodResolver' defined in class path resource [application-security-context.xml]: Cannot resolve reference to bean 'handlerMapping' while setting bean property 'handlerMapping'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMapping' defined in class path resource [application-security-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Cannot create inner bean 'com.trgr.cobalt.foldering.web.filter.CacheInterceptor#0' of type [com.trgr.cobalt.foldering.web.filter.CacheInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.trgr.cobalt.foldering.web.filter.CacheInterceptor#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.trgr.cobalt.foldering.web.cache.AnnotatedResourceFinder com.trgr.cobalt.foldering.web.filter.CacheInterceptor.annotatedResourceFinder; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'annotatedResourceFinder' defined in file
Tagged:
1
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛