java.lang.IllegalStateException: Failed to load ApplicationContext

Spring JIRA | Johannes Smutny | 4 years ago
  1. 0

    Following stacktrace appears if the bean with id "documentAggregatorService" (please see attached file "meta-test-context.xml") is instantiated with the help of mockito. If the same bean would be instantiated by the constructor of class DocumentAggregatorServiceImpl the AC's start-up crash won't happen. Please find also attached the relevant interface "DocumentAggregatorService" and it's implementation "DocumentAggregatorServiceImpl". The attached test starts up the whole thing. Here is the stacktrace: {code} 2013-04-03 16:56:12,830 main INFO [o.s.i.c.x.DefaultConfiguringBeanFactoryPostProcessor] No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created. 2013-04-03 16:56:12,830 main INFO [o.s.i.c.x.DefaultConfiguringBeanFactoryPostProcessor] No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created. 2013-04-03 16:56:13,111 main DEBUG [o.s.i.util.MessagingMethodInvokerHelper] Method [public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(java.lang.Class[],java.lang.Object[],org.mockito.cglib.proxy.Callback[])] is not eligible for Message handling. java.lang.IllegalArgumentException: Found more than one parameter type candidate: [java.lang.Class[]] and [java.lang.Object[]] at org.springframework.util.Assert.isNull(Assert.java:89) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.setExclusiveTargetParameterType(MessagingMethodInvokerHelper.java:624) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.generateExpression(MessagingMethodInvokerHelper.java:519) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.<init>(MessagingMethodInvokerHelper.java:440) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$1.doWith(MessagingMethodInvokerHelper.java:302) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:473) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget(MessagingMethodInvokerHelper.java:276) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:169) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:121) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageListProcessor.<init>(MethodInvokingMessageListProcessor.java:57) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor.<init>(MethodInvokingMessageGroupProcessor.java:48) [spring-integration-core-2.2.2.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.7.0_09] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [na:1.7.0_09] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.7.0_09] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [na:1.7.0_09] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) [spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) [spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [junit-4.9.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:292) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na] 2013-04-03 16:56:13,112 main ERROR [o.s.test.context.TestContextManager] Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1bf3708] to prepare test instance [at.gv.brz.profit.documentdispatcher.service.MetaAggregateDocumentFlowTest@b62996] java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [junit-4.9.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:292) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.aggregator.AggregatingMessageHandler#0': Cannot create inner bean '(inner bean)' of type [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 24 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 44 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 49 common frames omitted Caused by: java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.util.Assert.isNull(Assert.java:89) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget(MessagingMethodInvokerHelper.java:354) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:169) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:121) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageListProcessor.<init>(MethodInvokingMessageListProcessor.java:57) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor.<init>(MethodInvokingMessageGroupProcessor.java:48) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_09] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_09] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_09] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) ~[na:1.7.0_09] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 51 common frames omitted {code}

    Spring JIRA | 4 years ago | Johannes Smutny
    java.lang.IllegalStateException: Failed to load ApplicationContext
  2. 0

    Following stacktrace appears if the bean with id "documentAggregatorService" (please see attached file "meta-test-context.xml") is instantiated with the help of mockito. If the same bean would be instantiated by the constructor of class DocumentAggregatorServiceImpl the AC's start-up crash won't happen. Please find also attached the relevant interface "DocumentAggregatorService" and it's implementation "DocumentAggregatorServiceImpl". The attached test starts up the whole thing. Here is the stacktrace: {code} 2013-04-03 16:56:12,830 main INFO [o.s.i.c.x.DefaultConfiguringBeanFactoryPostProcessor] No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created. 2013-04-03 16:56:12,830 main INFO [o.s.i.c.x.DefaultConfiguringBeanFactoryPostProcessor] No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created. 2013-04-03 16:56:13,111 main DEBUG [o.s.i.util.MessagingMethodInvokerHelper] Method [public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(java.lang.Class[],java.lang.Object[],org.mockito.cglib.proxy.Callback[])] is not eligible for Message handling. java.lang.IllegalArgumentException: Found more than one parameter type candidate: [java.lang.Class[]] and [java.lang.Object[]] at org.springframework.util.Assert.isNull(Assert.java:89) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.setExclusiveTargetParameterType(MessagingMethodInvokerHelper.java:624) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.generateExpression(MessagingMethodInvokerHelper.java:519) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$HandlerMethod.<init>(MessagingMethodInvokerHelper.java:440) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper$1.doWith(MessagingMethodInvokerHelper.java:302) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:473) [spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget(MessagingMethodInvokerHelper.java:276) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:169) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:121) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageListProcessor.<init>(MethodInvokingMessageListProcessor.java:57) [spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor.<init>(MethodInvokingMessageGroupProcessor.java:48) [spring-integration-core-2.2.2.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.7.0_09] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [na:1.7.0_09] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.7.0_09] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [na:1.7.0_09] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) [spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) [spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) [spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [junit-4.9.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:292) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na] 2013-04-03 16:56:13,112 main ERROR [o.s.test.context.TestContextManager] Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1bf3708] to prepare test instance [at.gv.brz.profit.documentdispatcher.service.MetaAggregateDocumentFlowTest@b62996] java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [junit-4.9.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [junit-4.9.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [junit-4.9.jar:na] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:292) [junit-4.9.jar:na] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.aggregator.AggregatingMessageHandler#0': Cannot create inner bean '(inner bean)' of type [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) ~[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 24 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 44 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 49 common frames omitted Caused by: java.lang.IllegalArgumentException: Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)] at org.springframework.util.Assert.isNull(Assert.java:89) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget(MessagingMethodInvokerHelper.java:354) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:169) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:121) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageListProcessor.<init>(MethodInvokingMessageListProcessor.java:57) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor.<init>(MethodInvokingMessageGroupProcessor.java:48) ~[spring-integration-core-2.2.2.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_09] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_09] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_09] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) ~[na:1.7.0_09] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 51 common frames omitted {code}

    Spring JIRA | 4 years ago | Johannes Smutny
    java.lang.IllegalStateException: Failed to load ApplicationContext
  3. 0

    Configuration Of JMS Connection Factories For Spring Batch Partitioning On JBoss 5.2

    Stack Overflow | 2 years ago | Mike Rother
    java.lang.IllegalArgumentException: Found more than one parameter type candidate: [org.springframework.batch.core.partition.StepExecutionSplitter] and [org.springframework.batch.core.StepExecution]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Encountering IllegalArgumentException in MessageChannelPartitionHandler for spring batch remote partitioning

    Stack Overflow | 2 years ago | Dobby
    java.lang.IllegalArgumentException: Found more than one parameter type candidate: [org.springframework.batch.core.partition.StepExecutionSplitter] and [org.springframework.batch.core.StepExecution]
  6. 0

    error running JUNIT tests in spring using @ContextConfiguration

    Stack Overflow | 2 years ago | Mark1234
    java.lang.IllegalArgumentException: Found ambiguous parameter type [class java.lang.Void] for method match: [public static int[] com.abc.wss.bes.portal.integration.data.portal.DataTransformer.__cobertura_get_and_reset_counters(), public static void com.abc.wss.bes.portal.integration.data.portal.DataTransformer.__cobertura_classmap_0(com.coverity.capture.cobertura.coveragedata.LightClassmapListener)]

  1. IP99zilla 1 times, last 9 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Found ambiguous parameter type [interface java.util.List] for method match: [public static org.mockito.cglib.proxy.MethodProxy at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.CGLIB$findMethodProxy(org.mockito.cglib.core.Signature), public org.mockito.cglib.proxy.Callback at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.getCallback(int), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback[]), public final boolean at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.release(java.util.List), public java.lang.Object at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.newInstance(org.mockito.cglib.proxy.Callback), public final java.lang.String at.gv.brz.profit.documentdispatcher.service.DocumentAggregatorService$$EnhancerByMockitoWithCGLIB$$1b99f9e0.correlateBy(at.gv.brz.profit.documentdispatcher.bom.Document)]

    at org.springframework.util.Assert.isNull()
  2. Spring Core
    Assert.isNull
    1. org.springframework.util.Assert.isNull(Assert.java:89)[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    1 frame
  3. Spring Integration Core
    MethodInvokingMessageGroupProcessor.<init>
    1. org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget(MessagingMethodInvokerHelper.java:354)[spring-integration-core-2.2.2.RELEASE.jar:na]
    2. org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:169)[spring-integration-core-2.2.2.RELEASE.jar:na]
    3. org.springframework.integration.util.MessagingMethodInvokerHelper.<init>(MessagingMethodInvokerHelper.java:121)[spring-integration-core-2.2.2.RELEASE.jar:na]
    4. org.springframework.integration.aggregator.MethodInvokingMessageListProcessor.<init>(MethodInvokingMessageListProcessor.java:57)[spring-integration-core-2.2.2.RELEASE.jar:na]
    5. org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor.<init>(MethodInvokingMessageGroupProcessor.java:48)[spring-integration-core-2.2.2.RELEASE.jar:na]
    5 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_09]
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[na:1.7.0_09]
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.7.0_09]
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)[na:1.7.0_09]
    4 frames
  5. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    3. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    8. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    9. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    10. org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    11. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    16. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    17. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    18. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    19. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    20. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    20 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2 frames
  7. Spring TestContext
    SpringJUnit4ClassRunner$1.runReflectiveCall
    1. org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2. org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    3. org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    4. org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    5. org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    6. org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    7. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    8. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    9. org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    10. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    11. org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    11 frames
  8. JUnit
    ReflectiveCallable.run
    1. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)[junit-4.9.jar:na]
    1 frame
  9. Spring TestContext
    SpringJUnit4ClassRunner.runChild
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    3 frames
  10. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)[junit-4.9.jar:na]
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)[junit-4.9.jar:na]
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)[junit-4.9.jar:na]
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)[junit-4.9.jar:na]
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)[junit-4.9.jar:na]
    5 frames
  11. Spring TestContext
    RunAfterTestClassCallbacks.evaluate
    1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    2 frames
  12. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:292)[junit-4.9.jar:na]
    1 frame
  13. Spring TestContext
    SpringJUnit4ClassRunner.run
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)[spring-test-3.2.0.RELEASE.jar:3.2.0.RELEASE]
    1 frame
  14. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)[.cp/:na]
    1 frame
  15. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)[.cp/:na]
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)[.cp/:na]
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)[.cp/:na]
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)[.cp/:na]
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)[.cp/:na]
    5 frames