java.lang.IllegalStateException: Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose'

MuleSoft JIRA | Esteban Wasinger | 9 months ago
  1. 0

    *Mule throws a LifecycleException when disposing an Extension Source* * When working with Mule Extension Sources, a way to fail at start time is to to throw an exception inside {{start()}} of a Source, this exception inside the SDK is analysed and if it could not be handled, is propagated to Mule. Mule when detect this exception starts to dispose the Source, when this occur a exceptions is thrown. Stack trace: {code}ERROR 2016-02-23 14:09:35,670 [Thread-4] org.mule.construct.AbstractFlowConstruct: Exception found trying to dispose object. Shutdown will continue java.lang.IllegalStateException: Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose' at org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:116) ~[classes/:?] at org.mule.processor.SedaStageLifecycleManager.fireDisposePhase(SedaStageLifecycleManager.java:117) ~[classes/:?] at org.mule.processor.SedaStageInterceptingMessageProcessor.dispose(SedaStageInterceptingMessageProcessor.java:429) ~[classes/:?] at org.mule.processor.chain.AbstractMessageProcessorChain.dispose(AbstractMessageProcessorChain.java:133) ~[classes/:?] at org.mule.api.lifecycle.LifecycleUtils.disposeIfNeeded(LifecycleUtils.java:252) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct.disposeIfDisposable(AbstractFlowConstruct.java:330) ~[classes/:?] at org.mule.construct.AbstractPipeline.doDispose(AbstractPipeline.java:438) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:166) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:163) ~[classes/:?] at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:136) ~[classes/:?] at org.mule.construct.FlowConstructLifecycleManager.fireDisposePhase(FlowConstructLifecycleManager.java:144) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct.dispose(AbstractFlowConstruct.java:162) ~[classes/:?] at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237) ~[classes/:?] at org.mule.lifecycle.phases.MuleContextDisposePhase.applyLifecycle(MuleContextDisposePhase.java:99) ~[classes/:?] at org.mule.config.spring.SpringRegistryLifecycleManager$SpringContextDisposePhase.applyLifecycle(SpringRegistryLifecycleManager.java:132) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleCallback.doApplyLifecycle(RegistryLifecycleCallback.java:91) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleCallback.onTransition(RegistryLifecycleCallback.java:67) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:109) ~[classes/:?] at org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:71) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:69) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:64) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138) ~[classes/:?] at org.mule.lifecycle.RegistryBrokerLifecycleManager.fireDisposePhase(RegistryBrokerLifecycleManager.java:82) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:63) ~[classes/:?] at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:121) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61) ~[classes/:?] at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:371) ~[classes/:?] at org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContext(AbstractMuleContextTestCase.java:306) ~[classes/:?] at org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContextPerTest(AbstractMuleContextTestCase.java:287) ~[classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) ~[junit-4.11.jar:?] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.11.jar:?] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) ~[junit-4.11.jar:?] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) ~[junit-4.11.jar:?] at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168) ~[junit-4.11.jar:?] at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) ~[junit-4.11.jar:?] at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) ~[junit-4.11.jar:?]{code}

    MuleSoft JIRA | 9 months ago | Esteban Wasinger
    java.lang.IllegalStateException: Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose'
  2. 0

    *Mule throws a LifecycleException when disposing an Extension Source* * When working with Mule Extension Sources, a way to fail at start time is to to throw an exception inside {{start()}} of a Source, this exception inside the SDK is analysed and if it could not be handled, is propagated to Mule. Mule when detect this exception starts to dispose the Source, when this occur a exceptions is thrown. Stack trace: {code}ERROR 2016-02-23 14:09:35,670 [Thread-4] org.mule.construct.AbstractFlowConstruct: Exception found trying to dispose object. Shutdown will continue java.lang.IllegalStateException: Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose' at org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:116) ~[classes/:?] at org.mule.processor.SedaStageLifecycleManager.fireDisposePhase(SedaStageLifecycleManager.java:117) ~[classes/:?] at org.mule.processor.SedaStageInterceptingMessageProcessor.dispose(SedaStageInterceptingMessageProcessor.java:429) ~[classes/:?] at org.mule.processor.chain.AbstractMessageProcessorChain.dispose(AbstractMessageProcessorChain.java:133) ~[classes/:?] at org.mule.api.lifecycle.LifecycleUtils.disposeIfNeeded(LifecycleUtils.java:252) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct.disposeIfDisposable(AbstractFlowConstruct.java:330) ~[classes/:?] at org.mule.construct.AbstractPipeline.doDispose(AbstractPipeline.java:438) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:166) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:163) ~[classes/:?] at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:136) ~[classes/:?] at org.mule.construct.FlowConstructLifecycleManager.fireDisposePhase(FlowConstructLifecycleManager.java:144) ~[classes/:?] at org.mule.construct.AbstractFlowConstruct.dispose(AbstractFlowConstruct.java:162) ~[classes/:?] at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237) ~[classes/:?] at org.mule.lifecycle.phases.MuleContextDisposePhase.applyLifecycle(MuleContextDisposePhase.java:99) ~[classes/:?] at org.mule.config.spring.SpringRegistryLifecycleManager$SpringContextDisposePhase.applyLifecycle(SpringRegistryLifecycleManager.java:132) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleCallback.doApplyLifecycle(RegistryLifecycleCallback.java:91) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleCallback.onTransition(RegistryLifecycleCallback.java:67) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:109) ~[classes/:?] at org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:71) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:69) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:64) ~[classes/:?] at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138) ~[classes/:?] at org.mule.lifecycle.RegistryBrokerLifecycleManager.fireDisposePhase(RegistryBrokerLifecycleManager.java:82) ~[classes/:?] at org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:63) ~[classes/:?] at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:121) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69) ~[classes/:?] at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61) ~[classes/:?] at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:371) ~[classes/:?] at org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContext(AbstractMuleContextTestCase.java:306) ~[classes/:?] at org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContextPerTest(AbstractMuleContextTestCase.java:287) ~[classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) ~[junit-4.11.jar:?] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.11.jar:?] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) ~[junit-4.11.jar:?] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) ~[junit-4.11.jar:?] at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168) ~[junit-4.11.jar:?] at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) ~[junit-4.11.jar:?] at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) ~[junit-4.11.jar:?]{code}

    MuleSoft JIRA | 9 months ago | Esteban Wasinger
    java.lang.IllegalStateException: Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose'
  3. 0

    Script engine Jython was not found in Mule ESB 3.7.0 application

    Stack Overflow | 6 months ago | ProcessKiller
    org.mule.api.lifecycle.LifecycleException: Lifecycle Manager 'mypythonapplicationFlow.stage1' phase 'start' does not support phase 'dispose'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mule Application hot deployment, Poll(schedule job) invalid

    Stack Overflow | 2 weeks ago | Edward
    java.lang.IllegalStateException: Lifecycle Manager 'MuleContext' phase 'start' does not support phase 'dispose'
  6. 0

    log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@3ba5016. log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@3ba5016 class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@3ba5016. log4j: Using URL [jar:file:/C:/rdd/tools/AnypointStudio/plugins/org.mule.tooling.server.3.5.0.beta_3.5.0.201403111239/mule/tooling/tooling-support-3.5.0-M4.jar!/log4j.properties] for automatic log4j configuration. log4j: Reading configuration from URL jar:file:/C:/rdd/tools/AnypointStudio/plugins/org.mule.tooling.server.3.5.0.beta_3.5.0.201403111239/mule/tooling/tooling-support-3.5.0-M4.jar!/log4j.properties log4j: Parsing for [root] with value=[INFO, console]. log4j: Level token is [INFO]. log4j: Category root set to INFO log4j: Parsing appender named "console". log4j: Parsing layout options for "console". log4j: Setting property [conversionPattern] to [%-5p %d [%t] %c: %m%n]. log4j: End of parsing for "console". log4j: Parsed "console" options. log4j: Parsing for [com.mycompany] with value=[DEBUG]. log4j: Level token is [DEBUG]. log4j: Category com.mycompany set to DEBUG log4j: Handling log4j.additivity.com.mycompany=[null] log4j: Parsing for [org.springframework.beans.factory] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.springframework.beans.factory set to WARN log4j: Handling log4j.additivity.org.springframework.beans.factory=[null] log4j: Parsing for [org.apache] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.apache set to WARN log4j: Handling log4j.additivity.org.apache=[null] log4j: Parsing for [org.mule] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.mule set to INFO log4j: Handling log4j.additivity.org.mule=[null] log4j: Parsing for [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] with value=[ERROR]. log4j: Level token is [ERROR]. log4j: Category org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog set to ERROR log4j: Handling log4j.additivity.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog=[null] log4j: Finished configuring. Deploying application: maestro_poc No plugins folder specified. No plugin will be used INFO 2014-05-16 09:44:27,521 [main] org.mule.module.launcher.ArchiveDeployer: ================== New Exploded Artifact: maestro_poc INFO 2014-05-16 09:44:28,633 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'maestro_poc' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-05-16 09:44:28,642 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Initializing app 'maestro_poc' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-05-16 09:44:28,888 [main] org.mule.lifecycle.AbstractLifecycleManager: Initialising RegistryBroker INFO 2014-05-16 09:44:29,146 [main] org.mule.config.spring.MuleArtifactContext: Refreshing org.mule.config.spring.MuleArtifactContext@4f79a28b: startup date [Fri May 16 09:44:29 PDT 2014]; root of context hierarchy INFO 2014-05-16 09:44:31,326 [main] org.mule.lifecycle.AbstractLifecycleManager: Initialising model: _muleSystemModel WARN 2014-05-16 09:44:31,391 [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor: Invalid JavaBean property 'port' being accessed! Ambiguous write methods found next to actually used [public void org.mule.endpoint.URIBuilder.setPort(java.lang.String)]: [public void org.mule.endpoint.URIBuilder.setPort(int)] INFO 2014-05-16 09:44:31,523 [main] org.mule.lifecycle.AbstractLifecycleManager: Initialising connector: connector.http.mule.default INFO 2014-05-16 09:44:31,580 [main] org.mule.construct.FlowConstructLifecycleManager: Initialising flow: maestro_pocFlow1 INFO 2014-05-16 09:44:31,580 [main] org.mule.exception.DefaultMessagingExceptionStrategy: Initialising exception listener: org.mule.exception.DefaultMessagingExceptionStrategy@571cf19b INFO 2014-05-16 09:44:31,593 [main] org.mule.processor.SedaStageLifecycleManager: Initialising service: maestro_pocFlow1.stage1 INFO 2014-05-16 09:44:31,610 [main] org.mule.config.spring.SpringXmlConfigurationBuilder: Configured Mule using "org.mule.config.spring.SpringXmlConfigurationBuilder" with configuration resource(s): "[ConfigResource{resourceName='C:\Users\ManohaR\AnypointStudio\workspace\.mule\apps\maestro_poc\maestro_poc.xml'}]" INFO 2014-05-16 09:44:31,611 [main] org.mule.config.builders.AutoConfigurationBuilder: Configured Mule using "org.mule.config.builders.AutoConfigurationBuilder" with configuration resource(s): "[ConfigResource{resourceName='C:\Users\ManohaR\AnypointStudio\workspace\.mule\apps\maestro_poc\maestro_poc.xml'}]" INFO 2014-05-16 09:44:31,611 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Starting app 'maestro_poc' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-05-16 09:44:31,614 [main] org.mule.util.queue.TransactionalQueueManager: Starting ResourceManager INFO 2014-05-16 09:44:31,633 [main] org.mule.util.queue.TransactionalQueueManager: Started ResourceManager INFO 2014-05-16 09:44:31,636 [main] org.mule.transport.http.HttpConnector: Connected: HttpConnector { name=connector.http.mule.default lifecycle=initialise this=2a7ac641 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[http] serviceOverrides=<none> } INFO 2014-05-16 09:44:31,636 [main] org.mule.transport.http.HttpConnector: Starting: HttpConnector { name=connector.http.mule.default lifecycle=initialise this=2a7ac641 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[http] serviceOverrides=<none> } INFO 2014-05-16 09:44:31,637 [main] org.mule.lifecycle.AbstractLifecycleManager: Starting connector: connector.http.mule.default INFO 2014-05-16 09:44:31,642 [main] org.mule.modules.cors.agents.DefaultSplashScreenAgent: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + DevKit Extensions (0) used in this application + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-05-16 09:44:31,643 [main] org.mule.lifecycle.AbstractLifecycleManager: Starting model: _muleSystemModel INFO 2014-05-16 09:44:31,644 [main] org.mule.construct.FlowConstructLifecycleManager: Starting flow: maestro_pocFlow1 INFO 2014-05-16 09:44:31,645 [main] org.mule.processor.SedaStageLifecycleManager: Starting service: maestro_pocFlow1.stage1 ERROR 2014-05-16 09:44:31,690 [main] org.mule.module.launcher.application.DefaultMuleApplication: null java.lang.NullPointerException at java.io.Reader.<init>(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.raml.parser.visitor.YamlValidationService.validate(YamlValidationService.java:81) at org.raml.parser.visitor.YamlValidationService.validate(YamlValidationService.java:71) at org.mule.module.apikit.Configuration.validateRaml(Configuration.java:179) at org.mule.module.apikit.Configuration.loadApiDefinition(Configuration.java:166) at org.mule.module.apikit.Router.start(Router.java:112) at org.mule.processor.chain.AbstractMessageProcessorChain.start(AbstractMessageProcessorChain.java:94) at org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:322) at org.mule.construct.AbstractPipeline.doStart(AbstractPipeline.java:312) at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:141) at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:137) at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:138) at org.mule.construct.FlowConstructLifecycleManager.fireStartPhase(FlowConstructLifecycleManager.java:92) at org.mule.construct.AbstractFlowConstruct.start(AbstractFlowConstruct.java:136) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237) at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:273) at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:152) at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:123) at org.mule.registry.AbstractRegistryBroker.fireLifecycle(AbstractRegistryBroker.java:76) at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:118) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87) at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69) at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:270) at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:119) at org.mule.module.launcher.artifact.ArtifactWrapper$4.execute(ArtifactWrapper.java:98) at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) at org.mule.module.launcher.artifact.ArtifactWrapper.start(ArtifactWrapper.java:93) at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:26) at org.mule.module.launcher.ArchiveDeployer.guardedDeploy(ArchiveDeployer.java:269) at org.mule.module.launcher.ArchiveDeployer.deployArtifact(ArchiveDeployer.java:290) at org.mule.module.launcher.ArchiveDeployer.deployExplodedApp(ArchiveDeployer.java:257) at org.mule.module.launcher.ArchiveDeployer.deployExplodedArtifact(ArchiveDeployer.java:110) at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:275) at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:144) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:106) INFO 2014-05-16 09:44:31,693 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Disposing app 'maestro_poc' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-05-16 09:44:31,694 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing RegistryBroker INFO 2014-05-16 09:44:31,705 [main] org.mule.config.spring.MuleArtifactContext: Closing org.mule.config.spring.MuleArtifactContext@4f79a28b: startup date [Fri May 16 09:44:29 PDT 2014]; root of context hierarchy INFO 2014-05-16 09:44:31,707 [main] org.mule.construct.FlowConstructLifecycleManager: Disposing flow: maestro_pocFlow1 ERROR 2014-05-16 09:44:31,708 [main] org.mule.construct.Flow: Failed to stop service: maestro_pocFlow1 org.mule.api.lifecycle.LifecycleException: Lifecycle Manager 'maestro_pocFlow1.stage1' phase 'start' does not support phase 'dispose' at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:153) at org.mule.construct.FlowConstructLifecycleManager.fireDisposePhase(FlowConstructLifecycleManager.java:144) at org.mule.construct.AbstractFlowConstruct.dispose(AbstractFlowConstruct.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:327) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) at org.mule.config.spring.SpringRegistry.doDispose(SpringRegistry.java:105) at org.mule.config.spring.SpringRegistryLifecycleManager$SpringContextDisposePhase.applyLifecycle(SpringRegistryLifecycleManager.java:91) at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:241) at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:152) at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:123) at org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:69) at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:58) at org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:53) at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:152) at org.mule.lifecycle.RegistryBrokerLifecycleManager.fireDisposePhase(RegistryBrokerLifecycleManager.java:78) at org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:52) at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:114) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87) at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69) at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61) at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:317) at org.mule.module.launcher.application.DefaultMuleApplication.doDispose(DefaultMuleApplication.java:360) at org.mule.module.launcher.application.DefaultMuleApplication.dispose(DefaultMuleApplication.java:231) at org.mule.module.launcher.artifact.ArtifactWrapper$1.execute(ArtifactWrapper.java:39) at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) at org.mule.module.launcher.artifact.ArtifactWrapper.dispose(ArtifactWrapper.java:34) at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:30) at org.mule.module.launcher.ArchiveDeployer.guardedDeploy(ArchiveDeployer.java:269) at org.mule.module.launcher.ArchiveDeployer.deployArtifact(ArchiveDeployer.java:290) at org.mule.module.launcher.ArchiveDeployer.deployExplodedApp(ArchiveDeployer.java:257) at org.mule.module.launcher.ArchiveDeployer.deployExplodedArtifact(ArchiveDeployer.java:110) at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:275) at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:144) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:106) Caused by: java.lang.IllegalStateException: Lifecycle Manager 'maestro_pocFlow1.stage1' phase 'start' does not support phase 'dispose' at org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:118) at org.mule.processor.SedaStageLifecycleManager.fireDisposePhase(SedaStageLifecycleManager.java:117) at org.mule.processor.SedaStageInterceptingMessageProcessor.dispose(SedaStageInterceptingMessageProcessor.java:404) at org.mule.processor.chain.AbstractMessageProcessorChain.dispose(AbstractMessageProcessorChain.java:128) at org.mule.construct.AbstractFlowConstruct.disposeIfDisposable(AbstractFlowConstruct.java:338) at org.mule.construct.AbstractPipeline.doDispose(AbstractPipeline.java:422) at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:171) at org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:168) at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:138) ... 44 more INFO 2014-05-16 09:44:31,709 [main] org.mule.lifecycle.AbstractLifecycleManager: Stopping model: _muleSystemModel INFO 2014-05-16 09:44:31,710 [main] org.mule.lifecycle.AbstractLifecycleManager: Disposing model: _muleSystemModel INFO 2014-05-16 09:44:31,843 [main] org.mule.DefaultMuleContext: ********************************************************************** * Application "maestro_poc" shut down normally on: 5/16/14 9:44 AM * * Up for: 0 days, 0 hours, 0 mins, 0.229 sec * ********************************************************************** ERROR 2014-05-16 09:44:31,874 [main] org.mule.module.launcher.ArchiveDeployer: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy artifact 'maestro_poc', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.module.launcher.DeploymentStartException: NullPointerException: at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:139) at org.mule.module.launcher.artifact.ArtifactWrapper$4.execute(ArtifactWrapper.java:98) at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) at org.mule.module.launcher.artifact.ArtifactWrapper.start(ArtifactWrapper.java:93) at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:26) at org.mule.module.launcher.ArchiveDeployer.guardedDeploy(ArchiveDeployer.java:269) at org.mule.module.launcher.ArchiveDeployer.deployArtifact(ArchiveDeployer.java:290) at org.mule.module.launcher.ArchiveDeployer.deployExplodedApp(ArchiveDeployer.java:257) at org.mule.module.launcher.ArchiveDeployer.deployExplodedArtifact(ArchiveDeployer.java:110) at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:275) at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:144) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:106) Caused by: org.mule.api.lifecycle.LifecycleException: null at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:153) at org.mule.construct.FlowConstructLifecycleManager.fireStartPhase(FlowConstructLifecycleManager.java:92) at org.mule.construct.AbstractFlowConstruct.start(AbstractFlowConstruct.java:136) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237) at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:273) at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:152) at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:123) at org.mule.registry.AbstractRegistryBroker.fireLifecycle(AbstractRegistryBroker.java:76) at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:118) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91) at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87) at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69) at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:270) at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:119) ... 11 more Caused by: java.lang.NullPointerException at java.io.Reader.<init>(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.raml.parser.visitor.YamlValidationService.validate(YamlValidationService.java:81) at org.raml.parser.visitor.YamlValidationService.validate(YamlValidationService.java:71) at org.mule.module.apikit.Configuration.validateRaml(Configuration.java:179) at org.mule.module.apikit.Configuration.loadApiDefinition(Configuration.java:166) at org.mule.module.apikit.Router.start(Router.java:112) at org.mule.processor.chain.AbstractMessageProcessorChain.start(AbstractMessageProcessorChain.java:94) at org.mule.construct.AbstractFlowConstruct.startIfStartable(AbstractFlowConstruct.java:322) at org.mule.construct.AbstractPipeline.doStart(AbstractPipeline.java:312) at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:141) at org.mule.construct.AbstractFlowConstruct$2.onTransition(AbstractFlowConstruct.java:137) at org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:138) ... 29 more INFO 2014-05-16 09:44:31,878 [main] org.mule.module.launcher.DeploymentDirectoryWatcher: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Mule is up and kicking (every 5000ms) + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    MuleSoft JIRA | 3 years ago | rajesh manohar
    org.mule.api.lifecycle.LifecycleException: Lifecycle Manager 'maestro_pocFlow1.stage1' phase 'start' does not support phase 'dispose'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Lifecycle Manager 'source-fail-on-start.stage1' phase 'start' does not support phase 'dispose'

      at org.mule.lifecycle.AbstractLifecycleManager.checkPhase()
    2. Mule Core
      AbstractFlowConstruct.dispose
      1. org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:116)[classes/:?]
      2. org.mule.processor.SedaStageLifecycleManager.fireDisposePhase(SedaStageLifecycleManager.java:117)[classes/:?]
      3. org.mule.processor.SedaStageInterceptingMessageProcessor.dispose(SedaStageInterceptingMessageProcessor.java:429)[classes/:?]
      4. org.mule.processor.chain.AbstractMessageProcessorChain.dispose(AbstractMessageProcessorChain.java:133)[classes/:?]
      5. org.mule.api.lifecycle.LifecycleUtils.disposeIfNeeded(LifecycleUtils.java:252)[classes/:?]
      6. org.mule.construct.AbstractFlowConstruct.disposeIfDisposable(AbstractFlowConstruct.java:330)[classes/:?]
      7. org.mule.construct.AbstractPipeline.doDispose(AbstractPipeline.java:438)[classes/:?]
      8. org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:166)[classes/:?]
      9. org.mule.construct.AbstractFlowConstruct$4.onTransition(AbstractFlowConstruct.java:163)[classes/:?]
      10. org.mule.lifecycle.AbstractLifecycleManager.invokePhase(AbstractLifecycleManager.java:136)[classes/:?]
      11. org.mule.construct.FlowConstructLifecycleManager.fireDisposePhase(FlowConstructLifecycleManager.java:144)[classes/:?]
      12. org.mule.construct.AbstractFlowConstruct.dispose(AbstractFlowConstruct.java:162)[classes/:?]
      12 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)[?:?]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_66]
      3. java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_66]
      3 frames
    4. Mule Core
      MuleContextDisposePhase.applyLifecycle
      1. org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:237)[classes/:?]
      2. org.mule.lifecycle.phases.MuleContextDisposePhase.applyLifecycle(MuleContextDisposePhase.java:99)[classes/:?]
      2 frames
    5. Spring Config
      SpringRegistryLifecycleManager$SpringContextDisposePhase.applyLifecycle
      1. org.mule.config.spring.SpringRegistryLifecycleManager$SpringContextDisposePhase.applyLifecycle(SpringRegistryLifecycleManager.java:132)[classes/:?]
      1 frame
    6. Mule Core
      DefaultMuleContext.dispose
      1. org.mule.lifecycle.RegistryLifecycleCallback.doApplyLifecycle(RegistryLifecycleCallback.java:91)[classes/:?]
      2. org.mule.lifecycle.RegistryLifecycleCallback.onTransition(RegistryLifecycleCallback.java:67)[classes/:?]
      3. org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138)[classes/:?]
      4. org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:109)[classes/:?]
      5. org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:71)[classes/:?]
      6. org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:69)[classes/:?]
      7. org.mule.registry.AbstractRegistryBroker$2.onTransition(AbstractRegistryBroker.java:64)[classes/:?]
      8. org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:138)[classes/:?]
      9. org.mule.lifecycle.RegistryBrokerLifecycleManager.fireDisposePhase(RegistryBrokerLifecycleManager.java:82)[classes/:?]
      10. org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:63)[classes/:?]
      11. org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:121)[classes/:?]
      12. org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:91)[classes/:?]
      13. org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:87)[classes/:?]
      14. org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:69)[classes/:?]
      15. org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:61)[classes/:?]
      16. org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:371)[classes/:?]
      16 frames
    7. Mule Functional Test Framework (TCK)
      AbstractMuleContextTestCase.disposeContextPerTest
      1. org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContext(AbstractMuleContextTestCase.java:306)[classes/:?]
      2. org.mule.tck.junit4.AbstractMuleContextTestCase.disposeContextPerTest(AbstractMuleContextTestCase.java:287)[classes/:?]
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_66]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_66]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_66]
      4. java.lang.reflect.Method.invoke(Method.java:497)[?:1.8.0_66]
      4 frames
    9. JUnit
      FailOnTimeout$StatementThread.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)[junit-4.11.jar:?]
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.11.jar:?]
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)[junit-4.11.jar:?]
      4. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)[junit-4.11.jar:?]
      5. org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168)[junit-4.11.jar:?]
      6. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)[junit-4.11.jar:?]
      7. org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)[junit-4.11.jar:?]
      7 frames