PQ70093: CUSTOMER RESTARTS THEIR ACCESS BEAN APPLICATION AND NOT THE APP SERVER THEY GET CLASS CAST EXCEPTION. | |||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description In 5.0 WSAD test environment, customer restarts an EJB access be an application and gets a Class Cast Exception. They make no changes to the .ear. If they restart the application server they do not get the class cast exception.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server users of * * WebSphere Studio Application Developer * * Version 5.0 in the Unit Test Environment * **************************************************************** * PROBLEM DESCRIPTION: In 5.0 WSAD test environment, customer * * restarts an EJB access bean * * application and gets a Class Cast * * Exception. They make no changes to the * * .ear. If they restart the application * * server they do not get the class cast * * exception. * **************************************************************** * RECOMMENDATION: * **************************************************************** The problem was one of caching of the home interface within the Access bean by the initial context was causing ClassCast Exception. We globally cache the InitialContext based on the properties used. If the properties change, we will change the cached value. In this scenario (application restarting due to a change to the bean class), the cached home interface was removed from the global cache but the old InitialContext was used. In the WebSphere implementation, this context held the old cached home, thus the cause of the ClassCastException.Problem conclusion This fix will now cache the current context ClassLoader when the InitialContext is created and cached. If the ClassLoader is different the next time the context is retrieved (on application restart), a new InitialContext will be created.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
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 00W
Software edition:
Reference #: PQ70093
IBM Group: Software Group
Modified date: Sep 15, 2003
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.