camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Schwarz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1546) Exception handler is not applied for aggregate component
Date Mon, 20 Apr 2009 09:09:32 GMT

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

Frank Schwarz commented on CAMEL-1546:
--------------------------------------

This configuration is not possible, as there has to be a processor within <aggregate>

Caused by: java.lang.IllegalArgumentException: processor must be specified
        at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:170)
        at org.apache.camel.processor.BatchProcessor.<init>(BatchProcessor.java:55)
        at org.apache.camel.processor.Aggregator.<init>(Aggregator.java:59)
        at org.apache.camel.processor.Aggregator.<init>(Aggregator.java:49)
        at org.apache.camel.model.AggregateDefinition.createAggregator(AggregateDefinition.java:158)
        at org.apache.camel.model.AggregateDefinition.createProcessor(AggregateDefinition.java:111)
        at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:2044)
        at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:95)
        at org.apache.camel.model.InterceptorDefinition.createProcessor(InterceptorDefinition.java:67)
        at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:1939)
        at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:99)
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:309)
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:121)
        at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:481)
        at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:777)
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:759)
        at org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
        at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
        at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
        at org.jboss.spring.factory.NamedXmlApplicationContext.<init>(NamedXmlApplicationContext.java:58)
        at org.jboss.spring.factory.NamedXmlApplicationContext.<init>(NamedXmlApplicationContext.java:47)
        at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:41)
        at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:44)
        at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:72)
        at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:58)
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
        ... 27 more

> Exception handler is not applied for aggregate component
> --------------------------------------------------------
>
>                 Key: CAMEL-1546
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1546
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0-M1
>            Reporter: Frank Schwarz
>
> <camelContext xmlns="http://camel.apache.org/schema/spring">
> 	<onException>
> 		<exception>java.lang.Exception</exception>
> 		<!-- no retry, just dump the error -->
> 		<handled><constant>true</constant></handled>
> 		<convertBodyTo type="java.lang.String" />
> 		<to uri="bean:ErrorMessageTransformProcessor" />
> 		<to uri="freemarker:error.ftl" />
> 		<to uri="file:///C:/temp/camel/err" />
> 	</onException>
> ...
> 	<route>
> 		<from uri="jms:queue:InQueue"/>
> 		<aggregate batchTimeout="5000" strategyRef="MyAggregationStrategy">
> 			<correlationExpression>      
> 				<header>MyCorrelationId</header>
> 			</correlationExpression>
> 			<to uri="bean:AggregatedItemsTransformProcessor" /> ***
> 			<to uri="jms:queue:OutQueue" />
> 		</aggregate>
> 	</route>
> </camel>
> If in the bean *** occurs an exception, nothing happens. Debugging shows that the exception
handler is not triggered. Nothing is logged.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message