我在JBoss EAP 6.1中部署了JBoss switchyard应用程序。只要有任何异常,就会在日志中泛滥大量错误消息。我只需要前几行消息,但不需要其余部分。因为我们只知道查看前几行的异常的根本原因。其余的线路真的没用。这些是详细的堆栈跟踪。如何阻止这些消息出现?非常感谢任何帮助。
日志片段:
04-05-2016 20:08:36,360 ERROR (org.apache.camel.processor.DefaultErrorHandler) [Camel (camel-38) thread #67 - file:///integrations/hybris-esb/in/i215/pending] Failed delivery for (MessageId: ID-ESBS
RVPRDEU01-goep-hm-com-44700-1461855065835-37-23110 on ExchangeId: ID-ESBSRVPRDEU01-goep-hm-com-44700-1461855065835-37-23111). Exhausted after delivery attempt: 1 caught: org.switchyard.HandlerExcept
ion: org.switchyard.HandlerException: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://username@11.11.11.11:4022: org.switchyard.HandlerException: org.sw
itchyard.HandlerException: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://username@11.11.11.11:4022
at org.switchyard.component.camel.SwitchYardConsumer.handleMessage(SwitchYardConsumer.java:115) [switchyard-component-camel-switchyard-1.1.1-p9-redhat-1.jar:1.1.1-p9-redhat-1]
at org.switchyard.bus.camel.processors.ProviderProcessor.process(ProviderProcessor.java:29) [switchyard-bus-camel-1.1.1-p9-redhat-1-BZ-1286688.jar:1.1.1-p9-redhat-1-BZ-1286688]
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:46) [switchyard-bus-camel-1.1.1-p9-redhat-1-BZ-1286688.jar:1.1.1-p9-redhat-1-BZ-1286688]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:117) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:104) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:78) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.redhat-60065.jar:2.10.0.redhat-60065]
答案 0 :(得分:0)
您可以通过配置默认错误处理程序来转换日志记录堆栈跟踪。
Camel网站上的一些信息:http://camel.apache.org/dead-letter-channel.html