首页 > 解决方案 > 部署期间 Mule SAX 解析异常

问题描述

我在具有相同 HttpListener 的 Anypoint 工作室中遇到以下异常

使用以下运行时环境。

运行时:4.1.4 任意点IDE:7.4.2

IDE 和运行时之间是否有任何兼容性?

对此有何建议?

谢谢。

xml'。完整列表:org.xml.sax.SAXParseException;行号:12;列号:9;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor }' 是期待。

原因:org.mule.runtime.deployment.model.api.DeploymentInitException:MuleRuntimeException:解析给定文件“firstmule.xml”时出现“1”错误。完整列表:org.xml.sax.SAXParseException;行号:12;列号:9;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-之一内容消息处理器}' 是预期的。

原因:org.mule.runtime.core.api.config.ConfigurationException:解析给定文件“firstmule.xml”时出现“1”错误。完整列表:org.xml.sax.SAXParseException;行号:12;列号:9;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-之一内容消息处理器}' 是预期的。

原因:org.mule.runtime.api.exception.MuleRuntimeException:解析给定文件“firstmule.xml”时出现“1”错误。完整列表:org.xml.sax.SAXParseException;行号:12;列号:9;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-之一内容消息处理器}' 是预期的。

信息 2020-02-24 12:04:59,781 [WrapperListener_start_runner] org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher:++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++ + 骡子起来踢腿(每 5000 毫秒) + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++ 信息 2020-02-24 12:05:00,731 [WrapperListener_start_runner] org.eclipse.jetty.server.AbstractConnector:已启动 ServerConnector@44510ad1{HTTP/1.1,[http/1.1]}{0.0 .0.0:56978} 信息 2020-02-24 12:05:00,731 [WrapperListener_start_runner]

标签: mule-studiomule-componentmulesoft

解决方案


猜猜你已经把它整理出来了,但根据错误,似乎 Mule 应用程序在流程“流程区域”中没有任何连接器。

因此,Mule 应用程序将失败,因为它在流“源区域”中只包含一个 HTTP 侦听器连接器。

例如,通过在 HTTP Listener 右侧添加“Log”连接器或“Se Payload”连接器,流“处理区域”不会为空,因此 Mule 应用程序将能够成功部署和运行。


推荐阅读