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

             Bug #: 52957
           Summary: ClassCastException while removing Valve
           Product: Tomcat 7
           Version: 7.0.26
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: violet...@apache.org
    Classification: Unclassified


Created attachment 28490
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28490
Patch proposal

Hello,

The exception below is thrown when StandardPipeline.removeValve() is invoked:

Caused by: java.lang.ClassCastException: test.MyValve cannot be cast to
org.apache.catalina.Lifecycle
    at
org.apache.catalina.core.StandardPipeline.removeValve(StandardPipeline.java:461)
    at
org.apache.catalina.core.StandardPipeline.destroyInternal(StandardPipeline.java:222)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)


test.MyValve implements only Valve

I'm attaching a patch made against 7.0.x. Please review it and comment it.

Thanks in advance.
Regards
Violeta Georgieva

-- 
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to