To all,
After adding the global configuration element in the global.xml file for exception handling I'm getting the following error:
INFO 2016-04-24 11:29:42,802 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy@2b464384
INFO 2016-04-24 11:29:42,804 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy@681b42d3
INFO 2016-04-24 11:29:42,805 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy@77f7352a
INFO 2016-04-24 11:29:42,807 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy@4ede8888
INFO 2016-04-24 11:29:42,809 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy@571db8b4
INFO 2016-04-24 11:29:42,834 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing RegistryBroker
INFO 2016-04-24 11:29:42,835 [main] org.mule.construct.FlowConstructLifecycleManager: Disposing flow: getFlightFormFlow
ERROR 2016-04-24 11:29:42,836 [main] org.mule.construct.Flow: Failed to stop service: getFlightFormFlow
org.mule.api.lifecycle.LifecycleException: null
at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:153) ~[mule-core-3.7.3.jar:3.7.3]
at org.mule.construct.FlowConstructLifecycleManager.fireDisposePhase(FlowConstructLifecycleManager.java:144) ~[mule-core-3.7.3.jar:3.7.3]
at org.mule.construct.AbstractFlowConstruct.dispose(AbstractFlowConstruct.java:162) ~[mule-core-3.7.3.jar:3.7.3]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]
The log file get hundreds of lines:
INFO 2016-04-24 11:29:42,802 [main] org.mule.exception.CatchMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.CatchMessagingExceptionStrategy
Then it crashed with the error ERROR 2016-04-24 11:29:42,836 [main] org.mule.construct.Flow: Failed to stop service: getFlightFormFlow
I have added the file global.xml.
Any help will be appreciated.
Martijngetflights.zip
In the global.xml file, look in the configuration xml view.
The second exception element has an empty when attribute like this:
<catch-exception-strategy when = " " doc:name="Data unavailable - all other exceptions">
Remove the when and save. This worked for me.