APAR status
Closed as program error.
Error description
JSP PAGE SETTING THE CONTENT-LANGUAGE HEADER CAUSES NULL
POINTER EXCEPTION UNLESS EXPERIATION HEADER IS SET
Problem summary: In a jsp if one calls two addHeader and sets NO
expiration header, there is a NullPointerException thrown. If on
two addHeader and DOES set an expiration header, all works fine.
interesting fact is that if one uses the setHeader, no exception
thrown, it works.
Local fix
The problem is that the jsp add content language header twice. O
response can only have one content-language header. Thus web con
have to remove one and left a hole in headers. That hole causes
NullPointerException.
As a workaround, customer can remove one addHeader("Content-Lang
...).
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server servlet or JSP *
* users. *
****************************************************************
* PROBLEM DESCRIPTION: A servlet or jsp that calls *
* removeHeader will leave a hole (null) *
* in the header list. That causes a *
* NullPointerException. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
A servlet or jsp that calls removeHeader will leave a hole
(null) in the header list due to an incorrect algorithm to
remove headers. This hole causes a NullPointerException.
Problem conclusion
Fixing the algorithm of removing headers fixed the problem.
Temporary fix
Fixtest posted on
pq99999.
Comments
APAR information |
APAR number |
PQ82970 |
Reported component name |
WEBSPHERE AE NT |
Reported component ID |
5630A2201 |
Reported release |
400 |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Submitted date |
2004-01-07 |
Closed date |
2004-03-10 |
Last modified date |
2004-03-10 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
SRLS
Applicable component levels |
R400 PSY |
UP |
|