You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/07/15 15:36:18 UTC

Apache tryprocessor / only one line is displayed

This is also the case for the tryProcessor :

15:16:36,328 | DEBUG | erContainer-1657 | TryProcessor                     |
che.camel.processor.TryProcessor  115 | The exception is handled: true for
the exception: java.lang.NumberFormatException caused by: null

I don't see the full stack trace in debug mode

---------- Forwarded message ----------
From: Charles Moulliard <cm...@gmail.com>
Date: Wed, Jul 15, 2009 at 3:25 PM
Subject: Apache camel logger processor / only one line is displayed
To: dev@camel.apache.org


Hi,

In my route, I use the camel logger processor to log some info in a file. I
have configured it to display error on multilines

        <camel:route errorHandlerRef="txErrorHandler">
            <camel:from ref="queueRequestEndpoint" />
            <camel:transacted ref="PROPAGATION_REQUIRED" />

            <camel:doTry>

                <camel:convertBodyTo
type="com.xpectis.x3s.platform.model.Request" />

                <!-- Parse the request -->
                <camel:bean ref="serviceHelper" method="parseRequest" />

                <!-- Update request status -->
                <camel:bean ref="serviceHelper"
method="updateRequestStatus"/>

                <!-- Put request in the queue -->
                <camel:to ref="directRequestMessageEndpoint" />

                <camel:doCatch>

<camel:exception>com.xpectis.x3s.exception.X3SClientException</camel:exception>
                    <camel:bean ref="serviceHelper"
method="processException" />
                    <camel:to ref="queueReportingEndpoint" />
                </camel:doCatch>

                <camel:doCatch>
                    <camel:exception>java.lang.Exception</camel:exception>
                    <camel:to
uri="log:x3slog?level=DEBUG&amp;multiline=true" />
                    <camel:rollback/>
                </camel:doCatch>

            </camel:doTry>

        </camel:route>

but I only see one line like here :

15:16:36,328 | INFO  | erContainer-1657 | TraceInterceptor                 |
rg.apache.camel.processor.Logger   88 |
ID-dell-charles-3769-1247659499875-0-12 >>> *[class java.lang.Exception] -->
[class java.lang.Exception]*, Pattern:InOnly,
Headers:{CamelFileNameOnly=OINP-dummy.txt, JMSCorrelationID=null,
JMSMessageID=ID:dell-charles-3698-1247659477812-3:20:1:1:1,
CamelFileAbsolutePath=d:\temp\data\oinp\OINP-dummy.txt, JMSDeliveryMode=2,
CamelBeanMultiParameterArray=false, CamelBeanMethodName=null,
JMSTimestamp=1247663796078, JMSReplyTo=null,
JMSDestination=queue://x3s:request, JMSType=null, JMSRedelivered=false,
CamelFileLength=332, CamelFileAbsolute=true,
CamelFileRelativePath=d:\temp\data\oinp\OINP-dummy.txt, JMSExpiration=0,
CamelFileLastModified=Tue Jun 16 14:50:55 CEST 2009, origin=file,
JMSPriority=4, messageType=OINP, JMSXGroupID=null,
CamelFileName=OINP-dummy.txt,
CamelFilePath=d:\temp\data\oinp\OINP-dummy.txt,
CamelFileParent=d:\temp\data\oinp}, BodyType:java.util.ArrayList,
Body:[{com.xpectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage=com.xpectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage@1de2bea
[
  providerId=11111
  originatorId=22222
  senderCompanyId=33333
  agencyId=AGENCY23
  dealCurrencyCode=EUR
  targetCompanyId=44444
  productType=PRODUCT2
  fundIdType=4
  fundId=LU1234567890
  movementType=1
  originalSendTime=Mon Jan 07 14:02:09 CET 2008
  orderUnits=10
  orderCashAmount=1287.44
  messageType=<null>
]},

How can I see all the stack trace of the error ?

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com