Re: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-30 Thread Janeve George

Konstantin / Chris,

In reply to Chris' question, the server is deployed as a service layer 
that exposes web services. Only SOAP requests are processed in the 
server. There are also few JSP files which are used by Nagios to monitor 
these servers. After having a look at the bug description that 
Konstantin mentioned, I believe upgrading tomcat to the latest version 
might resolve this issue.


Thanks a lot for your pointers.

Regards,
Janeve George

Konstantin Kolinko wrote:


1. Tomcat 4.0.3 is pretty old and unsupported. The last version in the
4.x series is 4.1.36.

2. Trying to google checkHead site:mail-archives.apache.org shows
some mentions of similar issues in the year 2002, e.g.

(note: The bugzilla server name has changed, but bug ids are the same)

http://issues.apache.org/bugzilla/show_bug.cgi?id=10331

Citing from there:
Your extra code does not matter -- your code is still violating the
servlet spec
restrictions on accessing the response object from one thread in another thread.
Your expectation that this is ever going to work is incorrect.

http://issues.apache.org/bugzilla/show_bug.cgi?id=8039

Citing from there:
This problem has already been fixed in 4.0.4 Beta.

It looks like nobody has observed this problem in the last 5 years,
thus it has been fixed.

You need to upgrade to get rid of the issue.

Good luck.

Best regards,
- Konstantin

2007/10/29, Christopher Schultz [EMAIL PROTECTED]:
 


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Janeve,

Also, is it possible to sniff the HTTP request that is causing this
exception? I'm wondering if you're dealing with a client that is sending
a broken HTTP request.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHJfHa9CaO5/Lv0PARAv+hAJ9DJNu1weYmaFX+W/jhAfEnamKPAwCgmbRG
L6Goqdpz2b2YVHv9H8/Vxm8=
=WVeX
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Janeve George

Hi,

We are frequently getting following exception while running the tomcat 
server.


Exception in thread HttpProcessor[8080][7] java.lang.NullPointerException
   at 
org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpResponseStream.java:253)
   at 
org.apache.catalina.connector.http.HttpResponseStream.init(HttpResponseStream.java:104)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.createOutputStream(HttpResponseImpl.java:220)
   at 
org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBase.java:725)
   at 
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:469)
   at 
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:236)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1039)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

   at java.lang.Thread.run(Thread.java:595)
Exception in thread HttpProcessor[8080][8] java.lang.NullPointerException
   at 
org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpResponseStream.java:253)
   at 
org.apache.catalina.connector.http.HttpResponseStream.init(HttpResponseStream.java:104)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.createOutputStream(HttpResponseImpl.java:220)
   at 
org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBase.java:725)
   at 
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:469)
   at 
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:236)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1039)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

   at java.lang.Thread.run(Thread.java:595)
Exception in thread HttpProcessor[8080][9] java.lang.NullPointerException
   at 
org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpResponseStream.java:253)
   at 
org.apache.catalina.connector.http.HttpResponseStream.init(HttpResponseStream.java:104)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.createOutputStream(HttpResponseImpl.java:220)
   at 
org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBase.java:725)
   at 
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:469)
   at 
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:236)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1039)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

   at java.lang.Thread.run(Thread.java:595)
...

We are having no clue of why this exception is being frequently thrown.

Our server is frequently crashing due to this. It would be really 
appreciated if anybody could shed some light on resolving this issue???


Thanks in advance.

Warm regards,
Janeve George

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Caldarale, Charles R
 From: Janeve George [mailto:[EMAIL PROTECTED] 
 Subject: Exception in thread HttpProcessor[8080][2] 
 java.lang.NullPointerException
 
 We are having no clue of why this exception is being 
 frequently thrown.

Don't suppose you'd care to supply some useful information:

1) Tomcat version

2) JRE/JDK version and vendor

3) platform of interest

Blindly posting a stack trace doesn't help much without some context.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Janeve George

Hi Chuck,

Pardon me for any confusion created due to my previous post. Following 
are the details of the deployment.


Tomcat version: 4.0.3
JDK: Sun's jdk 1.5.0
Platform: Linux

Regards,
Janeve

Caldarale, Charles R wrote:

From: Janeve George [mailto:[EMAIL PROTECTED] 
Subject: Exception in thread HttpProcessor[8080][2] 
java.lang.NullPointerException


We are having no clue of why this exception is being 
frequently thrown.
   



Don't suppose you'd care to supply some useful information:

1) Tomcat version

2) JRE/JDK version and vendor

3) platform of interest

Blindly posting a stack trace doesn't help much without some context.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Janeve,

Also, is it possible to sniff the HTTP request that is causing this
exception? I'm wondering if you're dealing with a client that is sending
a broken HTTP request.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHJfHa9CaO5/Lv0PARAv+hAJ9DJNu1weYmaFX+W/jhAfEnamKPAwCgmbRG
L6Goqdpz2b2YVHv9H8/Vxm8=
=WVeX
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Konstantin Kolinko
1. Tomcat 4.0.3 is pretty old and unsupported. The last version in the
4.x series is 4.1.36.

2. Trying to google checkHead site:mail-archives.apache.org shows
some mentions of similar issues in the year 2002, e.g.

(note: The bugzilla server name has changed, but bug ids are the same)

http://issues.apache.org/bugzilla/show_bug.cgi?id=10331

Citing from there:
Your extra code does not matter -- your code is still violating the
servlet spec
restrictions on accessing the response object from one thread in another thread.
Your expectation that this is ever going to work is incorrect.

http://issues.apache.org/bugzilla/show_bug.cgi?id=8039

Citing from there:
This problem has already been fixed in 4.0.4 Beta.

It looks like nobody has observed this problem in the last 5 years,
thus it has been fixed.

You need to upgrade to get rid of the issue.

Good luck.

Best regards,
- Konstantin

2007/10/29, Christopher Schultz [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Janeve,

 Also, is it possible to sniff the HTTP request that is causing this
 exception? I'm wondering if you're dealing with a client that is sending
 a broken HTTP request.

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFHJfHa9CaO5/Lv0PARAv+hAJ9DJNu1weYmaFX+W/jhAfEnamKPAwCgmbRG
 L6Goqdpz2b2YVHv9H8/Vxm8=
 =WVeX
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]