RE: [OT] Calling flushBuffer() in TOMCAT 6.0.20 returning NullPointerException.

2010-02-23 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: Calling flushBuffer() in TOMCAT 6.0.20 returning > NullPointerException. > > Every time, a coconut. Now that brings back memories... never could knock the bloody things off. - Chuck THIS COMMUNICATION MAY CONTAIN CONF

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

2010-02-23 Thread Pid
On 23/02/2010 07:33, chinmaytotekar wrote: Ya got the problem.. The problem was response.getWriter() object was declared as global in servlet, so it became common to all threads. and if one thread closes it, it used to give NullPtrException in other threads. Every time, a coconut. p Kons

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

2010-02-22 Thread chinmaytotekar
Ya got the problem.. The problem was response.getWriter() object was declared as global in servlet, so it became common to all threads. and if one thread closes it, it used to give NullPtrException in other threads. Konstantin Kolinko wrote: > > 2010/2/19 Christopher Schultz : >> Konstantin,

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

2010-02-19 Thread Konstantin Kolinko
2010/2/19 Christopher Schultz : > 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. > Ah, sorry. I missed that. Best

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

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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. > 2. For example of similar st

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

2010-02-19 Thread Konstantin Kolinko
2010/2/19 Pid : > On 19/02/2010 16:49, Christopher Schultz wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Pid, >> >> On 2/19/2010 11:39 AM, Pid wrote: >>> >>> !ThreadSafe >>> >>> This type of error was a symptom of the request/response being held as >>> an instance field in at

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

2010-02-19 Thread Pid
On 19/02/2010 16:49, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 2/19/2010 11:39 AM, Pid wrote: !ThreadSafe This type of error was a symptom of the request/response being held as an instance field in at least the last one of the couple of recent times we s

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

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 2/19/2010 11:39 AM, Pid wrote: > !ThreadSafe > > This type of error was a symptom of the request/response being held as > an instance field in at least the last one of the couple of recent times > we saw this AFAICR. I certainly agree that t

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

2010-02-19 Thread Pid
On 19/02/2010 16:31, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chinmay, I checked the source, and this is what we've got: public MessageBytes setValue( String name ) { for ( int i = 0; i< count; i++ ) { if(headers[i].getName().equalsIg

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

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chinmay, I checked the source, and this is what we've got: public MessageBytes setValue( String name ) { for ( int i = 0; i < count; i++ ) { if(headers[i].getName().equalsIgnoreCase(name)) { // 267 for ( int j=

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

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chinmay, On 2/19/2010 10:50 AM, Christopher Schultz wrote: > Are you setting any headers in your app? Perhaps one of them is NULL. I just checked, and this JSP does not trigger an error in TC 6.0.20: - --- http:/

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

2010-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chinmay, On 2/19/2010 7:54 AM, chinmaytotekar wrote: > 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 b

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

2010-02-19 Thread Pid
On 19/02/2010 12:54, chinmaytotekar wrote: 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? Last tim

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