APAR status
Closed as program error.
Error description
The following occurs if ServletCaching is enabled with the
following code.
rd = context.getNamedDispatcher("JSRPC05Servlet");
rd.include(request, response);
If instead you use the following code, the problem does not
occur.
rd = context.getRequestDispatcher("/JSRPC05Servlet");
rd.include(request, response);
Here is the message:
Nested Exception is java.lang.NullPointerException
at com.ibm.ws.cache.servlet.ServletWrapper.buildName
(ServletWrapper.java:133)
at com.ibm.ws.cache.servlet.ServletWrapper.prepareMetadata
(ServletWrapper.java:99)
at com.ibm.ws.cache.servlet.CacheHook.handleFragment
(CacheHook.java:201)
at com.ibm.ws.cache.servlet.CacheHook.handleServlet
(CacheHook.java:137)
at com.ibm.ws.cache.servlet.ServletWrapper.service
(ServletWrapper.java:249)
.
.
.
.
at com.ibm.ws.webcontainer.webapp.WebAppNamedDispatcher.
handleWebAppDispatch (WebAppNamedDispatcher.java:377)
at com.ibm.ws.webcontainer.webapp.WebAppNamedDispatcher.
dispatch(WebAppNamedDispatcher.java:204)
at com.ibm.ws.webcontainer.webapp.WebAppNamedDispatcher.
include(WebAppNamedDispatcher.java:137)
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server dynamic *
* cache users using *
* ServletContext.getNamedDispatcher() *
****************************************************************
* PROBLEM DESCRIPTION: NullPointerException in *
* ServletWrapper when using *
* ServletContext.getNamedDispatcher() *
* in a servlet to be cached. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
NullPointerException in ServletWrapper occurs because a
NamedDispatcher has no contextpath or servletpath.
Problem conclusion
When using a NamedDispatcher, the contextpath is obtained from
the request and the cache ID is built using servlet name
instead of servletpath.
Temporary fix Comments
APAR information |
APAR number |
PQ85816 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-03-10 |
Closed date |
2004-03-17 |
Last modified date |
2004-03-17 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|