0 Replies Latest reply on Mar 20, 2002 7:11 PM by basil

    Error removing bean lock

    basil

      Using a build from the cvs source from March 20/02, I encountered the following exception:

      ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, causedBy:

      java.lang.IllegalStateException: removing bean lock and it has tx set!
      at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:467)
      ...

      This error occured within a stateless session bean calling a findAll() method on a local CMP2.0 entity home. Everything deployed properly and the datasource (oracle db) is properly configured. On the session and entity bean, in the ejb-jar.xml file I specified the transaction attribute to be 'Required' for all methods.

      This was working with JBoss 3.0.0alpha. I can't figure out what is causing it to not work now. Any and all help is appreciated.

      Thanks,
      - Basil

      P.S. Rest of the exception stack trace is:
      at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:77)

      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:124)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)

      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:474)

      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:307)

      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.invoke(BaseLocalContainerInvoker.java:407)

      at $Proxy18.getName(Unknown Source)

      at com.net_linx.sales.account.cinterface.AccountDTO.(AccountDTO.java:64)

      at com.net_linx.sales.account.cinterface.AccountDTO.createAccountDTOsFromAccountProperties(AccountDTO.java:34)

      at com.net_linx.sales.account.cimpl.enterprise.AccountEnterpriseServiceImpl.findAll(AccountEnterpriseServiceImpl.java:83)

      at java.lang.reflect.Method.invoke(Native Method)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:648)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)

      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:308)
      ...