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 15077] - NPE when reloading servlets in org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:686)
Date Wed, 11 Dec 2002 17:31:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15077>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15077

NPE when reloading servlets in  org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:686)





------- Additional Comments From francis.andre@easynet.fr  2002-12-11 17:31 -------
Hi

I had working on this issue some days before I checked your answer and I found 
a bypass. I din't really check if it could be useful or if it is full correct, 
but it works for me.

Anyway, here is the fix which consists in resetting the singleThreadModel to 
false when unloading the instance.

Regards


Index: StandardWrapper.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-
4.0/catalina/src/share/org/apache/catalina/core/StandardWrapper.java,v
retrieving revision 1.44
diff -u -r1.44 StandardWrapper.java
--- StandardWrapper.java	10 Dec 2002 12:47:05 -0000	1.44
+++ StandardWrapper.java	11 Dec 2002 17:14:50 -0000
@@ -1176,6 +1145,7 @@
             nInstances = 0;
         }
 
+		singleThreadModel = false;
         unloading = false;
         fireContainerEvent("unload", this);

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message