PQ52372: <JSP:USEBEAN ID="BLAH" CLASS="MYCLASS"> </JSP:USEBEAN>. CAUSES A NULL POINTER EXCEPTION "JSP 1.1 PROCESSOR"


APAR

APAR status
Closed as program error.

Error description
Customer is using the following syntax in their JSP. (JSP 1.1)<jsp:useBean id="blah" class="myClass"></jsp:useBean>.
This causes the following exception to be thrown
e365a9d0 ServletInstan X Uncaught
service() exception root cause {0}: {1}
  "JSP 1.1 Processor"
  java.lang.NullPointerException
at org.apache.jasper.compiler.JspParseEventListener.handleCharDa
ta
Local fix
use <jsp:useBean id="blah" class="myClass"/>  instead of<jsp:useBean id="blah" class="myClass"></jsp:useBean>.
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server 3.5.4 3.5.5     *
****************************************************************
* PROBLEM DESCRIPTION: Customer's code contained the following *
*                      <jsp:useBean id="me" class="myClass">   *
*                      </jsp:useBean>                          *
*                      Since the body ie. setProperty did not  *
*                      exist, the code failed with a           *
*                      NullPointerException.                   *
*                      Workaround was to not do this but       *
*                      instead use.                            *
*                      <jsp:useBean id="me" class="myClass"/>  *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Althought the jsp specification suggests not using the body
tag style for useBean if no body tags (ie. setProperty) are
being used, the jsp should still parse the page and behave
according to the specification.
Problem conclusion
Modified parser to allow useBean body tags without bodies to
be parsed.
Temporary fix
Comments
APAR information
APAR numberPQ52372
Reported component nameWAS ADVANCED AI
Reported component ID5648C8400
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-09-12
Closed date2001-09-13
Last modified date2001-09-20

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:

PQ52632

Modules/Macros
JSPPARSER
APAR is sysrouted TO one or more of the following:PQ52632Modules/Macros

Fix information
Fixed component nameWAS ADVANCED AI
Fixed component ID5648C8400

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ52372
IBM Group: Software Group
Modified date: 2001-09-20