You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2011/09/16 17:12:09 UTC

[jira] [Commented] (CAMEL-4458) Test failure in SpringAsyncDeadLetterChannelExecutorServiceRefTest : IllegalArgumentException: ExecutorServiceRef myAsyncPool not found in registry

    [ https://issues.apache.org/jira/browse/CAMEL-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106508#comment-13106508 ] 

Christian Schneider commented on CAMEL-4458:
--------------------------------------------

The thread pool is only regisatered in the ExecutorServiceManager not in the camelContext registry (spring context in that case). So the lookup in the regsitry finds no ExecutorService.

This raises some questions:
Why is this test failure not reported in Jenkins?
Should a ThreadPool defined in spring inside the camel context also be available with an executorServiceRef or only beans from the registry?


> Test failure in SpringAsyncDeadLetterChannelExecutorServiceRefTest : IllegalArgumentException: ExecutorServiceRef myAsyncPool not found in registry
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4458
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4458
>             Project: Camel
>          Issue Type: Test
>            Reporter: Christian Schneider
>
> org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: ExecutorServiceRef myAsyncPool not found in registry.
> 	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1164)
> 	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
> 	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
> 	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
> 	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
> 	at org.apache.camel.spring.processor.async.SpringAsyncDeadLetterChannelExecutorServiceRefTest.createApplicationContext(SpringAsyncDeadLetterChannelExecutorServiceRefTest.java:31)
> 	at org.apache.camel.spring.SpringTestSupport.setUp(SpringTestSupport.java:54)
> 	at junit.framework.TestCase.runBare(TestCase.java:132)
> 	at org.apache.camel.TestSupport.runBare(TestSupport.java:59)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.IllegalArgumentException: ExecutorServiceRef myAsyncPool not found in registry.
> 	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:998)
> 	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
> 	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:150)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:82)
> 	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:922)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:82)
> 	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:922)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:444)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:986)
> 	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
> 	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:150)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
> 	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:70)
> 	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
> 	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:246)
> 	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:143)
> 	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1859)
> 	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1787)
> 	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1580)
> 	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1472)
> 	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1360)
> 	at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1338)
> 	at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)
> 	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
> 	... 24 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira