You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stanislav Mironov <sm...@gmail.com> on 2005/11/09 08:52:03 UTC

NPE while undeploying webapp on Tomcat 5.5.12

Hi All!

I get such exception report in catalina.xxxx.log when I undeploy web
application (deployed as WAR).

09.11.2005 10:46:59 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/context1]
09.11.2005 10:47:12 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/context1]
09.11.2005 10:47:12
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren
SEVERE: Exception invoking periodic operation:
java.lang.NullPointerException
	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1019)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1178)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
	at java.lang.Thread.run(Unknown Source)

What is the reason - bug in tomcat?

--
Stanislav Mironov

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


Re: NPE while undeploying webapp on Tomcat 5.5.12

Posted by Mark Thomas <ma...@apache.org>.
Stanislav Mironov wrote:
<snip>
>>>09.11.2005 10:47:12
>>>org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
>>>processChildren
>>>SEVERE: Exception invoking periodic operation:
>>>java.lang.NullPointerException
>>>      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883)
>>>
>>>What is the reason - bug in tomcat?
>>
>>Maybe, maybe not. What are the steps to reproduce?
> 
> 
> Steps to reproduce are here:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37425
> (JAR-locking related issue).
> The issue was marked INVALID, but I see no excuses for Tomcat to throw
> such meaningless exception without explanations what exactly has
> happened.

I have followed your steps and do not see any error. Can you provide 
me with the smallest possible webapp that demonstrates this issue? 
Without this, there isn't much more I can do. You will need to mail it 
to me directly (or attach it to the bugzilla issue) as the mailing 
lists block most (all?) attachments.

Mark


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


Re: NPE while undeploying webapp on Tomcat 5.5.12

Posted by Stanislav Mironov <sm...@gmail.com>.
2005/11/9, Mark Thomas <ma...@apache.org>:
> Stanislav Mironov wrote:
> > I get such exception report in catalina.xxxx.log when I undeploy web
> > application (deployed as WAR).
> >
> > 09.11.2005 10:46:59 org.apache.catalina.startup.HostConfig checkResources
> > INFO: Undeploying context [/context1]
> > 09.11.2005 10:47:12 org.apache.catalina.startup.HostConfig checkResources
> > INFO: Undeploying context [/context1]
>
> Looks like two overlapping attempts to undeploy the same context. Not
> surprising that this results in an NPE at some point.

Yes, I have noticed that.

> > 09.11.2005 10:47:12
> > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> > processChildren
> > SEVERE: Exception invoking periodic operation:
> > java.lang.NullPointerException
> >       at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883)
> >
> > What is the reason - bug in tomcat?
>
> Maybe, maybe not. What are the steps to reproduce?

Steps to reproduce are here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=37425
(JAR-locking related issue).
The issue was marked INVALID, but I see no excuses for Tomcat to throw
such meaningless exception without explanations what exactly has
happened.

--
Stanislav Mironov

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


Re: NPE while undeploying webapp on Tomcat 5.5.12

Posted by Mark Thomas <ma...@apache.org>.
Stanislav Mironov wrote:
> Hi All!
> 
> I get such exception report in catalina.xxxx.log when I undeploy web
> application (deployed as WAR).
> 
> 09.11.2005 10:46:59 org.apache.catalina.startup.HostConfig checkResources
> INFO: Undeploying context [/context1]
> 09.11.2005 10:47:12 org.apache.catalina.startup.HostConfig checkResources
> INFO: Undeploying context [/context1]

Looks like two overlapping attempts to undeploy the same context. Not 
surprising that this results in an NPE at some point.

> 09.11.2005 10:47:12
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
> processChildren
> SEVERE: Exception invoking periodic operation:
> java.lang.NullPointerException
> 	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883)
> 	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1019)
> 	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1178)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
> 	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
> 	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
> 	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
> 	at java.lang.Thread.run(Unknown Source)
> 
> What is the reason - bug in tomcat?

Maybe, maybe not. What are the steps to reproduce?

Mark


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