【问题标题】:Error while running mule server运行骡服务器时出错
【发布时间】:2023-04-03 06:15:02
【问题描述】:

我已经创建了一个流程来从 Mule 端压缩一个文件,但是我得到了一个错误:

java.lang.IllegalStateException:至少有 2 个连接器匹配协议“文件”,因此必须使用“连接器”属性/属性在端点上指定要使用的连接器。您的配置中支持“文件”的连接器是:输入、输出、

这是流程:

<flow name="GZipCompress" doc:name="GZipCompress"> 
 <file:inbound-endpoint path="C:backuptest" responseTimeout="10000" doc:name="File"> 
 <file:filename-regex-filter pattern="abc.doc" caseSensitive="false" /> 
 </file:inbound-endpoint> <string-to-byte-array-transformer doc:name="String to Byte Array" /> 
 <logger message="Payload size before compression : #[Integer.parseInt(payload.size())/1024] KB" level="INFO" doc:name="Logger" />
<!-- If you send gzip a String then it gets serialized and mess ends up in the gzip file. To avoid this convert to byte[] first --> 
 <gzip-compress-transformer /> <logger message="Payload size after compression : #[Integer.parseInt(payload.size())/1024] KB" level="INFO" doc:name="Logger" /> 
 <file:outbound-endpoint path="C:backuptestnewfolder" responseTimeout="10000" doc:name="File" /> </flow>

【问题讨论】:

  • 请将所有相关信息放在问题中,格式清晰,不要大写。

标签: java mule


【解决方案1】:

至少有 2 个连接器与协议“文件”匹配,因此必须使用“连接器”属性/属性在端点上指定要使用的连接器。您的配置中支持“文件”的连接器是:输入、输出、

此错误表明您已经定义了 file global connectors 而现在 mule 不知道将您声明的文件端点附加到哪个。一种解决方案是在文件入站端点中定义 connector-ref 属性并引用您定义的 input 连接器。

<file:inbound-endpoint connector-ref="input" path="C:backuptest" responseTimeout="10000" doc:name="File"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-31
    • 2018-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多