Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3806

IllegalStateException on shutdown after running itest/databindings/interop

    XMLWordPrintableJSON

Details

    Description

      After running itest/databindings/interop, the test completes OK but an IllegalStateException is thrown by the shutdown thread. Here's the stack trace:

      Exception in thread "Thread-1" java.lang.IllegalStateException: Shutdown in prog
      ress
      at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.ja
      va:55)
      at java.lang.Runtime.removeShutdownHook(Runtime.java:220)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager.stop(T
      uscanyListenerManager.java:87)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager$Listen
      erManagerShutdownThread.run(TuscanyListenerManager.java:100)
      Exception in thread "Thread-5" java.lang.IllegalStateException: Shutdown in prog
      ress
      at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.ja
      va:55)
      at java.lang.Runtime.removeShutdownHook(Runtime.java:220)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager.stop(T
      uscanyListenerManager.java:87)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager$Listen
      erManagerShutdownThread.run(TuscanyListenerManager.java:100)
      java.lang.IllegalStateException: Shutdown in progress
      at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.ja
      va:55)
      at java.lang.Runtime.removeShutdownHook(Runtime.java:220)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager.stop(T
      uscanyListenerManager.java:87)
      at org.apache.axis2.context.ConfigurationContext.terminate(Configuration
      Context.java:744)
      at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:
      465)
      at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.destroy(A
      xis2ServiceServlet.java:295)
      at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder
      .java:315)
      at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286
      )
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:1
      70)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:1
      24)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:5
      66)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.Server.doStop(Server.java:281)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559)
      java.lang.IllegalStateException: Shutdown in progress
      at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.ja
      va:55)
      at java.lang.Runtime.removeShutdownHook(Runtime.java:220)
      at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListenerManager.stop(T
      uscanyListenerManager.java:87)
      at org.apache.axis2.context.ConfigurationContext.terminate(Configuration
      Context.java:744)
      at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:
      465)
      at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.destroy(A
      xis2ServiceServlet.java:295)
      at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder
      .java:315)
      at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286
      )
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:1
      70)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:1
      24)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:5
      66)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:1
      29)
      at org.mortbay.jetty.Server.doStop(Server.java:281)
      at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:6
      5)
      at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559)

      Attachments

        Activity

          People

            scnash Simon Nash
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: