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 8067743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:25:32+00:00 2026-06-05T12:25:32+00:00

When a service call returns null ( NullPayload ) the proxy generated for the

  • 0

When a service call returns null (NullPayload) the proxy generated for the component binding throws a ClassCastException. Should it return null instead? (This is in Mule CE 3.2.1) See MULE 4405

Thanks

Here is the mule config:

<mule ...>

    <flow name="entryPoint">
        <vm:inbound-endpoint
            path="entryPoint"
            exchange-pattern="request-response" />
        <component class="classcastexception.Component">
            <binding interface="classcastexception.Interface" method="foo">
                <vm:outbound-endpoint
                    path="classcastexception.Interface.foo"
                    exchange-pattern="request-response" />
            </binding>
        </component>
    </flow>

    <flow name="classcastexception.Interface.foo">
        <vm:inbound-endpoint
            path="classcastexception.Interface.foo"
            exchange-pattern="request-response" />
        <component class="classcastexception.InterfaceImpl" />
    </flow>

</mule>

The java classes are:

Interface.java

package classcastexception;

public interface Interface {

    String foo(String s);

}

Component.java

package classcastexception;

public class Component {

    private Interface i;

    public String foo(final String s) {
        return i.foo(s);
    }

    public void setInterface(final Interface i) {
        this.i = i;
    }

}

InterfaceImpl.java

package classcastexception;

public class InterfaceImpl implements Interface {

    @Override
    public String foo(String s) {
        return null;
    }

}
  • 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-05T12:25:33+00:00Added an answer on June 5, 2026 at 12:25 pm

    This bug has been recently fixed. Take a look at the MULE-6287 jira for more information. As you can see this fix will be included in the soon to be released mule 3.3.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service that returns this string via the jQuery $.ajax() call
I'm binding to a Service, using context.bindService(bindIntent, connection, Context.BIND_AUTO_CREATE); . This method returns true
I have a Web Service call that returns reporting data using Linq-To-Entity (strongly type
I have a synchronous web service call that returns a message. I need to
I'm implementing a Web service that returns a JSON-encoded payload. If the service call
I call a service which returns GMT dates. Its been working fine since November,
I have a situation where i call a web service and it returns me
I call a service which returns a gzipped file. I have the data as
making a call to a web service method with nusoap returns an error array(3)
I have a custom module that returns data from a web service call. It

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.