2016-05-06 6 views
0

Ich habe JBoss Switchyard-Anwendung in JBoss EAP 6.1 bereitgestellt. Wenn es eine Ausnahme gibt, werden viele Fehlermeldungen im Protokoll überflutet. Ich brauche nur die ersten Zeilen der Nachricht, aber nicht den Rest. Weil wir die Ursache der Ausnahme kennen, wenn wir nur die ersten Zeilen betrachten. Die restlichen Zeilen sind wirklich nutzlos. Das sind detaillierte Stacktrace. Wie kann ich verhindern, dass diese Nachricht angezeigt wird? Jede Hilfe wird sehr geschätzt.JBoss-Switchyard-Ausnahme - Wie Drucken lange Ausnahmebedingungsnachricht in Protokoll

Log-Schnipsel:

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://[email protected]:4022: org.switchyard.HandlerException: org.sw 
itchyard.HandlerException: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://[email protected]: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] 

Antwort

0

Sie können Protokollierungsstacktraces drehen und vieles mehr von der Standard-Fehlerbehandlung zu konfigurieren.

Einige Informationen über die Camel-Website: http://camel.apache.org/dead-letter-channel.html

+0

ich eine Datei Produzenten haben und OnException verwende. Wenn handed (true) verwendet wird, wird das Drucken langer Fehlernachrichten im Protokoll gestoppt, aber moveFailed (Switchyard stellt diese Funktion in der GUI selbst bereit) verschiebt die ursprüngliche Datei nicht in den erwarteten Ordner. Ich brauche etwas, wo unnötige Logs vermieden werden können und movefailed funktioniert. – shakti