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 taLocal 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 is sysrouted FROM one or more of the following: PQ52372 APAR is sysrouted TO one or more of the following: Modules/Macros
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.