Hi

You can turn this off on the error handler. It has many options to
turn this on | off.

You set LogStackTrace = false
http://camel.apache.org/redeliverypolicy.html

On Mon, Mar 9, 2015 at 10:18 AM, Desu, Kishore Kumar
<kishorekumar.d...@mckesson.com> wrote:
> Hi,
>
> Below route is giving exception with stackTrace and I want to restrict it to 
> provide only a message instead of stackTrace.
> Please me to fix it.
> ---------------------------------------------------
> <route id="GetEvent">
>             <from uri="restlet:///event/{eventId}?restletMethod=PUT" />
>             <setExchangePattern pattern="InOnly" />
>
>             <setProperty propertyName="eventid">
>                 <simple>${header.eventId}</simple>
>             </setProperty>
>
>             <setProperty propertyName="eventDesc">
>                 <simple>${body}</simple>
>             </setProperty>
>
>             <onException>
>                 <exception>java.lang.Exception</exception>
>                 <exception>java.sql.SQLException</exception>
>                 <redeliveryPolicy maximumRedeliveries="3" 
> redeliveryDelay="3000"/>
>                 <setBody>
>                     <simple>Error on ${header.eventId}:${body}</simple>
>                 </setBody>
>                 <to uri="mock:error"/>
>             </onException>
>
>             <multicast>
>                 <pipeline>
>                     <setHeader headerName="CamelHttpUri">
>                         
> <simple>${properties:rest.uri}${header.eventId}</simple>
>                     </setHeader>
>
>                     <setHeader headerName="CamelHttpMethod">
>                         <constant>GET</constant>
>                     </setHeader>
>
>                     <to uri="http://dummyhost"/>
>
>                     <setBody>
>                         <simple>insert into XXXXXX (ID, TYPE, SOURCE, 
> SUBMITTED_DT, STATUS, CONTROLS, PAYLOAD) values(SEQPW_SUBMISSIONS.NEXTVAL, 
> 'events', 'CM', sysdate, 'NOT_PROCESSED', TO_CLOB('${property.eventDesc}'), 
> utl_raw.cast_to_raw('${body}'))</simple>
>                     </setBody>
>
>                     <to uri="jdbc:db"/>
>                 </pipeline>
>                 <setBody>
>                     <simple>${property.eventid}:${property.eventdesc}</simple>
>                 </setBody>
>                 <to uri="activemq:topic:EventTopic" />
>             </multicast>
>         </route>
> --------------------------------------------
>
> Thanks,
> Kishore Kumar Desu.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to