PQ80192: RECEIVE CLASSCASTEXCEPTION AFTER STOPPING APP SERVER HANDLING REMOTE REQUEST. | |||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description Customer stops then restarts an application server using the administration console while an EJB remote method is running. . upon restarting application, the j2ee client receives a java.lang.classcastexception while inoking EJBHome.create. . Restarting theserver again causes the problem to go away The following message is encounteredd in the servant: Trace: 2003/09/11 05:45:53.233 01 t=8CD7E0 c=A.6 key=P8 (1300700 FunctionName: com.ibm.ejs.container.util.ExceptionUtil SourceId: com.ibm.ejs.container.util.ExceptionUtil Category: ERROR ExtendedMessage: CNTR0019E: Non-application exception occurre while processing method "create". Exception data: com.ibm.ejs.container.CreateFailureExcepti java.lang.ClassCastException; nested exception is: java.lang.ClassCastException java.lang.ClassCastExceptionLocal fix Restart application server.Problem summary **************************************************************** * USERS AFFECTED: All users of WebSphere Application Server * * V5.0 for z/OS * **************************************************************** * PROBLEM DESCRIPTION: ClassCastException encountered when * * trying to create a bean reference on a * * home which has been stopped and * * restarted while another bean reference * * was in service. * **************************************************************** * RECOMMENDATION: * **************************************************************** When 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. Subsequently, when an application is trying to create a bean from the restarted bean home, the container finds the bean in the wrapper cache and returns the old instance to the bean home. The generated home bean tries to cache the wrapper returned by the container to the business interface. Since the wrapper is created from the first application container, its class loader is different from the class loaded from the current (second) application container, hence a class cast exception is thrown in the generated home bean.Problem conclusion Code has been modified such that during stopBean processing, registerHome forces the drop of the bean reference from the wrapper cache regardless of if the bean is in service. APAR PQ80192 is associated with SERVICE LEVEL W502000 of WebSphere Application Server V5.0 for z/OS.Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
Document Information |
Current web document: swg1PQ80192.html
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server for z/OS
Operating system(s):
Software version: 500
Software edition:
Reference #: PQ80192
IBM Group: Software Group
Modified date: Jan 3, 2004
(C) Copyright IBM Corporation 2000, 2009. All Rights Reserved.