PQ85782: GETTING JAVA.LANG.CLASSCASTEXCEPTION AFTER REINSTALLING THE APPLICATION

 A fix is available

PQ86588: java.lang.ClassCastException after reinstalling an application



APAR status
Closed as program error.

Error description
When an application was stopped and re-started, the ORB was
creating a new ClientDelegate object, while some existing
objects still had references to the old ClientDelegate object.
The two objects conflicted, allowing calls to go to the wrong
underlying servant object resulting in ClassCastExceptions or
"Delegate not set" messages followed by further application
failures.
.
Sample scenario:
  App1
    Has one Stateless EJB and One Servlet
  App2
    Has One EJB
  Servlet App1 invokes the EJB in App1 this EJB in turn invokes
  EJB in App2.

  If you try to stop and start the App2 we get a
  ClassCastException
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All users of IBM JDK packaged with           *
*                 WebSphere Application Server 5.0.2 .         *
****************************************************************
* PROBLEM DESCRIPTION: Getting java.lang.ClassCastException    *
*                      after re-installing the application.    *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When an application was stopped and re-started, the ORB was
creating a new ClientDelegate object, while some existing
objects still had references to the old ClientDelegate object.
The two objects conflicted, allowing calls to go to the wrong
underlying servant object resulting in ClassCastExceptions or
"Delegate not set" messages followed by further application
failures.

Sample test case:
- App1: Has one Stateless EJB and One Servlet
- App2: Has One EJB Servlet App1 invokes the EJB in App1 this
        EJB in turn invokes EJB in App2.

If you try to stop and start the App2 we get a
ClassCastException.
Problem conclusion
This has been fixed in JDK defect SOV,68352 and the fix will
be included in JDK 1.3.1 SR7.
Temporary fix
ZE Fix Error 
PQ86588 04/03/24
Comments
APAR information
APAR number PQ85782
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00A
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-03-09
Closed date 2004-03-17
Last modified date 2004-03-24

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JDK          

Publications Referenced

Fix information

Applicable component levels
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PQ85782
IBM Group: Software Group
Modified date: Mar 24, 2004