geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <>
Subject [jira] Created: (GERONIMO-580) CMP create, remove, and recreate throws org.tranql.cache.DuplicateIdentityException
Date Sat, 12 Feb 2005 23:32:15 GMT
CMP create, remove, and recreate throws org.tranql.cache.DuplicateIdentityException

         Key: GERONIMO-580
     Project: Apache Geronimo
        Type: Bug
  Components: OpenEJB  
    Versions: 1.0-M3    
    Reporter: Dain Sundstrom
 Assigned to: Gianny DAMOUR 

Creating a CMP bean removing it and recreating a bean with the same identity in a single transaction
causes tranql to throw a org.tranql.cache.DuplicateIdentityException.  This should not throw
an exception in this case because the previously existing bean has already been removed. 

Further, if the code happens throws this exception for a valid reason, it should not be propagated
back to the client as a system exception; instead the client should get javax.ejb.DuplicateKeyException..

java.rmi.RemoteException: org.tranql.cache.AlreadyAssociatedException; nested exception is:

	org.tranql.cache.DuplicateIdentityException: org.tranql.cache.AlreadyAssociatedException
	at org.openejb.proxy.EJBMethodInterceptor.intercept(
	at org.openejb.proxy.EntityEJBHome$$EnhancerByCGLIB$$21abc7d9.create(<generated>)
Caused by: org.tranql.cache.DuplicateIdentityException: org.tranql.cache.AlreadyAssociatedException
	at org.tranql.cache.CacheTable.addRow(
	at org.openejb.entity.cmp.CMPCreateMethod.execute(
	at org.openejb.dispatch.DispatchInterceptor.invoke(
	at org.openejb.ConnectionTrackingInterceptor.invoke(
	at org.openejb.entity.EntityInstanceInterceptor.invoke(
	at org.openejb.entity.cmp.InTxCacheInterceptor.invoke(
	at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
	at org.openejb.transaction.TransactionContextInterceptor.invoke(
	at org.openejb.SystemExceptionInterceptor.invoke(
	at org.openejb.GenericEJBContainer.invoke(
	at org.openejb.proxy.EJBMethodInterceptor.intercept(
	... 31 more
Caused by: org.tranql.cache.AlreadyAssociatedException
	at org.tranql.cache.InTxCache.associate(
	at org.tranql.cache.CacheTable.addRow(
	... 42 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message