PQ62609: ILLEGALSTATEEXCEPTION CALLING VALUEUNBOUND METHOD FROM AN EJB IN WEBSPHERE APPLICATION SERVER FOR ZOS OS/390 V4.01 | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description When calling an EJB that has implemented the HTTPSessionBindingListener class and contains the valueUnbound method, an IllegalStateException will occur when the valueUnbound() method is called. In this particular case, the EJB was called from a JSP. java.lang.IllegalStateException: Bean access from unmanaged threads is not supported at com.ibm.ejs.container.EJSContainer.preInvoke at com.ibm.ejs.container.EJSContainer.removeBean at com.ibm.ejs.container.EJSWrapper.removeLocal fix if calling the EJB from a servlet/JSP, call the method session.invalidate() from within the service method.Problem summary **************************************************************** * USERS AFFECTED: Users of WebSphere Application Server * * V4.0.1 for z/OS and OS/390 using HTTP * * session to store objects implementing the * * HttpSessionBindingListener interface. * * * **************************************************************** * PROBLEM DESCRIPTION: Illegal State Exception thrown when a * * valueUnbound method attempts to invo * * an ejb method. * * * **************************************************************** * RECOMMENDATION: * **************************************************************** When an object that implements the HttpSessionBindingListener interface is added to a session, the webcontainer must call the object's valueUnbound method during session invalidation. Session invalidation was done on a non-WebSphere-managed thread. EJB calls cannnot be done in that environment.Problem conclusion Session invalidation will now be done on a WebSphere-managed thread so that the valueUhbound methods will have the proper environment for EJB calls. Additionally, there will be only one invalidation thread per J2EE Server, rather than one invalidation thread per web application.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
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ62609
IBM Group: Software Group
Modified date: Oct 2, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.