PQ58445: JAVA.LANG.CLASSCASTEXCEPTION CAUSED AS A RESULT OF STORING AN JAVAX.EJB.HANDLE OBJECT INTO THE SESSION OBJECT

APAR status
Closed as program error.

Error description
In 4.0 we have started supporting storing objects of type
EJBHome and EJBObject into persistent session objects.
Internally, we are storing the javax.ejb.Handle for those
objects instead of the actual objects. So when we try to
retrieve these objects using a session.getValue() call
we check whether the retrieved object is of type
javax.ejb.Handle and if so we get the EJBObject from it
and return it to the client.
The customer is actually storing the javax.ejb.Handle object
into the session object and so when it is being retrieved the
session manager is returning the EJBObject instead of the
actual javax.ejb.Handle and a ClassCastException gets thrown
when the application tries to cast it to type Handle.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server - Session       *
*                 Manager Users                                *
****************************************************************
* PROBLEM DESCRIPTION: If an object of type javax.ejb.Handle   *
*                      is stored in the session object and     *
*                      an attempt is made to retrieve it a     *
*                      classcastexception is being thrown.     *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
If an object of type javax.ejb.Handle is stored in the session
object and an attempt is made to retrieve it a
classcastexception is being thrown.
Problem conclusion
The session manager code has been modified so that an object
of type javax.ejb.Handle can be stored in the session object.
Temporary fix
PQ58445
Comments
APAR information
APAR number PQ58445
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-02-26
Closed date 2002-03-29
Last modified date 2002-03-29

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
SESSIONS          

Fix information
Fixed component name WEBSPHERE AE NT
Fixed component ID 5630A2201

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ58445
IBM Group: Software Group
Modified date: Mar 29, 2002