[mule-user] Failed to invoke lifecycle phase "start" on object: SimpleFlowConstruct

28 views
Skip to first unread message

chai kebin

unread,
Jun 2, 2011, 8:34:14 AM6/2/11
to us...@mule.codehaus.org
Hi,All

When I start Mule Server,The console give me a message,as below (Pls help me, thank you!):

org.mule.api.lifecycle.LifecycleException: Failed to invoke lifecycle phase "start" on object: SimpleFlowConstruct{filterIncident}
at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:236)
at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:260)
at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:139)
at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:110)
at org.mule.registry.AbstractRegistry.fireLifecycle(AbstractRegistry.java:143)
at org.mule.registry.AbstractRegistryBroker.fireLifecycle(AbstractRegistryBroker.java:59)
at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:121)
at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:94)
at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:90)
at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:72)
at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:64)
at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:202)
at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:472)
at junit.framework.TestCase.runBare(TestCase.java:128)
at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:305)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:284)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NoSuchMethodError: org.mule.util.StringUtils.join(Ljava/util/Collection;C)Ljava/lang/String;
at org.mule.model.resolvers.ReflectionEntryPointResolver.updateFilter(ReflectionEntryPointResolver.java:69)
at org.mule.model.resolvers.ReflectionEntryPointResolver.<init>(ReflectionEntryPointResolver.java:64)
at org.mule.model.resolvers.LegacyEntryPointResolverSet.<init>(LegacyEntryPointResolverSet.java:37)
at org.mule.component.AbstractJavaComponent.doStart(AbstractJavaComponent.java:176)
at org.mule.component.DefaultJavaComponent.doStart(DefaultJavaComponent.java:58)
at org.mule.component.AbstractComponent.start(AbstractComponent.java:327)
at org.mule.processor.chain.AbstractMessageProcessorChain.start(AbstractMessageProcessorChain.java:115)
at org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:361)
at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:142)
at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:139)
at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:139)
at org.mule.construct.FlowConstructLifecycleManager.fireStartPhase(FlowConstructLifecycleManager.java:95)
at org.mule.construct.AbstractFlowConstruct.start(AbstractFlowConstruct.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:225)
... 25 more


My mule-config.xml as below

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
xsi:schemaLocation="
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.1/mule-vm.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.1/mule-jms.xsd">

<context:property-placeholder location="tsportal.properties" />

<spring:beans>
<spring:import resource="classpath:/spring/emergency.xml"/>
<spring:bean id="activeMqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<spring:property name="brokerURL">
<spring:value>${jms_url}</spring:value>
</spring:property>
</spring:bean>
<spring:bean id="emergencyService" class="com.hp.gdcc.ngecc.emergency.service.impl.EmergencyServiceImpl"/>
</spring:beans>

<jms:activemq-connector name="jmsConnector" specification="1.1" brokerURL="${jms_url}" connectionFactory-ref="activeMqConnectionFactory">
</jms:activemq-connector>

<custom-transformer name="IncidentToTriggerCondition" class="com.hp.gdcc.ngecc.emergency.transformers.IncidentToTriggerCondition"/>

<flow name="receivingIncident">
<composite-source>
<jms:inbound-endpoint topic="incident" connector-ref="jmsConnector" transformer-refs="IncidentToTriggerCondition"/>
</composite-source>
<vm:outbound-endpoint path="filterIncident" exchange-pattern="one-way" />
</flow>

<flow name="filterIncident">
<composite-source>
<vm:inbound-endpoint path="filterIncident" exchange-pattern="one-way"/>
</composite-source>
<component>
<spring-object bean="emergencyService"/>
</component>
<choice>
<when expression="1=1">
<vm:outbound-endpoint path="matchingIncident" exchange-pattern="one-way" />
</when>
</choice>
</flow>

</mule>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Jun 2, 2011, 8:54:58 AM6/2/11
to us...@mule.codehaus.org


On Thu, Jun 2, 2011 at 8:34 AM, chai kebin <mule.us...@mulesource.com> wrote:
Caused by: java.lang.NoSuchMethodError: org.mule.util.StringUtils.join

You have a library version mix-up, how are you running this Mule instance?

Andrew
Reply all
Reply to author
Forward
0 new messages