You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/11/29 00:13:13 UTC

DO NOT REPLY [Bug 50358] New: Embedded.stopInternal sets state to STARTING, should be STOPPING

https://issues.apache.org/bugzilla/show_bug.cgi?id=50358

           Summary: Embedded.stopInternal sets state to STARTING, should
                    be STOPPING
           Product: Tomcat 7
           Version: 7.0.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: martin.grotzke@googlemail.com


Embedded.stopInternal invokes setState(LifecycleState.STARTING), this should be
changed to setState(LifecycleState.STOPPING).

Setting LifecycleState.STARTING during stopInternal leads to a
LifecycleException when the Embedded is shut down:
LifecycleException:  An invalid Lifecycle transition was attempted
([after_stop]) for component [StandardService[null]] in state [STARTING]
    at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:321)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
    at
de.javakaffee.web.msm.MemcachedSessionManagerIntegrationTest.tearDown(MemcachedSessionManagerIntegrationTest.java:112)

This failure leads to failing tests in my case.

I'm using the (deprecated) Embedded for integration testing the
memcached-session-manager
(http://code.google.com/p/memcached-session-manager/).
I'm just working on a tomcat7 branch, which shall diverge as little as possible
from the master/trunk, therefore I'm still using Embedded instead of the newly
introduced Tomcat.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50358] Embedded.stopInternal sets state to STARTING, should be STOPPING

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50358

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-11-29 08:42:42 EST ---
Thanks for the report. This has been fixed in 7.0.x and will be included in
7.0.6 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org