tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50826] New: (Embedded) Tomcat.destroy() throws java.lang.IllegalArgumentException
Date Thu, 24 Feb 2011 13:47:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50826

           Summary: (Embedded) Tomcat.destroy() throws
                    java.lang.IllegalArgumentException
           Product: Tomcat 7
           Version: 7.0.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: max.valjanski@gmail.com


Embedded Tomcat sometimes throws this exception when calling destroy() method:

java.lang.IllegalArgumentException: null source
    at java.util.EventObject.<init>(EventObject.java:56)
    at javax.management.Notification.<init>(Notification.java:184)
    at
org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:5433)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285)
    at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:969)
    at
org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1108)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285)
    at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:969)
    at
org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1108)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285)
    at
org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285)
    at
org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:786)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:285)
    at org.apache.catalina.startup.Tomcat.destroy(Tomcat.java:323)
    at
su.msk.jet.nioproxy.rule.config.EmbeddedWebserver.stop(EmbeddedWebserver.java:26)

I think that StandardContext.destroyInternal() misses check that
this.getObjectName()!=null

-- 
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


Mime
View raw message