tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eurotrans-Verlag" <verlag.preis...@t-online.de>
Subject RE: NPE at StandardWrapperValve.invoke() in Tomcat 7.0.16
Date Thu, 07 Jul 2011 21:45:27 GMT
Hi Pid,

> -----Original Message-----
> From: Pid [mailto:pid@pidster.com]
> Sent: Thursday, July 07, 2011 10:24 PM
> 
> Are you using parallel deployment or are you replacing the existing
> application when it's redeployed.
> 
> Maybe the old context is the one throwing the error.
> 
> 
> p

I don't use parallel deployment.
To redeploy a webapp, I just replace the old war file with a new one and wait for Tomcat to
redeploy it.

The logs on redeploy were this:

07.07.2011 00:24:09 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context []
07.07.2011 00:24:09 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:10 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:11 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
07.07.2011 00:24:12 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: The web application [] is still processing a request that has yet to finish.
This is very likely to create a memory leak. You can control the time allowed for requests
to finish by using the unloadDelay attribute of the standard Context implementation.
07.07.2011 00:24:12 org.apache.catalina.startup.ExpandWar deleteDir
SCHWERWIEGEND: [D:\tomcat7\work\Catalina\bildergalerie.pleier-it.de\_] could not be completely
deleted. The presence of the remaining files may cause problems
07.07.2011 00:24:12 org.apache.catalina.startup.ExpandWar delete
SCHWERWIEGEND: [D:\tomcat7\work\Catalina\bildergalerie.pleier-it.de\_] could not be completely
deleted. The presence of the remaining files may cause problems
07.07.2011 00:24:12 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
07.07.2011 00:24:17 org.apache.catalina.connector.CoyoteAdapter service
SCHWERWIEGEND: An exception or error occurred in the container during the request processing
java.lang.NullPointerException
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:287)
...

("SCHWERWIEGEND" should read like "SEVERE")

You're right, it could have something to do with the old context since it was still waiting
for a request to finish. Maybe I can reproduce the NPE if I make a servlet that takes a long
time to finish the request, to see what was the original exception that has been suppressed
by the NPE.


Regards,

Konstantin Prei├čer


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


Mime
View raw message