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

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 number PQ52632
Reported component name WEBSPHERE AE AI
Reported component ID 5630A2200
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2001-09-20
Closed date 2001-09-20
Last modified date 2001-09-20

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

APAR is sysrouted TO one or more of the following:

Modules/Macros
JSP PARSER        

Fix information
Fixed component name WEBSPHERE AE AI
Fixed component ID 5630A2200

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ52632
IBM Group: Software Group
Modified date: Sep 20, 2001