我正在尝试将“maxThreadsActive”设置为 1,以确保只有一个线程从队列中提取消息,但由于某种原因,我在编译时遇到了 sax 解析异常。以下是配置:
<anypoint-mq:config name="Anypoint_MQ_Configuration"
provider-ref="anypointMQ_Provider_Settings" doc:name="Anypoint MQ Configuration" >
<http:worker-threading-profile maxThreadsActive="1"/>
</anypoint-mq:config>
错误 :
ERROR 2017-10-04 12:35:00,849 [main] org.mule.module.launcher.application.DefaultMuleApplication: null
org.xml.sax.SAXParseException:cvc-complex-type.2.4.a:发现以元素“http:worker-threading-profile”开头的无效内容。'{" http://www.mulesoft.org/schema/mule/core ":annotations、" http://www.mulesoft.org/schema/mule/tls ":context、" http://www之一.mulesoft.org/schema/mule/http ":proxy, " http://www.mulesoft.org/schema/mule/anypoint-mq ":provider, " http://www.mulesoft.org/schema/mule /anypoint-mq ":prefetch," http://www.mulesoft.org/schema/mule/anypoint-mq":worker-threading-profile}' 是预期的。在 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[?:?] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[?:?] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?]在 org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?]