Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9247283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:41:22+00:00 2026-06-18T09:41:22+00:00

I am trying to move/upload multiple files from source to destination (can be anything

  • 0

I am trying to move/upload multiple files from source to destination (can be anything e.g. FTP or File outbound etc..) by using the below flow

<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>

The reason for doing in this way is that I want to invoke the job from CLI(Command Line Interface) using CURL.

But I am receiving the below error

Error:

Exception in thread “main”
org.mule.module.launcher.DeploymentInitException: SAXParseException:
cvc-complex-type.2.4.b: The content of element ‘flow’ is not complete.
One of
‘{“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}’ is expected. at
org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:220)
at
org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64)
at
org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:46)
at
org.mule.tooling.server.application.ApplicationDeployer.run(ApplicationDeployer.java:56)
at
org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:88)
Caused by: org.mule.api.config.ConfigurationException: Line 11 in XML
document from URL
[file:/D:/MuleStudioExperiment/FileTransferUsingHTTP/.mule/apps/test/test.xml]
is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 11; columnNumber: 8; cvc-complex-type.2.4.b: The content
of element ‘flow’ is not complete. One of
‘{“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}’ is expected.
(org.mule.api.lifecycle.InitialisationException)
(org.mule.api.config.ConfigurationException) at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52)
at
org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:80)
at
org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:208)
… 4 more Caused by: org.mule.api.config.ConfigurationException:
Line 11 in XML document from URL
[file:/D:/MuleStudioExperiment/FileTransferUsingHTTP/.mule/apps/test/test.xml]
is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 11; columnNumber: 8; cvc-complex-type.2.4.b: The content
of element ‘flow’ is not complete. One of
‘{“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}’ is expected.
(org.mule.api.lifecycle.InitialisationException) at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52)
at
org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
at
org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
… 7 more Caused by: org.mule.api.lifecycle.InitialisationException:
Line 11 in XML document from URL
[file:/D:/MuleStudioExperiment/FileTransferUsingHTTP/.mule/apps/test/test.xml]
is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 11; columnNumber: 8; cvc-complex-type.2.4.b: The content
of element ‘flow’ is not complete. One of
‘{“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}’ is expected. at
org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:117)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:116)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
… 11 more Caused by:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 11 in XML document from URL
[file:/D:/MuleStudioExperiment/FileTransferUsingHTTP/.mule/apps/test/test.xml]
is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 11; columnNumber: 8; cvc-complex-type.2.4.b: The content
of element ‘flow’ is not complete. One of
‘{“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}’ is expected. at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at
org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:112)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at
org.springframework.context.support.AbstractApplicationContext.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 more Caused by: org.xml.sax.SAXParseException; lineNumber: 11;
columnNumber: 8; cvc-complex-type.2.4.b: The content of element ‘flow’
is not complete. One of
‘{“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}’ is expected. at
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) 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.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown
Source) at
org.apache.xerces.impl.xs.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.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)

Please help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:41:23+00:00Added an answer on June 18, 2026 at 9:41 am

    Try this

    <flow name="flow1" doc:name="flow1" initialState="stopped">
      <file:inbound-endpoint path="C:\Input" responseTimeout="10000" doc:name="File"/>
    
      <file:outbound-endpoint path="C:\outputfile" responseTimeout="10000" doc:name="File"/>
    </flow>
    
    <flow name="flow2" doc:name="flow2">
      <http:inbound-endpoint address="http://localhost:8080/start" doc:name="HTTP" exchange-pattern="request-response"/>
    
      <expression-component>
        app.registry.filePickupFlow.start();
      </expression-component>
    
      <set-payload value="File successfully copied" />
    
    </flow>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upload some files using the multiple upload file field. The
I'm trying to make a multi file uploader. I'm using Multiple File Upload Magic
I am trying to move certain groups of files using wildcards to a folder
I'm trying to upload a file to my server using the CakePHP file upload
I am trying to upload a pdf file using fileupload() function in php. This
I am trying to create a dynamic multiple file upload system where the user
I'm trying to upload a file using PHP. My HTML page with the form
I am learning PHP and trying to upload a file using this code :
I am trying to upload a file to the webroot/files directory. I also include
I'm trying to upload some videos using PHP. But I can't get them into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.