0 Replies Latest reply on Mar 31, 2005 12:46 PM by cjz002

    removing bean lock and it has tx set, String as primary key

    cjz002 Newbie

      Hello, there,

      We are using Jboss 3.2.1 and CMP for our project, and we are seeing some bean lock problem whiling using getters to access bean from stateless session bean under heavy load. I read some similar posting, most of the case, the problem is in the priimary key. But in our case, we are using String as our primary key for EJB. I think the both equals() and hashcode() are implemented for String. So, I am not sure whatelse could cause that problem. Help would be really appreicate it.

      Thanks a lot,

      Here the stacktrace of my error:
      ERROR [org.jboss.ejb.BeanLock] removing bean lock and it has tx set! QPL bean=Key id=11116371590463737500998547105308 tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=t-sc5164//405601, BranchQual=] synched=null timeout=5000 queue=[]
      ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
      ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; CausedByException is:
      ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:204)
      ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
      ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
      ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
      ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
      ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:674)
      ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353)
      ERROR [STDERR] at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      ERROR [STDERR] at $Proxy203.getIndicatorType(Unknown Source)