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 51883] NullPointerException in StandardContextValve.invoke
Date Fri, 23 Sep 2011 13:30:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51883

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|                            |All

--- Comment #1 from Konstantin Kolinko <knst.kolinko@gmail.com> 2011-09-23 13:30:13
UTC ---
In TOMCAT_7_0_19: (The code is the same in the current trunk)
It is inside the following method:
  public final void invoke(Request request, Response response)
  throws IOException, ServletException {

122     // Wait if we are reloading
123     boolean reloaded = false;
124     while (context.getPaused()) {
125     reloaded = true;
126     try {
127     Thread.sleep(1000);
128     } catch (InterruptedException e) {
129     // Ignore
130     }
131     }

The only reason that I see why context can be null on line 124 is that the
webapp has been stopped.

In that case you would not be able to process the request anyway. The NPE is
unexpected, but it saves you from infinite looping there.

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