camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MichaelAtSAG <mebevilac...@gmail.com>
Subject Re: Error with transform
Date Thu, 18 Sep 2014 16:35:27 GMT
I refactored using try..catch and it doesnt catch the exception:

Is the exception correct?

<route xmlns="http://camel.apache.org/schema/spring"
id="STEP3_TweetReceivedFromJMS">
        <from
uri="nervJMS1:topic:Event::WebM::Communication::Twitter::1.1::TweetReceived"
id="NERVJMS1"/>
        <doTry>
            <transform>
                <simple>JMS Channel processing tweet event from
@${header.Status$User$ScreenName} at ${header.$Event$Start}</simple>
            </transform>
            <doCatch>
               
<exception>java.lang.ArrayIndexOutOfBoundsException</exception>
                <transform>
                    <simple>JMS Channel processing tweet event from @noValue
at Event$Start}</simple>
                </transform>
            </doCatch>
        </doTry>
        <to uri="webappWebsocketNERVEndpointOut"/>
    </route>

exception:
[Camel (STEP1_TwitterProducer) thread #11 - ThroughputLogger]
NERVTwitterWebSocketMain                 INFO  Received: 14 new messages,
with total 709 so far. Last group took: 10003 millis which is: 1.4 messages
per second. average: 1.234
[Camel (STEP3_EDATweetReceivedFromJMS) thread #10 -
JmsConsumer[Event::WebM::Communication::Twitter::1.1::TweetReceived]]
EndpointMessageListener                  WARN  Execution of JMS message
listener failed. Caused by: [org.apache.camel.RuntimeCamelException -
java.lang.ArrayIndexOutOfBoundsException]
org.apache.camel.RuntimeCamelException:
java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
	at
org.apache.camel.component.jms.EndpointMessageListener$EndpointMessageListenerAsyncCallback.done(EndpointMessageListener.java:186)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:107)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1096)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1088)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:985)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException





--
View this message in context: http://camel.465427.n5.nabble.com/Error-with-transform-tp5756657p5756708.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message