1 Reply Latest reply: Jul 9, 2012 12:35 PM by Jason Porter RSS

    javax.persistence.TransactionRequiredException: Executing an update/delete query

    Manikanta Annavarapu Newbie

      HI All,


      Our application was building by using jsf and jboss seam f/w. while updating the filedsin the database table I am facing the following exception. Actually our application was sync with Android mobile application.


      14:56:34,900 INFO  [STDOUT]  inside validateMobileUser isRegisteredUser : true

      14:56:34,900 INFO  [STDOUT]  Client request received is  : -------> accepttask

      14:56:34,900 INFO  [STDOUT]  Vikas Task id received fron Client request  is  : -------> 15

      14:56:34,939 ERROR [STDERR] javax.persistence.TransactionRequiredException: Executing an update/delete query

      14:56:34,939 ERROR [STDERR]           at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:48)

      14:56:34,939 ERROR [STDERR]           at com.sync.commandsync.model.communication.Processrequest.processClntRequest(TaskServer.java:709)

      14:56:34,939 ERROR [STDERR]           at com.sync.commandsync.model.communication.Processrequest.run(TaskServer.java:389)

      14:56:34,939 ERROR [STDERR]           at java.lang.Thread.run(Unknown Source)

      14:56:34,939 INFO  [STDOUT]  isErrorMessage : true

      14:56:34,939 INFO  [STDOUT]  errorMessage : Task has updated successfully

      14:56:34,940 INFO  [STDOUT]  taskid :

      14:57:20,087 INFO  [STDOUT] ----- Request received from client ------------

      14:57:21,071 INFO  [STDOUT]  Mobile number received from Client request is  : -------> 9611122351

      14:57:21,076 INFO  [STDOUT] Hibernate:


      i am attaching our application code.Please help me what are steps to be taken to resolve this exception.