tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
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:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/101>

REPORT #101 Details.

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

Synopsis: 
check for context==null in getSession()

Description:
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.

Reason:

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 :-( ).




Mime
View raw message