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.
 
URL LANGUAGE SIZE(Bytes)
v5.0 UpdateInstaller US English 7250000
v5.1 UpdateInstaller US English 7250000
 
 
Installation Instructions
Please review the readme.txt for detailed installation instructions.
 
URL LANGUAGE SIZE(Bytes)
Readme US English 2912
 
Download package
What is DD?
Download RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ93747 for v5.0.2 11/17/2004 US English 12188 FTP DD
PQ93747 for v5.0.2.4 11/17/2004 US English 12440 FTP DD
PQ9377 for v5.1.1 11/17/2004 US English 12400 FTP DD
 
Technical support
1-800-IBM-SERV (U.S. Only)
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
Problems (APARS) fixed
PQ93747
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Enterprise Edition (EE)
Operating system(s): Windows
Software version: 5.1.1.1
Software edition:
Reference #: 4008322
IBM Group: Software Group
Modified date: Nov 17, 2004