PQ58203: CUSTOM TAGS IN JSP ARE NOT ACCEPTING VECTORS AS THE DATA TYPE.

APAR status
Closed as Vendor Solution.

Error description
Customer has defined a tld file with a tag definition.  The
Java source for the tag processing defines the variable as a
java.util.Vector.  The tag defines the variable properly;
however WebSphere 4.0.2 does not find the setter method for the
attribute if the attribute is not a String.  (This worked in
WAS 3.5.x)
.
The message that the customer sees is
JSPG0132E: Unable to find setter method for attribute: values
The customer also may see the following exception in the
stdout (or stderr file)
[1/22/02 19:05:05:522 PST] 21468283 WebGroup      X SRVE0026E:
[Servlet Error]-[JSP 1.1 Processor]: com.ibm.servlet.engine.weba
Fatal Error: missing resource: java.util.PropertyResourceBundle
at com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendEr
at org.apache.jasper.runtime.JspServlet.unknownException(JspServ
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.
KeyWords: WebSphere jsp tag definition tld attribute setter
custom tlt 1.1 4.0 WAS
Local fix
The only local fix is to not use Vector as the class for the
tag.
Problem summary Problem conclusion Temporary fix Comments
This APAR is receiving a closure code of ISV. The APAR was
originally opened as a result of the customer not being able
to use the datatype Vector for a custom tag attribute.  The
actual problem was not the use of Vector but an attribute
name "values" being used for this custom tag.  WebSphere's
jsp processor is based upon Tomcat 3.1 which is used for
custom tags. Each custom tag attribute has it's own setter
setter method defined.  To locate these methods, Tomcat uses
introspection to find each setter method.  In the
implementation classes for custom tags, Tomcat defines a getter
method called getValues.  This method call returns an
Enumeration.  Due to this conflict of datatypes (Vector vs
Enumeration), introspection is unable to locate the "values"
attribute setter method.
===
Verified with Java Technology Center that "introspection" was
working properly for this situation.
===
Customer will need to modify their code to use a different
attribute name and setter method.
APAR information
APAR number PQ58203
Reported component name WEBSPHERE AE AI
Reported component ID 5630A2200
Reported release 400
Status CLOSED ISV
PE NoPE
HIPER NoHIPER
Submitted date 2002-02-21
Closed date 2002-02-27
Last modified date 2002-02-27

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros

Fix information

Applicable component levels


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ58203
IBM Group: Software Group
Modified date: Feb 27, 2002