Bug report #751 has just been filed. You can view the report at the following URL: <http://znutar.cortexity.com/BugRatViewer/ShowReport/751> REPORT #751 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: serious Confidence: public Environment: Release: 3.2.1 JVM Release: 1.3.0 Operating System: Linux 2.2.16 OS Release: Red Hat Linux 7.0 Platform: x86 Synopsis: NullPointerException thrown in SessionInterceptor when debug logging is on Description: When embedding Tomcat into my application using EmbededTomcat, I started seeing NullPointerException being thrown on every HTTP request to the server. On tracing through the source code, I found the problem in line 136 of SessionInterceptor.java: public int beforeBody( Request rrequest, Response response ) { String reqSessionId = response.getSessionId(); ==> if( debug>0 ) cm.log("Before Body " + reqSessionId ); if( reqSessionId==null) return 0; If response.getSessionId() returns null and debug logging is turned on, the code attempts to concatenate a string with null, resulting in the NullPointerException seen.Title: BugRat Report # 751
BugRat Report # 751
Project: Tomcat | Release: 3.2.1 |
Category: Bug Report | SubCategory: New Bug Report |
Class: swbug | State: received |
Priority: medium | Severity: serious |
Confidence:
public
|
Submitter:
Kris Zaragoza ( [EMAIL PROTECTED] )
Date Submitted:
Jan 12 2001, 10:19:19 CST
Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )
- Synopsis:
- NullPointerException thrown in SessionInterceptor when debug logging is on
- Environment: (jvm, os, osrel, platform)
- 1.3.0, Linux 2.2.16, Red Hat Linux 7.0, x86
- Additional Environment Description:
- Report Description:
- When embedding Tomcat into my application using EmbededTomcat, I started seeing NullPointerException being thrown on every HTTP request to the server. On tracing through the source code, I found the problem in line 136 of SessionInterceptor.java: public int beforeBody( Request rrequest, Response response ) { String reqSessionId = response.getSessionId(); ==> if( debug>0 ) cm.log("Before Body " + reqSessionId ); if( reqSessionId==null) return 0; If response.getSessionId() returns null and debug logging is turned on, the code attempts to concatenate a string with null, resulting in the NullPointerException seen.
- How To Reproduce:
- null
- Workaround:
- null
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]