PQ86588: java.lang.ClassCastException after
reinstalling an application
Downloadable files
Abstract
When an application is stopped and re-started, the ORB
creates a new ClientDelegate object, while some existing objects still
have references to the old ClientDelegate object.
Download Description
ERROR DESCRIPTION:
When an application is stopped and re-started, the ORB creates a new
ClientDelegate object, while some existing objects still have references
to the old ClientDelegate object. The two objects conflict, 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, you get a ClassCastException.
USERS AFFECTED: All users of IBM Java™ SDK packaged with WebSphere
Application Server V5.0.2.
PROBLEM CONCLUSION:
This has been fixed in Java SDK defect sov 68352 and sov 70899. The fix
will be included in Java SDK 1.3.1 SR7.