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

  • Home
  • SEARCH
  • 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 8551329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:10:22+00:00 2026-06-11T14:10:22+00:00

I have one flow calling another flow via a VM endpoint. The call fails

  • 0

I have one flow calling another flow via a VM endpoint. The call fails with the exception NoReceiverForEndpointException. The message in the logs is:

There is no receiver registered on connector "connector.VM.mule.default" for endpointUri vm://inner

Does anyone know why? This is Mule 3.3.0 enterprise edition.

Thanks.

The config file:

<mule ...>
    <vm:endpoint name="inner" path="inner" />
    <flow name="inner.flow">
        <inbound-endpoint ref="inner" exchange-pattern="request-response" />
        <logger level="INFO" message="in inner flow" />
    </flow>

    <vm:endpoint name="outer" path="outer" />
    <flow name="outer.flow">
        <inbound-endpoint ref="outer" exchange-pattern="one-way" />
        <logger level="INFO" message="in outer flow" />
        <outbound-endpoint ref="inner" exchange-pattern="request-response" />
    </flow>
</mule>

The test case to exercise it:

import org.junit.Test;
import org.mule.api.MuleException;
import org.mule.module.client.MuleClient;
import org.mule.tck.junit4.FunctionalTestCase;

public class VMEndpointTest extends FunctionalTestCase {

    @Test
    public void innerIsCalled() throws MuleException {
        final MuleClient client = new MuleClient(muleContext);
        client.sendNoReceive("outer", new Object(), null);
    }

    @Override
    protected String getConfigResources() {
        return "test.xml";
    }

}
  • 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-11T14:10:23+00:00Added an answer on June 11, 2026 at 2:10 pm

    Ah, I figured this on my own:

    1. the outer endpoint is one-way, so I should have used dispatch to send a message to it.
    2. some mechanism is required for the unit test to wait for Mule to process the message in the one-way flow. I introduced a vm endpoint just for that with the accompanying receive call in the Java code.

    the config file:

    <mule ...>
        <vm:endpoint name="outer" path="outer" />
        <flow name="outer.flow">
            <inbound-endpoint ref="outer" exchange-pattern="one-way" />
            <logger level="INFO" message="in outer flow" />
            <outbound-endpoint ref="inner" exchange-pattern="request-response" />
        </flow>
    
        <vm:endpoint name="inner" path="inner" />
        <vm:endpoint name="inner.completed" path="inner.completed" />
        <flow name="inner.flow">
            <inbound-endpoint ref="inner" exchange-pattern="request-response" />
            <logger level="INFO" message="in inner flow" />
            <outbound-endpoint ref="inner.ftc" exchange-pattern="request-response" />
            <outbound-endpoint ref="inner.completed" exchange-pattern="one-way" />
        </flow>
    
        <vm:endpoint name="inner.ftc" path="inner.ftc" />
        <simple-service name="innerFtc" endpoint-ref="inner.ftc">
            <test:component />
        </simple-service>
    </mule>
    

    the test case:

    package foo;
    
    import static org.junit.Assert.assertEquals;
    
    import org.junit.Test;
    import org.mule.module.client.MuleClient;
    import org.mule.tck.functional.FunctionalTestComponent;
    import org.mule.tck.junit4.FunctionalTestCase;
    
    public class VMEndpointTest extends FunctionalTestCase {
    
        @Test
        public void innerIsCalled() throws Exception {
            final FunctionalTestComponent ftc = getFunctionalTestComponent("innerFtc");
            final Object object = new Object();
            final MuleClient client = new MuleClient(muleContext);
    
            client.dispatch("outer", object, null);
            client.request("inner.completed", RECEIVE_TIMEOUT);
    
            assertEquals(object, ftc.getLastReceivedMessage());
        }
    
        @Override
        protected String getConfigResources() {
            return "test.xml";
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one model User and will be creating another one Category . Both
I have one table which contains events and dates, and another which contains the
I have the following problem: In one flow of the execution I use alloc,
I am using SWF, and in one view I have a table. Calling some
have one time consuming step that flattens a bunch of files. basically i'd like
I have one XML request which I need to modify (to XML) and then
I have one user (only one, all the others are fine) trying to update
I have one repo hosted at https://github.com/aikiframework/json . On my local copy, I added
I have one drop down list in my page, which contains two options. What
I have one problem with parsing *.docx document with OpenXML (C#). So, here's my

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.