我正在尝试使用以下流程将多个文件从源移动/上传到目标(可以是任何东西,例如 FTP 或文件出站等)
<flow name="flow1" doc:name="f1">
<file:inbound-endpoint path="C:\input" responseTimeout="10000" doc:name="File"/>
</flow>
<flow name="flow2" doc:name="f2">
<http:inbound-endpoint address="http://localhost:8080" doc:name="HTTP" exchange-pattern="request-response"/>
<flow-ref name="flow1" doc:name="Flow Reference"/>
<file:outbound-endpoint path="C:\outputfile" responseTimeout="10000" doc:name="File"/>
</flow>
这样做的原因是我想使用 CURL 从 CLI(命令行界面)调用作业。
但我收到以下错误
错误:
线程“主”org.mule.module.launcher.DeploymentInitException 中的异常:SAXParseException:cvc-complex-type.2.4.b:元素“流”的内容不完整。'{"之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-端点,“ http://www.mulesoft.org/schema/mule/core ”:abstract-mixed-content-message-processor,“ http://www.mulesoft.org/schema/mule/core流'不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-endpoint, " http: //www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule/core列号:8;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-endpoint, " http: //www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule/core嵌套异常是 org.xml.sax.SAXParseException;行号:11;列号:8;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-endpoint, " http: //www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule/core":response}' 是预期的。在 org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:117) 在 org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:116) 在 org.mule.config .spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) ... 11 更多原因:org.springframework.beans.factory.xml。 XmlBeanDefinitionStoreException:来自 URL [file:/D:/MuleStudioExperiment/FileTransferUsingHTTP/.mule/apps/test/test.xml] 的 XML 文档中的第 11 行无效;嵌套异常为 org.xml.sax.SAXParseException;lineNumber:11;columnNumber : 8; cvc-complex-type.2.4.b: 元素'flow'的内容不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-endpoint, " http: //www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule/coreAbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org .mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 14 更多原因:org.xml.sax.SAXParseException; 行号:11;列号:8;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一 mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 14 更多原因:org.xml.sax.SAXParseException; 行号:11;列号:8;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一 mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 14 更多原因:org.xml.sax.SAXParseException; 行号:11;列号:8;cvc-complex-type.2.4.b:元素“流”的内容不完整。'{" 之一http://www.mulesoft.org/schema/mule/core ":abstract-message-processor, " http://www.mulesoft.org/schema/mule/core ":abstract-outbound-endpoint, " http: //www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule/core":response}' 是预期的。在 org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter .reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator $XSIErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(Unknown Source) at org.apache.xerces org.apache.xerces.impl.xs 中的 .impl.xs.XMLSchemaValidator.elementLocallyValidType(未知来源)。XMLSchemaValidator.processElementContent(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) at org.apache.xerces。 impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces。 org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.parsers.XML11Configuration.parse(Unknown Source)。 org.apache.xerces.jaxp.DocumentBuilderImpl 上的 DOMParser.parse(未知来源)。在 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) 的 org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) 解析(未知来源)
请帮忙