PQ80192: RECEIVE CLASSCASTEXCEPTION AFTER STOPPING APP SERVER HANDLING REMOTE REQUEST.

 A fix is available

Obtain the fix for this APAR



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.ClassCastException
Local 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 information
APAR number PQ80192
Reported component name WEBSPHERE FOR Z
Reported component ID 5655I3500
Reported release 500
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-10-29
Closed date 2003-12-07
Last modified date 2004-01-03

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
BBOUBINF          

Publications Referenced

Fix information
Fixed component name WEBSPHERE FOR Z
Fixed component ID 5655I3500

Applicable component levels
R500 PSY UQ82904    UP03/12/15 P F312

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


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