使用以下文件配置,应用程序始终提供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问题。
答案 0 :(得分:3)
Mule在流式文件端点方面存在一些问题,因此您可以在连接器中使用streaming="false"
来试用您的应用。我不确切知道Mule文件流的确切情况,但我想它可能类似于打开文件句柄,当从处理列表中删除文件时会产生异常。