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.
Taking a guess here, but it sounds like you relied on the automatic transaction of JSF in Seam 2 and now you're coming in from a different location and expecting a transaction that isn't there. You'll have to start a transaction manually or annotate your methods with @Transactional (I think that's the correct annotation, been a while).
|Retrieving data ...|