APAR status
Closed as program error.
Error description
2 listener instances, instead of 1, created for object that
implements both HttpSessionListener and ServletContextListener
Local fix Problem summary
****************************************************************
* USERS AFFECTED: Customers who wish to share variables in the *
* HttpSessionListener and *
* ServletContextLister object. *
****************************************************************
* PROBLEM DESCRIPTION: 2 listener instances, instead of 1, *
* are loaded if a listener class *
* implements both HttpSessionListener *
* and ServletContextListener. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
If there is a listener that implements both
HttpSessionListener and ServletContextListener, users can find
that the HttpSessionListener object is actually not the same
instance as the ServletContextListener object. The developer
can confirm this by checking:
i) class variable that resides in the HttpSessionListener
object cannot be used in the ServletContextListener object.
-- or --
ii) do a System.out.println("memeory address for the listener"
+ this) in the listener class; the user will find that 2
different memory addresses are printed for both
HttpSessionListener object and ServletContextListener object.
Problem conclusion
The problem is now fixed by changing the webcontainer. The
listener is now loaded up by the webcontainer, not session
manager. In addition, webcontainer ensures only one instance
of the listener is loaded even if this listener implements
both HttpSessionListener and ServletContextListner.
Temporary fix
APAR uploaded to
PQ99999.
Comments
APAR information |
APAR number |
PQ81253 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00A |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2003-11-21 |
Closed date |
2004-01-12 |
Last modified date |
2004-01-12 |
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 |
|