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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:27:59+00:00 2026-06-02T19:27:59+00:00

I would expect a <test:component /> to be equivalent to <component> <spring-object bean=FTC />

  • 0

I would expect a <test:component /> to be equivalent to

<component>
    <spring-object bean="FTC" />
<component>

where the FTC bean uses the FunctionalTestComponent class. That is, I would expect the two configurations below to pass the functional test shown further below.

config with <test:component />

<mule ...>
    <vm:endpoint name="EntryPoint.Name" path="EntryPoint.Path" />
    <simple-service name="service" endpoint-ref="EntryPoint.Name" >
        <test:component />
    </simple-service>
</mule>

config with spring bean using FunctionalTestComponent

<mule ...>
    <vm:endpoint name="EntryPoint.Name" path="EntryPoint.Path" />
    <spring:bean id="FTC" class="org.mule.tck.functional.FunctionalTestComponent" />

    <simple-service name="service" endpoint-ref="EntryPoint.Name" >
        <component>
            <spring-object bean="FTC" />
        </component>
    </simple-service>
</mule>

test

@Test
public void aTest() throws Exception {
    final MuleClient client = muleContext.getClient();
    client.send("vm://EntryPoint.Path", "1", null);
    assertEquals("1", getFunctionalTestComponent("service").getLastReceivedMessage());
}

The config with <test:component /> passes the test. However, the one with the FTC bean does not. In fact, the run with the FTC bean shows an exception in the logs:


********************************************************************************
Message               : Component that caused exception is: DefaultJavaComponent{service.commponent}. Message payload is of type: String
Code                  : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. null (java.lang.NullPointerException)
  org.mule.tck.functional.FunctionalTestComponent:215 (null)
2. Component that caused exception is: DefaultJavaComponent{service.commponent}. Message payload is of type: String (org.mule.component.ComponentException)
  org.mule.component.DefaultComponentLifecycleAdapter:359 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/component/ComponentException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.lang.NullPointerException
    at org.mule.tck.functional.FunctionalTestComponent.process(FunctionalTestComponent.java:215)
    at org.mule.tck.functional.FunctionalTestComponent.onCall(FunctionalTestComponent.java:108)
    at org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:50)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

Any idea what I could be doing wrong? I am using Mule 3.2.1

Thanks

  • 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-02T19:27:59+00:00Added an answer on June 2, 2026 at 7:27 pm

    I think I figured it out. The definition of the bean is missing one attribute init-method=
    "initialise"
    . This detail seems to be missing from the documentation. Hence, the definition of the bean should be:

    <spring:bean id="FTC"
        class="org.mule.tck.functional.FunctionalTestComponent" init-method="initialise" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to perform a load test on a site that uses ValidateAntiForgeryToken
I would expect a Dictionary object of the form: var dict = new Dictionary<string,string>()
One would expect that even though strings are immutable, value-equality and reference-equality would not
I would expect this code to produce the label test 5 times however it
In IE 8, jQuery acts as I would expect: $('div',$('<a><div></div></a>')).html('test').html() test In FireFox: $('div',$('<a><div></div></a>')).html('test').html()
I am getting two different results while I would expect the result to be
The following Java code will print 0. I would expect that this would print
When I test my javascript at this site it behaves as I would expect.
As per example below, I would expect the ouput to be test value, why
How do you roll back a failed rails migration? I would expect that rake

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.