tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #101 has been filed.
Date Mon, 11 Sep 2000 14:37:18 GMT
Bug report #101 has just been filed.

You can view the report at the following URL:


REPORT #101 Details.

Project: Catalina
Category: Feature Requests
SubCategory: Enhancement
Class: swbug
State: received
Priority: high
Severity: serious
Confidence: public
   Release: current toplevel CVS
   JVM Release: 1.2
   Operating System: Solaris
   OS Release: 2.7
   Platform: Sparc

check for context==null in getSession()

Please add the following code to getSession(boolean create)

in org.apache.tomcat.connector.HttpRequestBase

	if(context == null)
	    return null;

after the ( session != null ) tests.


I don't know why (seems to be a bug somewhere in catalina) but sometimes context is null in
getSession and a null pointer exception is thrown. Unfortunatly an unhandled null pointer
exception can sometimes results in a hard crash of the java executable when java is use together
with JNI shared libs in some environments ( eg. my current servlet and jsp and shared lib
setup on solaris :-( ).

View raw message