org.mule.module.launcher.DeploymentException: Failed to undeploy application [mule-example-echo-v3.3.2]

MuleSoft JIRA | Julien Eluard | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Calling DeploymentService#undeploy on a stopped app generates following exception: WARN 2012-11-14 18:46:28,839 [812117267@qtp-1630755718-5] org.springframework.remoting.support.RemoteInvocationTraceInterceptor: Processing of HttpInvokerServiceExporter remote call resulted in fatal exception: com.mulesoft.mmc.agent.v3.service.ApplicationService.undeploy org.mule.module.launcher.DeploymentException: Failed to undeploy application [mule-example-echo-v3.3.2] at org.mule.module.launcher.DefaultMuleDeployer.undeploy(DefaultMuleDeployer.java:86) at org.mule.module.launcher.DeploymentService.guardedUndeploy(DeploymentService.java:448) at org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:337) at org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:351) at com.mulesoft.mmc.agent.service.impl.ApplicationServiceImpl.undeploy(ApplicationServiceImpl.java:299) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy26.undeploy(Unknown Source) 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.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205) at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38) at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78) at com.mulesoft.common.remoting.StreamSupportingHttpInvokerServiceExporter.invokeAndCreateResult(StreamSupportingHttpInvokerServiceExporter.java:122) at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:73) at com.mulesoft.mmc.agent.remoting.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:38) at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:713) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.IllegalStateException: Already in lifecycle phase 'stop', cannot fire the same phase twice at org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:106) at org.mule.DefaultMuleContext.stop(DefaultMuleContext.java:270) at org.mule.module.launcher.application.DefaultMuleApplication.stop(DefaultMuleApplication.java:398) at org.mule.module.launcher.application.ApplicationWrapper.stop(ApplicationWrapper.java:126) at org.mule.module.launcher.DefaultMuleDeployer.undeploy(DefaultMuleDeployer.java:68) ... 48 more It also appears that this triggers the deployer monitor thread and trigger re-deployment of previously stopped app. See following logs: INFO 2012-11-14 18:46:28,881 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.DeploymentService: ================== New Exploded Application: mule-example-echo-v3.3.2 INFO 2012-11-14 18:46:28,889 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'mule-example-echo-v3.3.2' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2012-11-14 18:46:32,798 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'mule-example-echo-v3.3.2' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    MuleSoft JIRA | 5 years ago | Julien Eluard
    org.mule.module.launcher.DeploymentException: Failed to undeploy application [mule-example-echo-v3.3.2]
  2. 0

    Calling DeploymentService#undeploy on a stopped app generates following exception: WARN 2012-11-14 18:46:28,839 [812117267@qtp-1630755718-5] org.springframework.remoting.support.RemoteInvocationTraceInterceptor: Processing of HttpInvokerServiceExporter remote call resulted in fatal exception: com.mulesoft.mmc.agent.v3.service.ApplicationService.undeploy org.mule.module.launcher.DeploymentException: Failed to undeploy application [mule-example-echo-v3.3.2] at org.mule.module.launcher.DefaultMuleDeployer.undeploy(DefaultMuleDeployer.java:86) at org.mule.module.launcher.DeploymentService.guardedUndeploy(DeploymentService.java:448) at org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:337) at org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:351) at com.mulesoft.mmc.agent.service.impl.ApplicationServiceImpl.undeploy(ApplicationServiceImpl.java:299) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy26.undeploy(Unknown Source) 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.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205) at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38) at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78) at com.mulesoft.common.remoting.StreamSupportingHttpInvokerServiceExporter.invokeAndCreateResult(StreamSupportingHttpInvokerServiceExporter.java:122) at org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:73) at com.mulesoft.mmc.agent.remoting.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:38) at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:713) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.IllegalStateException: Already in lifecycle phase 'stop', cannot fire the same phase twice at org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:106) at org.mule.DefaultMuleContext.stop(DefaultMuleContext.java:270) at org.mule.module.launcher.application.DefaultMuleApplication.stop(DefaultMuleApplication.java:398) at org.mule.module.launcher.application.ApplicationWrapper.stop(ApplicationWrapper.java:126) at org.mule.module.launcher.DefaultMuleDeployer.undeploy(DefaultMuleDeployer.java:68) ... 48 more It also appears that this triggers the deployer monitor thread and trigger re-deployment of previously stopped app. See following logs: INFO 2012-11-14 18:46:28,881 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.DeploymentService: ================== New Exploded Application: mule-example-echo-v3.3.2 INFO 2012-11-14 18:46:28,889 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'mule-example-echo-v3.3.2' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2012-11-14 18:46:32,798 [Mule.app.deployer.monitor.1.thread.1] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'mule-example-echo-v3.3.2' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    MuleSoft JIRA | 5 years ago | Julien Eluard
    org.mule.module.launcher.DeploymentException: Failed to undeploy application [mule-example-echo-v3.3.2]

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Already in lifecycle phase 'stop', cannot fire the same phase twice

      at org.mule.lifecycle.AbstractLifecycleManager.checkPhase()
    2. Mule Core
      DefaultMuleContext.stop
      1. org.mule.lifecycle.AbstractLifecycleManager.checkPhase(AbstractLifecycleManager.java:106)
      2. org.mule.DefaultMuleContext.stop(DefaultMuleContext.java:270)
      2 frames
    3. Mule 3 Launcher
      DeploymentService.undeploy
      1. org.mule.module.launcher.application.DefaultMuleApplication.stop(DefaultMuleApplication.java:398)
      2. org.mule.module.launcher.application.ApplicationWrapper.stop(ApplicationWrapper.java:126)
      3. org.mule.module.launcher.DefaultMuleDeployer.undeploy(DefaultMuleDeployer.java:68)
      4. org.mule.module.launcher.DeploymentService.guardedUndeploy(DeploymentService.java:448)
      5. org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:337)
      6. org.mule.module.launcher.DeploymentService.undeploy(DeploymentService.java:351)
      6 frames
    4. com.mulesoft.mmc
      ApplicationServiceImpl.undeploy
      1. com.mulesoft.mmc.agent.service.impl.ApplicationServiceImpl.undeploy(ApplicationServiceImpl.java:299)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    7. Spring Context
      RemoteInvocationTraceInterceptor.invoke
      1. org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    9. Unknown
      $Proxy26.undeploy
      1. $Proxy26.undeploy(Unknown Source)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. Spring Context
      RemoteInvocationBasedExporter.invoke
      1. org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)
      2. org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
      3. org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)
      3 frames
    12. com.mulesoft.common
      StreamSupportingHttpInvokerServiceExporter.invokeAndCreateResult
      1. com.mulesoft.common.remoting.StreamSupportingHttpInvokerServiceExporter.invokeAndCreateResult(StreamSupportingHttpInvokerServiceExporter.java:122)
      1 frame
    13. Spring
      HttpInvokerServiceExporter.handleRequest
      1. org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:73)
      1 frame
    14. com.mulesoft.mmc
      HttpInvokerServiceExporter.handleRequest
      1. com.mulesoft.mmc.agent.remoting.HttpInvokerServiceExporter.handleRequest(HttpInvokerServiceExporter.java:38)
      1 frame
    15. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)
      2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      5. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      5 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    17. Jetty Server
      SslSocketConnector$SslConnection.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.Server.handle(Server.java:326)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      14. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      15. org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:713)
      15 frames
    18. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame