Re: Calling flushBuffer() in TOMCAT 6.0.20 returning NullPointerException.

2010-02-22 Thread chinmaytotekar
; Konstantin, >> >> On 2/19/2010 2:22 PM, Konstantin Kolinko wrote: >>> 1. The OP (chinmaytotekar) never mentioned what Tomcat version (s)he was >>> using. >>> What a disgrace. >> >> The thread subject seems to contradict this statement. >> &

Re: Tomcat 6.0.20 Returning NullPointer upon closing response.getWriter()

2010-02-22 Thread chinmaytotekar
x27;t sharing the request object by saving it > in an instance variable? Sharing it would explain such an error. > > Bye > Felix > > > "chinmaytotekar" schrieb: > >> >>Tomcat returned NullpointerException upon closing response.getWriter(). This >>d

Tomcat 6.0.20 Returning NullPointer upon closing response.getWriter()

2010-02-22 Thread chinmaytotekar
Tomcat returned NullpointerException upon closing response.getWriter(). This does not occur always but sometimes. Not able to figure out the reason. java.lang.NullPointerException at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)

Calling flushBuffer() in TOMCAT 6.0.20 returning NullPointerException.

2010-02-19 Thread chinmaytotekar
Hi I have a servlet and when i call reponse.getWriter().flushBuffer() OR reponse.getWriter().println("SOME TEXT"), sometimes it gives following types of errors. This error does not occur always but sometimes. What can be the reason for this? *** ERROR java.lang.NullPointerEx