camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Turn off the stack trace for EndpointMessageListener
Date Thu, 02 May 2013 05:16:11 GMT
That stacktrace is from the default error handler. You can turn it off
on that too.

http://camel.apache.org/defaulterrorhandler.html

The options is mostly documented on DLC which the default error handler also has
http://camel.apache.org/dead-letter-channel.html

There should be options to control logging levels / whether to include
stacktraces etc.

On Wed, May 1, 2013 at 6:45 PM, salemi <salemi@avaya.com> wrote:
> Thank you for your respond Claus. I changed my jms config to add the
> properties you mentioned to the configuration (see below)
>
>     <bean id="jmsConfig"
> class="org.apache.camel.component.jms.JmsConfiguration">
>         <property name="connectionFactory"
> ref="pooledConnectionFactoryInfiniteRedelivery"/>
>         <property name="concurrentConsumers" value="10"/>
>         <property name="errorHandlerLogStackTrace" value="false"/>
>         <property name="errorHandlerLoggingLevel" value="INFO"/>
>     </bean>
>
> I still get the full stacktrace see below:
>      [exec] INFO: PuMsgFlowProcessor
>      [exec] 2013-05-01 10:42:09,293 [dads1.adminDLC]] INFO
> SpringCamelContext             - Route: operationalRoute started and
> consuming from: Endpoint[jms://topic:com..cc.operation.cm.testdads1]
>      [exec] 2013-05-01 10:42:09,296 [dads1.adminDLC]] INFO  adminPumpupRoute
> - PumpUpEnd received in adminPumpupRoute
>      [exec] 2013-05-01 10:42:09,301 [dads1.adminDLC]] INFO
> HttpMethodDirector             - I/O exception (java.net.ConnectException)
> caught when processing request: Connection refused
>      [exec] 2013-05-01 10:42:09,302 [dads1.adminDLC]] INFO
> HttpMethodDirector             - Retrying request
>      [exec] 2013-05-01 10:42:09,303 [dads1.adminDLC]] INFO
> HttpMethodDirector             - I/O exception (java.net.ConnectException)
> caught when processing request: Connection refused
>      [exec] 2013-05-01 10:42:09,303 [dads1.adminDLC]] INFO
> HttpMethodDirector             - Retrying request
>      [exec] 2013-05-01 10:42:09,304 [dads1.adminDLC]] INFO
> HttpMethodDirector             - I/O exception (java.net.ConnectException)
> caught when processing request: Connection refused
>      [exec] 2013-05-01 10:42:09,305 [dads1.adminDLC]] INFO
> HttpMethodDirector             - Retrying request
>      [exec] 2013-05-01 10:42:09,308 [dads1.adminDLC]] ERROR
> DefaultErrorHandler            - Failed delivery for (MessageId:
> queue_com.cc.pumpup.cm.testdads1.adminDLC_ID_com-46773-1367426011284-1_1_2_1_1
> on ExchangeId: ID-com-52799-1367426009430-0-21). Exhausted after delivery
> attempt: 1 caught: java.net.ConnectException: Connection refused
>      [exec] java.net.ConnectException: Connection refused
>      [exec]     at java.net.PlainSocketImpl.socketConnect(Native
> Method)[:1.7.0_11]
>      [exec]     at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)[:1.7.0_11]
>      [exec]     at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)[:1.7.0_11]
>      [exec]     at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)[:1.7.0_11]
>      [exec]     at
> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)[:1.7.0_11]
>      [exec]     at java.net.Socket.connect(Socket.java:579)[:1.7.0_11]
>      [exec]     at java.net.Socket.connect(Socket.java:528)[:1.7.0_11]
>      [exec]     at java.net.Socket.<init>(Socket.java:425)[:1.7.0_11]
>      [exec]     at java.net.Socket.<init>(Socket.java:280)[:1.7.0_11]
>      [exec]     at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)[commons-httpclient-3.1.jar:]
>      [exec]     at
> org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:245)[camel-http-2.10.4.jar:2.10.4]
>      [exec]     at
> org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:147)[camel-http-2.10.4.jar:2.10.4]
>      [exec]     at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> ....
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/Turn-off-the-stack-trace-for-EndpointMessageListener-tp5730681p5731870.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message