PQ62609: ILLEGALSTATEEXCEPTION CALLING VALUEUNBOUND METHOD FROM AN EJB IN WEBSPHERE APPLICATION SERVER FOR ZOS OS/390 V4.01

 A fix may be available

Obtain the fix for this APAR



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.remove
Local 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 information
APAR number PQ62609
Reported component name WEBSPHERE OS/39
Reported component ID 5655A9800
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-06-25
Closed date 2002-09-04
Last modified date 2002-10-02

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
EJSJWBJR EJSJWCSC EJSJWCWC EJSJWC04    

Fix information
Fixed component name WEBSPHERE OS/39
Fixed component ID 5655A9800

Applicable component levels
R401 PSY UQ69549    UP02/09/11 P F209

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


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