PQ90221: OPTIMISTIC CONCURRENCY FAILURE RESULTS IN TRANSACTIONROLLEDBACK EXCEPTION, EJB CLIENT IS UNABLE TO HANDLE ORIGINAL EXCEPTION | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description In WebSphere Application Server 5.0.x, a CMP entity bean is configured with wsOptimisticUpdate access intent. When two users try to update the same row in the database simultaneously, the following exception is thrown: java.rmi.NoSuchObjectException: com.ibm.ws.ejbpersistence.utilpm.OptimisticUpdateFailedException : PMGR6025E: An attempted update under optimistic concurrency control failed because another application has changed the bean data in the datastore since this transaction read it. Either it changed a predicate field value or removed the bean itself. . and the transaction rolls back.Local fix Problem summary **************************************************************** * USERS AFFECTED: Enterprise Java Bean (EJB) developers who * * developing CMP2.0 Beans and are using * * Optimistic Concurrency. * **************************************************************** * PROBLEM DESCRIPTION: Optimistic concurrency control * * failures are logged, but cannot * * handle them programatically. * **************************************************************** * RECOMMENDATION: * **************************************************************** An error such as "PMGR6025E: An attempted update under optimistic concurrency control failed because another application has changed the bean data in the datastore since this transaction read it. Either it changed a predicate field value or removed the bean itself." is logged. The client cannot recover programmatically from it. With this APAR, we will nest this exception for clients to handle.Problem conclusion Modified code to allow nesting of javax.ejb.NoSuchObjectLocalException as part of the exception stack thrown back to the client.Temporary fix fixTest.jar mailed to customer.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: 00A
Software edition:
Reference #: PQ90221
IBM Group: Software Group
Modified date: Jan 27, 2005
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.