APAR status
Closed as program error.
Error description
ClassCastException is observed during a stateless session
bean creation process.
This condition occurs ONLY IF there was a previous method call
to the same bean AND while the container is servicing the
bean's method call, the application module is stopped and
restarted before the method is returned back to the client.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere application server users who use *
* stateless session beans and attempt to *
* stop and restart the application server may *
* be affected. *
****************************************************************
* PROBLEM DESCRIPTION: When application module is stopped and *
* restarted while a stateless sesscion *
* bean is in service, any subsequent *
* access to the bean will result in a *
* ClassCastException. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
After an application module is stopped and restarted while a
bean is in service, the in service bean is pinned in the wrapper
cache and is not removed from the wrapper cache when the
application is stopped. This leaves the wrapper orphaned in the
cache after business method is returned.
Since the classloaders of the wrapper class used by the stopped
and restarted application module are different, the use of the
orphaned wrapper by the new classloader will cause the
ClassCastException.
Problem conclusion
The EJB Container is changed to remove the orphaned wrapper
from the cache and allow the last bean access to succeed
upon server restart. Any subsequent bean access will not
find the wrapper in the wrapper cache and a new instance will
be created. As a result, no exception will be observed.
Temporary fix Comments
APAR information |
APAR number |
PQ80158 |
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 |
2003-10-28 |
Closed date |
2003-11-03 |
Last modified date |
2003-11-03 |
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 |
R00W PSY |
UP |
|