activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brendan Long <bren...@realgo.com>
Subject Execution of JMS message listener failed, and no ErrorHandler has been set.
Date Fri, 20 May 2011 15:34:12 GMT
Hi,

I'm just wondering if there's any way to get rid of this message:

WARN  org.apache.camel.component.jms.JmsMessageListenerContainer -
Execution of JMS message listener failed, and no ErrorHandler has been set.

I tried setting an error handler on my ActiveMQComponent:

<bean id="exampleExceptionListener" class="com.example.ExceptionListener"/>
<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
    <property name="configuration" ref="jmsMediaTransferConfig"/>
    <property name="exceptionListener" ref="exampleExceptionListener"/>
</bean>

That didn't seem to have any effect. I also have a LoggingErrorHandler
for the route (with its own annoying stack traces), and I tried an empty
<onException>, but that didn't work either:

<errorHandler id="camelErrorHandler" logName="mediaTransfer"
    type="LoggingErrorHandler" level="WARN"
xmlns="http://camel.apache.org/schema/spring">
</errorHandler>

<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring"
    errorHandlerRef="camelErrorHandler">
    <endpoint id="source" uri="activemq:queue:thing1"/>
    <endpoint id="destination" uri="file:/invalid/path"/>
    <route>
        <from ref="source"/>
        <transacted/>
        <process ref="aProcessor"/>
        <to ref="destination"/>
        <onException>
            <exception>java.lang.Exception</exception>
            <stop/>
        </onException>
    </route>
</camelContext>

Is there something I'm missing or does this option just not exist?

Mime
View raw message