0 Replies Latest reply on Sep 16, 2004 12:30 PM by harshi2003

    Dead Lock Problem

    harshi2003

      i am new to ejb.

      in our application we are using jboss-3.2.3.....
      there are 11 schedulers are running in the system.
      these schedulers are doing xml file processing.



      after some time I am getting following exception

      that is a deadlock.

      51 DistributionCenter not found: Staffanstorp javax.ejb.EJBException: null; CausedByException is:
      Application deadlock detected, resource=org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock@81e18e, bean=DistributionCenter, id=EXEL-ALFA-Staffanstorp, refs=2, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=manly008//6743, BranchQual=], synched=Thread[Thread-72,5,jboss], timeout=5000, queue=[], holder=TransactionImpl:XidImpl [FormatId=257, GlobalId=manly008//6913, BranchQual=], waitingResource=org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock@ff6842, bean=Customer, id=EXEL, refs=2, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=manly008//6913, BranchQual=], synched=null, timeout=5000, queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=manly008//6743, BranchQual=] id=0 thread=Thread[Thread-73,5,jboss] queued=true], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257, GlobalId=manly008//6913, BranchQual=]

      could you please tell how can i overcome this problem.

      i am planning to use Instance Per Transaction Policy as a soultion to this problem.

      will that be a good solution.

      please help me.

      also we are getting out of memory error exception too.

      please help me.