4 Replies Latest reply on Feb 11, 2016 2:39 PM by rhusar

    "could not obtain lock within 5000 MILLISECONDS" on @Stateful bean

    atchijov-vgw

      Could some one please help me to understand how exactly Wildfly creates and uses @Stateful beans? As indicated in the title, I am getting:

       

      javax.ejb.ConcurrentAccessTimeoutException: JBAS014360: EJB 3.1 FR 4.3.14.1 concurrent access timeout on org.jboss.invocation.InterceptorContext@66bfa993 - could not obtain lock within 5000 MILLISECONDS
      

       

      On one of @Stateful beans. The bean itself as of now, is basically empty shell, does not do anything.

       

      I could be wrong... but the way I understand, with default configuration Wildfly should just keep creating new instances of this bean on as-needed bases. The only situation when two threads could be trying to lock the same instance if these threads are servicing the same session (which is almost impossible thing to happen in our app).

       

      Is my understanding correct? What is the best way to diagnose and resolve this issue?

       

      Any help will be highly appreciated,

       

      Cheers,

        Andrei