Bugs item #531445, was opened at 2002-03-18 12:39 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=531445&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Leon Doud (ldoud) >Assigned to: Nobody/Anonymous (nobody) Summary: Entity remove() not removing from cache Initial Comment: - Create an entity object using CMP. - Remove the new entity object. - Attempt to create another entity with the same primary key. - The second create fails. Client side stacktrace: test-all: [junit] Running ejbtest.TestEntity [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.401 sec [junit] Testsuite: ejbtest.TestEntity [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.401 sec [junit] [junit] Testcase: testCacheClearing took 0.401 sec [junit] Caused an ERROR [junit] RemoteException occurred in server thread; nested exception is: [junit] java.rmi.ServerException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.]; nested exception is: [junit] java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.] [junit] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [junit] java.rmi.ServerException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.]; nested exception is: [junit] java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.] [junit] java.rmi.ServerException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.]; nested exception is: [junit] java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.] [junit] java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, ID = [.0.] [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFro mServer(StreamRemoteCall.java:245) [junit] at sun.rmi.transport.StreamRemoteCall.executeCall (StreamRemoteCall.java:220) [junit] at sun.rmi.server.UnicastRef.invoke (UnicastRef.java:122) [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invok e(Unknown Source) [junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.i nvoke(JRMPInvokerProxy.java:128) [junit] at org.jboss.invocation.InvokerInterceptor.invoke (InvokerInterceptor.java:108) [junit] at org.jboss.proxy.TransactionInterceptor.invoke (TransactionInterceptor.java:73) [junit] at org.jboss.proxy.SecurityInterceptor.invoke (SecurityInterceptor.java:76) [junit] at org.jboss.proxy.ejb.HomeInterceptor.invoke (HomeInterceptor.java:185) [junit] at org.jboss.proxy.ClientContainer.invoke (ClientContainer.java:96) [junit] at $Proxy0.create(Unknown Source) [junit] at ejbtest.TestEntity.testCacheClearing (TestEntity.java:28) [junit] at java.lang.reflect.Method.invoke (Native Method) [junit] at junit.framework.TestCase.runTest (TestCase.java:166) [junit] at junit.framework.TestCase.runBare (TestCase.java:140) [junit] at junit.framework.TestResult$1.protect (TestResult.java:106) [junit] at junit.framework.TestResult.runProtected (TestResult.java:124) [junit] at junit.framework.TestResult.run (TestResult.java:109) [junit] at junit.framework.TestCase.run (TestCase.java:131) [junit] at junit.framework.TestSuite.runTest (TestSuite.java:173) [junit] at junit.framework.TestSuite.run (TestSuite.java:168) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestR unner.run(JUnitTestRunner.java:231) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestR unner.main(JUnitTestRunner.java:409) [junit] [junit] TEST ejbtest.TestEntity FAILED Server stack trace: javax.ejb.EJBException: Error getting application tx data map. Embedded Exception Already marked for rollback at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getAppl icationTxDataMap(JDBCStoreManager.java:207) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.synchro nizeRelationData(JDBCStoreManager.java:434) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEn tity(JDBCStoreManager.java:430) at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity (CMPPersistenceManager.java:436) at org.jboss.ejb.EntityContainer.storeEntity (EntityContainer.java:676) at org.jboss.ejb.GlobalTxEntityMap.syncEntities (GlobalTxEntityMap.java:177) at org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanu p.beforeCompletion(GlobalTxEntityMap.java:315) at org.jboss.tm.TxCapsule.doBeforeCompletion (TxCapsule.java:1317) at org.jboss.tm.TxCapsule.rollback (TxCapsule.java:430) at org.jboss.tm.TransactionImpl.rollback (TransactionImpl.java:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti ons(TxInterceptorCMT.java:180) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome (TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome (SecurityInterceptor.java:102) at org.jboss.ejb.plugins.LogInterceptor.invokeHome (LogInterceptor.java:109) at org.jboss.ejb.EntityContainer.invokeHome (EntityContainer.java:468) at org.jboss.ejb.Container.invoke (Container.java:702) at org.jboss.ejb.EntityContainer.invoke (EntityContainer.java:1003) at com.sun.management.jmx.MBeanServerImpl.invoke (MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke (MBeanServerImpl.java:1523) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke (JRMPInvoker.java:364) at java.lang.reflect.Method.invoke(Native Method) at sun.rmi.server.UnicastServerRef.dispatch (UnicastServerRef.java:241) at sun.rmi.transport.Transport$1.run (Transport.java:152) at java.security.AccessController.doPrivileged (Native Method) at sun.rmi.transport.Transport.serviceCall (Transport.java:148) at sun.rmi.transport.tcp.TCPTransport.handleMessages (TCPTransport.java:465) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru n(TCPTransport.java:706) at java.lang.Thread.run(Thread.java:484) javax.transaction.RollbackException: Already marked for rollback at org.jboss.tm.TxCapsule.registerSynchronization (TxCapsule.java:729) at org.jboss.tm.TransactionImpl.registerSynchronization (TransactionImpl.java:133) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getAppl icationTxDataMap(JDBCStoreManager.java:196) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.synchro nizeRelationData(JDBCStoreManager.java:434) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEn tity(JDBCStoreManager.java:430) at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity (CMPPersistenceManager.java:436) at org.jboss.ejb.EntityContainer.storeEntity (EntityContainer.java:676) at org.jboss.ejb.GlobalTxEntityMap.syncEntities (GlobalTxEntityMap.java:177) at org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanu p.beforeCompletion(GlobalTxEntityMap.java:315) at org.jboss.tm.TxCapsule.doBeforeCompletion (TxCapsule.java:1317) at org.jboss.tm.TxCapsule.rollback (TxCapsule.java:430) at org.jboss.tm.TransactionImpl.rollback (TransactionImpl.java:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti ons(TxInterceptorCMT.java:180) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome (TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome (SecurityInterceptor.java:102) at org.jboss.ejb.plugins.LogInterceptor.invokeHome (LogInterceptor.java:109) at org.jboss.ejb.EntityContainer.invokeHome (EntityContainer.java:468) at org.jboss.ejb.Container.invoke (Container.java:702) at org.jboss.ejb.EntityContainer.invoke (EntityContainer.java:1003) at com.sun.management.jmx.MBeanServerImpl.invoke (MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke (MBeanServerImpl.java:1523) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke (JRMPInvoker.java:364) at java.lang.reflect.Method.invoke(Native Method) at sun.rmi.server.UnicastServerRef.dispatch (UnicastServerRef.java:241) at sun.rmi.transport.Transport$1.run (Transport.java:152) at java.security.AccessController.doPrivileged (Native Method) at sun.rmi.transport.Transport.serviceCall (Transport.java:148) at sun.rmi.transport.tcp.TCPTransport.handleMessages (TCPTransport.java:465) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru n(TCPTransport.java:706) at java.lang.Thread.run(Thread.java:484) ---------------------------------------------------------------------- >Comment By: Bill Burke (patriot1burke) Date: 2002-03-18 13:30 Message: Logged In: YES user_id=176497 can you attach the EntityAPK? Did you implement hashCode and equals for your pk class? Can you attach the ejb-jar.xml? Thanks, Bill ---------------------------------------------------------------------- Comment By: Bill Burke (patriot1burke) Date: 2002-03-18 13:05 Message: Logged In: YES user_id=176497 I'll look into this. Bill ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=531445&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development