2

使用以下文件配置,应用程序始终提供 WARN 问题。请参阅下面的日志示例。

WARN  2014-04-15 18:46:59,285 [[processes].accountFlow1.stage1.02] org.mule.transport.file.FileMessageReceiver: Failure trying to remove file /file/file/file.file from list of files under processing
DEBUG 2014-04-15 18:46:59,289 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: test1
DEBUG 2014-04-15 18:46:59,291 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,424 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,477 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,583 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,609 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,613 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,658 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,659 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,672 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,684 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,725 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,727 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
DEBUG 2014-04-15 18:46:59,735 [[processes].accountFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: *******
WARN  2014-04-15 18:46:59,824 [Finalizer] org.mule.transport.file.ReceiverFileInputStream: Failed to move file from /file/file/processing/file.file to /file/file/archive/file.file

连接器按以下方式设置:

<file:connector name="InputFileConnector" doc:name="File Connector" workDirectory="${Processing_Path}" 
            workFileNamePattern="#[message.outboundProperties['originalFilename']]" moveToDirectory="${Archive_Path}" 
            moveToPattern="#[message.outboundProperties['originalFilename']]"
            streaming="true" autoDelete="false" validateConnections="true" fileAge="${FileAge}"/>

入站端点配置:

<file:inbound-endpoint responseTimeout="10000" doc:name="File" path="${Inbound_Path}" pollingFrequency="${PollingFrequency}" connector-ref="InputFileConnector">
            <!-- Add filename-regex-filter to insure files are there to kick off the process -->
            <file:filename-regex-filter pattern="SAMPLE\d+\.FILE" caseSensitive="true"/>
        </file:inbound-endpoint>

我正在寻找有关导致 Mule 出现此 WARN 问题的任何见解或建议。

更新将流属性更改为 false,解决了 WARN 问题。

4

1 回答 1

3

Mule 在流文件端点方面存在一些问题,因此您可以streaming="false"在连接器中尝试您的应用程序。我不知道 Mule 文件流式传输到底发生了什么,但我猜它可能类似于打开文件句柄,当文件从处理列表中删除时会产生异常。

于 2014-04-15T18:58:25.753 回答