I am trying to get a localObject that is a 1 to many unidirectional relationship. Parent/ChildLocal. It is then calling a method getData() that is a bulk data accessor. (RH 3.0 latest CVS head)
So I have code that looks like this. It is a method in a Stateful Session Bean ArrayList l = new ArrayList(); Iterator i =parent.getDetails().iterator(); while(i.hasNext()) { l.add(((ChildLocal).i.next()).getData()); } I am getting the following exception java.lang.IllegalStateException: removing bean lock and it has tx set! at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:449) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:79) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:149) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:65) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:131) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:447) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:320) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(BaseLocalContainerInvoker.java:449) at $Proxy34.getData(Unknown Source) The relation code executes properly and returns 3 rows. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user