You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/11 16:37:18 UTC
BugRat Report #101 has been filed.
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 :-( ).