Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache camel 骆驼日志错误处理程序不工作 //book/[@category='WEB']/author/text()_Apache Camel - Fatal编程技术网

Apache camel 骆驼日志错误处理程序不工作 //book/[@category='WEB']/author/text()

Apache camel 骆驼日志错误处理程序不工作 //book/[@category='WEB']/author/text(),apache-camel,Apache Camel,正在记录错误,但不会使用myLoggingErrorHandler的名称。这就是不使用errorHandler时的情况。请指导。您使用的是什么版本的Camel?记录错误的名称是什么?此外,日志错误处理程序只记录消息,而不是stacktrace等。您使用的是什么版本的Camel?记录错误的名称是什么?此外,日志错误处理程序仅记录消息,而不是stacktrace等。 <camel:errorHandler id="myErrorHandler" type="LoggingErrorHandle

正在记录错误,但不会使用myLoggingErrorHandler的名称。这就是不使用errorHandler时的情况。请指导。

您使用的是什么版本的Camel?记录错误的名称是什么?此外,日志错误处理程序只记录消息,而不是stacktrace等。您使用的是什么版本的Camel?记录错误的名称是什么?此外,日志错误处理程序仅记录消息,而不是stacktrace等。
<camel:errorHandler id="myErrorHandler" type="LoggingErrorHandler" level="ERROR" logName="myLoggingErrorHandler"/>
    <camel:camelContext  errorHandlerRef="myErrorHandler" trace="true">

        <camel:route>  <!-- errorHandlerRef="myErrorHandler" -->
            <camel:from uri="file://src/resources?fileName=bookstore.xml" />
            <camel:split>
                <camel:xpath>//book/[@category='WEB']/author/text()</camel:xpath>
                <camel:log message="Main route: '${body}'" />
                </camel:split>
            <!-- <camel:to uri="stream:out"/> -->
        </camel:route>
    </camel:camelContext>