java.lang.IllegalStateException: Phase 'dispose' has already been executed

MuleSoft JIRA | Francis Upton | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I am using Mule ESB EE 2.2.2 and testing it using Junit tests with the FunctionalTestCase mechanism (that is my Junit tests all subclass from this). I get this except intermittently when running the tests. This is a similar problem to that of MULE-4589, but in dispose instead of start. ********************************************************************** * Mule shut down normally on: 10/31/09 11:35 PM * * Server was up for: 0 days, 0 hours, 0 mins, 4.55 sec * ********************************************************************** INFO 2009-10-31 23:35:16,511 [Wrapper-Shutdown-Hook] org.mule.MuleServer: Mule server shutting down due to normal shutdown request Error in WrapperListener.stop callback. java.lang.IllegalStateException: Phase 'dispose' has already been executed java.lang.IllegalStateException: Phase 'dispose' has already been executed at org.mule.lifecycle.GenericLifecycleManager.checkPhase(GenericLifecycleManager.java:177) at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:201) at org.mule.MuleServer.shutdown(MuleServer.java:411) at org.mule.module.boot.MuleServerWrapper.stop(MuleServerWrapper.java:74) at org.tanukisoftware.wrapper.WrapperManager.privilegedStopInner(WrapperManager.java:3180) at org.tanukisoftware.wrapper.WrapperManager.access$2600(WrapperManager.java:103) at org.tanukisoftware.wrapper.WrapperManager$8.run(WrapperManager.java:1995) at java.security.AccessController.doPrivileged(Native Method) at org.tanukisoftware.wrapper.WrapperManager.stop(WrapperManager.java:1992) at org.tanukisoftware.wrapper.WrapperManager$2.run(WrapperManager.java:467) <-- Wrapper Stopped

    MuleSoft JIRA | 7 years ago | Francis Upton
    java.lang.IllegalStateException: Phase 'dispose' has already been executed
  2. 0

    I am using Mule ESB EE 2.2.2 and testing it using Junit tests with the FunctionalTestCase mechanism (that is my Junit tests all subclass from this). I get this except intermittently when running the tests. This is a similar problem to that of MULE-4589, but in dispose instead of start. ********************************************************************** * Mule shut down normally on: 10/31/09 11:35 PM * * Server was up for: 0 days, 0 hours, 0 mins, 4.55 sec * ********************************************************************** INFO 2009-10-31 23:35:16,511 [Wrapper-Shutdown-Hook] org.mule.MuleServer: Mule server shutting down due to normal shutdown request Error in WrapperListener.stop callback. java.lang.IllegalStateException: Phase 'dispose' has already been executed java.lang.IllegalStateException: Phase 'dispose' has already been executed at org.mule.lifecycle.GenericLifecycleManager.checkPhase(GenericLifecycleManager.java:177) at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:201) at org.mule.MuleServer.shutdown(MuleServer.java:411) at org.mule.module.boot.MuleServerWrapper.stop(MuleServerWrapper.java:74) at org.tanukisoftware.wrapper.WrapperManager.privilegedStopInner(WrapperManager.java:3180) at org.tanukisoftware.wrapper.WrapperManager.access$2600(WrapperManager.java:103) at org.tanukisoftware.wrapper.WrapperManager$8.run(WrapperManager.java:1995) at java.security.AccessController.doPrivileged(Native Method) at org.tanukisoftware.wrapper.WrapperManager.stop(WrapperManager.java:1992) at org.tanukisoftware.wrapper.WrapperManager$2.run(WrapperManager.java:467) <-- Wrapper Stopped

    MuleSoft JIRA | 7 years ago | Francis Upton
    java.lang.IllegalStateException: Phase 'dispose' has already been executed

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Phase 'dispose' has already been executed

      at org.mule.lifecycle.GenericLifecycleManager.checkPhase()
    2. Mule Core
      MuleServer.shutdown
      1. org.mule.lifecycle.GenericLifecycleManager.checkPhase(GenericLifecycleManager.java:177)
      2. org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:201)
      3. org.mule.MuleServer.shutdown(MuleServer.java:411)
      3 frames
    3. org.mule.module
      MuleServerWrapper.stop
      1. org.mule.module.boot.MuleServerWrapper.stop(MuleServerWrapper.java:74)
      1 frame
    4. Java Service Wrapper
      WrapperManager$8.run
      1. org.tanukisoftware.wrapper.WrapperManager.privilegedStopInner(WrapperManager.java:3180)
      2. org.tanukisoftware.wrapper.WrapperManager.access$2600(WrapperManager.java:103)
      3. org.tanukisoftware.wrapper.WrapperManager$8.run(WrapperManager.java:1995)
      3 frames
    5. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    6. Java Service Wrapper
      WrapperManager$2.run
      1. org.tanukisoftware.wrapper.WrapperManager.stop(WrapperManager.java:1992)
      2. org.tanukisoftware.wrapper.WrapperManager$2.run(WrapperManager.java:467)
      2 frames