ethod doesn't do it.
Thanks for the help though.
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-handle-exception-within-consumer-tp5767841p5767877.html
Sent from the Camel - Users mailing list archive at Nabble.com.
handle exception within consumer?
Have you tried catching RuntimeCamelException while making a call.
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html
CONFIDENTIALITY NOTICE:
The information in this message, and any attachment, is intended for the
sole
Have you tried catching RuntimeCamelException while making a call.
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html
27.n5.nabble.com/How-to-handle-exception-within-consumer-tp5767841.html
Sent from the Camel - Users mailing list archive at Nabble.com.
7.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739381p5739525.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ttp://mq.host.name)}" />
>
>
>
>
> />
>
>
> ** Also I think it will be useful if I share the DB connection as well **
>
>
>
>
>
> destroy-method="close">
> />
>
>
>
>
>
> 8
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739381p5739494.html
> Sent from the Camel - Users mailing list archive at Nabble.com
> (http://Nabble.com).
-able-to-handle-exception-tp5739381p5739494.html
Sent from the Camel - Users mailing list archive at Nabble.com.
context:
http://camel.465427.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739381p5739469.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ger
> (http://www.sbrs.mySystem.util.InLogger)"/>
>
>
>
> @someExpression and @someExpression1
> loggingLevel="INFO"
> logName="com.bbb.www.sbrs.mySystem.util.InLogger
> (http://www.sbrs.mySystem.util.InLogger)"/>
>
>
>
>
&g
ttp://camel.465427.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739381.html
Sent from the Camel - Users mailing list archive at Nabble.com.
heavily depend on JmsTimeStamp of the exchange header. The
route is mentioned below.
Any suggestion would be helpful.
--
View this message in context:
http://camel.465427.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739379p5739380.html
Sent from the Camel - Users mailing list
ssException
--
View this message in context:
http://camel.465427.n5.nabble.com/My-camel-route-not-able-to-handle-exception-tp5739379.html
Se
Thank you! It really helped to solve the problem.
--
View this message in context:
http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731528.html
Sent from the Camel - Users mailing list archive at Nabble.com.
gt;>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731319.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Cl
lem :
>
> java.lang.AssertionError: mock://log:send Received message count. Expected:
> <4> but was: <28>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731319.html
> Sent from the Camel - Users
I tried it on a camel 2.11.0 , but there is the same problem :
java.lang.AssertionError: mock://log:send Received message count. Expected:
<4> but was: <28>
--
View this message in context:
http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p
int me please where to see to figure out cause of issue?
>
> Thank you!
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731251.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
is invalid.
Claus, point me please where to see to figure out cause of issue?
Thank you!
--
View this message in context:
http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731251.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Change. But same result.
--
View this message in context:
http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073p5731075.html
Sent from the Camel - Users mailing list archive at Nabble.com.
tely because of jms
> transaction redelivery, and dont send it to the deadLetterUri. If i remove
> onException it works fine , but without redelivery. Is it a bug or wrong
> configuration ?
> redeliveryTest.zip
> <http://camel.465427.n5.nabble.com/file/n5731073/redeliveryTest.zip>
age in context:
http://camel.465427.n5.nabble.com/DeadLetterChanel-does-not-handle-exception-tp5731073.html
Sent from the Camel - Users mailing list archive at Nabble.com.
xchange[null]
>> >
>> > In my log
>> >
>> > I have play with :
>> >
>> > onException(PredicateValidationException.class).handled(true / false)
>> > .to("mock:err") .end();
>> >
>> > If I put false I continue to have log error and if I put true my
>> > direct:erreurFormatAEDFonctionnelZone is not called ...
>> >
>> >
>> >
>> > Any idea of how solve this ?
>> >
>> > Thanks !
>>
>>
>>
>>
>>
>> -
>> Ben O'Day
>> IT Consultant -http://consulting-notes.com
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Handle-exception-tp5728590p5728592.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
onException.class).handled(true / false)
> .to("mock:err") .end();
>
> If I put false I continue to have log error and if I put true my
> direct:erreurFormatAEDFonctionnelZone is not called ...
>
>
>
> Any idea of how solve this ?
>
> Thanks !
-
Ben O'Day
IT Consultant -http://consulting-notes.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Handle-exception-tp5728590p5728592.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanks Willem I used "seda:error" for deadletterurl and it works. Thanks for
your help Willem and Claus...
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can-I-handle-exception-message-tp5051151p5051307.html
Sent from the Camel - Users mailing list archive at Nabble.com.
DEE");
exchange.getIn().setHeader("IB.messageName", "rmsPlstAssign");
}
}
Result : HATAA :null
I NEED EXCEPTION MESSAGE... Please help me :(
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can-I-handle-exception-m
ion {
> if (1==1) throw new Exception("BENDEE");
> exchange.getIn().setHeader("IB.messageName", "rmsPlstAssign");
> }
>
> }
>
> Result : HATAA :null
>
> I NEED EXCEPTION MESSAGE... Please help me :(
>
&g
e help me :(
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can-I-handle-exception-message-tp5051151p5051266.html
Sent from the Camel - Users mailing list archive at Nabble.com.
tem.out.println("Y
:"+exchange.getIn().getHeader(Exchange.EXCEPTION_CAUGHT));
}
}
But all of them is null... I need to write Exception Message... How can I
reach exception message in Dead Queue. Thanks...
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can
tIn().getHeader(Exchange.EXCEPTION_CAUGHT));
>
> }
>
> }
>
>
> But all of them is null... I need to write Exception Message... How can I
> reach exception message in Dead Queue. Thanks...
>
>
> --
> View this message in context:
> http://camel.465427.n5.nab
hange.getIn().isFault());
System.out.println("Y
:"+exchange.getIn().getHeader(Exchange.EXCEPTION_CAUGHT));
}
}
But all of them is null... I need to write Exception Message... How can I
reach exception message in Dead Queue. Thanks...
--
View this m
ext:
> http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p4833441.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p4833441.html
Sent from the Camel - Users mailing list archive at Nabble.com.
?
Rick Morris
--
View this message in context:
http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p3388258.html
Sent from the Camel - Users mailing list archive at Nabble.com.
this message in context:
http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p3380761.html
Sent from the Camel - Users mailing list archive at Nabble.com.
On 2/10/2011 9:41 AM, rmorris wrote:
I think I've found a similar case when the exception occurs within a
split().method()
In this case, the exception is thrown inside the method() and doesn't make
it to the onException() handler.
Adding a .onException() into the direct://testsplitter route does
difference.
Is this indeed a bug?
http://camel.465427.n5.nabble.com/file/n3379965/SplitterTest2.java
SplitterTest2.java
Rick Morris
--
View this message in context:
http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p3379965.html
Sent from th
gt; --
> View this message in context:
> http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p3286043.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-
FuseSource
Email: cib...@
/file/n3286043/SplitterTest.java
SplitterTest.java
--
View this message in context:
http://camel.465427.n5.nabble.com/Cannot-handle-Exception-thrown-from-Splitter-Expression-tp3286043p3286043.html
Sent from the Camel - Users mailing list archive at Nabble.com.
38 matches
Mail list logo