0 Replies Latest reply on May 8, 2019 7:14 AM by shatayud

    Occurence of PessimisticLockException.

    shatayud

      Hello,

      In our application we have

      Server used : **JBOSS EAP 7.0**

      For rules(Decision Table): JBPM

      Use of EJB.

      We are not performing any insert,update,etc queries, we are just performing **READ**.

      We are passing a request and getting a response.While calling a service we are getting this error sometimes:

       

      Exception ocurred: java.lang.ClassNotFoundException: org.hibernate.PessimisticLockException from [Module "something.war:main"] javax.ejb.EJBException: java.lang.ClassNotFoundException: org.hibernate.PessimisticLockException from [Module "something.war:main"]

       

      I want to know:

       

      1.Why am i getting this exception?

      2.How to solve this error?

      3.Is there any way we can remove locking as it is READ only and from where i can remove the locking.

       

      Thank you in advance.