PQ93747; 5.1.1.1: ClassCastException when stopping
application using async beans
Downloadable files
Abstract
ClassCastException when stopping applications using
asynchronous beans daemon threads.
Download Description
PQ93747 resolves the following problem:
PROBLEM SUMMARY:
Errors appear in the system logs when stopping an application that has
created one or more asynchronous beans daemon threads that have started
non-asynchronous beans threads:
WSVR0044E: Unable to stop EJB jar: [module_name].jar,
java.lang.Thread
Asynchronous Beans will attempt to stop all daemon threads (Work objects)
that were started by an application when the application is stopped. If
any of the daemon threads start other threads without using asynchronous
beans, an error will be seen in the WebSphere® Application server logs and
the application will fail to stop correctly.
USERS AFFECTED:
Users of WebSphere Application Server Enterprise Edition V5.0 releases who
useAsynchronous Beans that start daemon threads.
PROBLEM DESCRIPTION:
Asynchronous Beans automatically releases all daemon threads that were
started by an application when that application is stopped. Asynchronous
beans is not expecting the threads to be non-asynch beans (Work) threads
and is attempting to cast all threads to Work objects, which may result in
a ClassCastException.
RECOMMENDATION:
Apply the intermediate fix or service pack for this APAR. When
applications start non-asynchronous beans threads from an asynchronous
beans daemon thread, the application server will log the following error
in the system log:
WSVR0044E: Unable to stop EJB jar: [module_name].jar,
java.lang.Thread
Asynchronous beans is not expecting the threads to be non-asynch beans
(Work) threads and is attempting to cast all threads to Work objects,
which may result in a ClassCastException.
PROBLEM CONCLUSION:
Asynchronous Beans has been changed to allow for non-asynchronous beans
threads to be started within the same thread group as the asynchronous
beans daemon thread. These threads will not be released.
Prerequisites
Please download the UpdateInstaller below to install this fix.