Bugs item #582428, was opened at 2002-07-16 19:33 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=582428&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Andrew Lau (andrewlau4) Assigned to: Nobody/Anonymous (nobody) Summary: ejb remove cause IllegalStateException Initial Comment: This problem happens in jboss 3.0 and 3.0.1 RC1 I have a parent entity bean that I have set to 'cascade delete' all its children. But when I try to remove that bean, I sometimes got the following exception: ............. java.lang.IllegalStateException: removing bean lock and it has tx set! at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.r emoveRef(QueuedPessimisticEJBLock.java:469) at org.jboss.ejb.BeanLockManager.removeLockRef (BeanLockManager.java:78) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke (EntityLockInterceptor.java:124) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke (EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext (AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti ons(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke (TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke (SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke (LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke (EntityContainer.java:493) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBri dge.invokeRemoveRelation (JDBCCMRFieldBridge.java:759) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBri dge.destroyRelationLinks (JDBCCMRFieldBridge.java:696) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBri dge.destroyRelationLinks (JDBCCMRFieldBridge.java:674) at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.clear (RelationSet.java:163) ...... But I may have found a quick solution for now. The IllegalStateException exception only happens when I call EJBLocalObject remove() method. Now I changed my code so it calls EJBLocalHome remove() method instead. Since then, it seems working fine so far. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=582428&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
