5 Replies Latest reply on Sep 18, 2003 2:34 AM by angelicdevil888

    Reentrant method call detected

    Dietmar Scheidl Newbie

      Hi,

      I am using a SLSB to access some CMP Entity Beans. Normaly everything works fine.

      But sometimes it failed with the following exception:

      Caused by: javax.ejb.TransactionRolledbackLocalException: Reentrant method call detected: ChangeInfoViewBean at.softsolution.esa.server.ejb.ChangeInfoViewBeanPK@a4d5ffd7; CausedByException is:
      Reentrant method call detected: ChangeInfoViewBean at.softsolution.esa.server.ejb.ChangeInfoViewBeanPK@a4d5ffd7
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:224)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:232)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
      at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      at $Proxy1006.getSumRecords(Unknown Source)
      at at.softsolution.esa.server.ejb.ChangeSessionBean.getSubTree(ChangeSessionBean.java:243)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      ... 75 more

      This only happens if two physical users access the same data at the same time.

      The commit option on that entity bean is set to D and the lock-policy is set to NoLock.