【问题标题】:Mule SAX parse exception during deployment部署期间 Mule SAX 解析异常
【发布时间】:2020-06-07 18:47:11
【问题描述】:

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

使用以下运行时环境。

运行时:4.1.4 任意点IDE:7.4.2

IDE 和运行时是否兼容?

对此有何建议?

谢谢。

  • 正在初始化应用程序“firstmule”+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ INFO 2020-02-24 12:04:51,481 [WrapperListener_start_runner] [事件:] org.mule.runtime.module.extension.internal.manager.DefaultExtensionManager:注册扩展 ee(版本:4.1.4 供应商:MuleSoft, Inc.) INFO 2020-02-24 12:04:51,481 [WrapperListener_start_runner] [事件:] org.mule.runtime.module.extension.internal.manager.DefaultExtensionManager:注册扩展 mule(版本:4.1.4 供应商:MuleSoft,Inc.) INFO 2020-02-24 12:04:55,990 [WrapperListener_start_runner] [事件:] org.mule.runtime.module.extension.internal.manager.DefaultExtensionManager:注册扩展套接字(版本:1.1.5 供应商:Mulesoft) INFO 2020-02-24 12:04:55,993 [WrapperListener_start_runner] [事件:] org.mule.runtime.module.extension.internal.manager.DefaultExtensionManager:注册扩展 HTTP(版本:1.5.6 供应商:Mulesoft) INFO 2020-02-24 12:04:59,750 [WrapperListener_start_runner] [事件:] org.mule.runtime.core.privileged.lifecycle.AbstractLifecycleManager:处置 RegistryBroker 错误 2020-02-24 12:04:59,750 [WrapperListener_start_runner] [事件:] org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication:null 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-content-message-processor}' 之一。

INFO 2020-02-24 12:04:59,765 [WrapperListener_start_runner] [event: ] org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication:应用程序“firstmule”从未启动,没有什么可处理的 错误 2020-02-24 12:04:59,781 [WrapperListener_start_runner] org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ + 未能部署工件“firstmule”,见下文 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ org.mule.runtime.deployment.model.api.DeploymentException:无法部署工件 [firstmule] 原因:org.mule.runtime.api.exception.MuleRuntimeException: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-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-content-message-processor}' 之一。

原因: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-content-message-processor}' 之一。

原因: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-content-message-processor}' 之一。

INFO 2020-02-24 12:04:59,781 [WrapperListener_start_runner] org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher: ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ + 骡子起身并踢(每 5000 毫秒)+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ INFO 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 以避免许多已知问题。 Mule 4.2.2 是最新最好的。请附上产生错误的 XML 文件,以了解是否是命名空间问题。

标签: mule-studio mule-component mulesoft


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 2011-08-15
    • 1970-01-01
    • 1970-01-01
    • 2020-09-18
    • 1970-01-01
    • 1970-01-01
    • 2016-03-24
    • 2012-02-04
    相关资源
    最近更新 更多