Guest User

Untitled

a guest
Jul 30th, 2018
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  2. at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)
  3. at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)
  4. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.checkRowCounts(BatchingBatch.java:155)
  5. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:132)
  6. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:114)
  7. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:163)
  8. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:226)
  9. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
  10. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
  11. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
  12. at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
  13. at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
  14. at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
  15. at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
  16. at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
  17. at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)
  18. at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757)
  19. at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
  20. at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
  21. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
  22. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  23. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  24. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  25. at com.sun.proxy.$Proxy184.savePatient(Unknown Source)
  26. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  27. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  28. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  29. at java.lang.reflect.Method.invoke(Method.java:498)
  30. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  31. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  32. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  33. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  34. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  35. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  36. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  37. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  38. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  39. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  40. at com.sun.proxy.$Proxy185.savePatient(Unknown Source)
  41. at org.openmrs.module.mergepatientdata.api.impl.PatientResourceServiceImpl.savePatient(PatientResourceServiceImpl.java:44)
  42. at org.openmrs.module.mergepatientdata.api.impl.PatientResourceServiceImpl.savePatients(PatientResourceServiceImpl.java:104)
  43. at org.openmrs.module.mergepatientdata.api.utils.MergePatientDataUtils.mergeResourceToOpenmrsDataBase(MergePatientDataUtils.java:149)
  44. at org.openmrs.module.mergepatientdata.api.impl.MergePatientDataImportServiceImpl.importMPD(MergePatientDataImportServiceImpl.java:34)
  45. at org.openmrs.module.mergepatientdata.sync.MPDClient.importData(MPDClient.java:57)
  46. at org.openmrs.module.mergepatientdata.page.controller.ImportPatientDataPageController.controller(ImportPatientDataPageController.java:54)
  47. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  48. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  49. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  50. at java.lang.reflect.Method.invoke(Method.java:498)
  51. at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
  52. at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
  53. at org.openmrs.ui.framework.page.PageFactory.handleRequestWithController(PageFactory.java:219)
  54. at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:160)
  55. at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:116)
  56. at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)
  57. at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:116)
  58. at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:83)
  59. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  60. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  61. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  62. at java.lang.reflect.Method.invoke(Method.java:498)
  63. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  64. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  65. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  66. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  67. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  68. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  69. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  70. at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  71. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  72. at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  73. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  74. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  75. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64)
  76. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  77. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  78. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  79. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  80. at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  81. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  82. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  83. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  84. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  85. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  86. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  87. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  88. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  89. at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  90. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  91. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  92. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  93. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  94. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  95. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  96. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  97. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  98. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  99. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  100. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  101. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  102. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  103. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  104. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  105. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  106. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  107. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  108. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  109. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  110. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  111. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  112. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  113. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  114. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  115. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  116. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  117. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  118. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  119. at java.lang.Thread.run(Thread.java:748)
  120. Full Error
  121. org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  122. at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:205)
  123. at org.springframework.orm.hibernate4.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:730)
  124. at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:592)
  125. at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757)
  126. at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
  127. at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
  128. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
  129. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  130. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  131. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  132. at com.sun.proxy.$Proxy184.savePatient(Unknown Source)
  133. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  134. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  135. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  136. at java.lang.reflect.Method.invoke(Method.java:498)
  137. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  138. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  139. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  140. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  141. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  142. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  143. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  144. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  145. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  146. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  147. at com.sun.proxy.$Proxy185.savePatient(Unknown Source)
  148. at org.openmrs.module.mergepatientdata.api.impl.PatientResourceServiceImpl.savePatient(PatientResourceServiceImpl.java:44)
  149. at org.openmrs.module.mergepatientdata.api.impl.PatientResourceServiceImpl.savePatients(PatientResourceServiceImpl.java:104)
  150. at org.openmrs.module.mergepatientdata.api.utils.MergePatientDataUtils.mergeResourceToOpenmrsDataBase(MergePatientDataUtils.java:149)
  151. at org.openmrs.module.mergepatientdata.api.impl.MergePatientDataImportServiceImpl.importMPD(MergePatientDataImportServiceImpl.java:34)
  152. at org.openmrs.module.mergepatientdata.sync.MPDClient.importData(MPDClient.java:57)
  153. at org.openmrs.module.mergepatientdata.page.controller.ImportPatientDataPageController.controller(ImportPatientDataPageController.java:54)
  154. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  155. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  156. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  157. at java.lang.reflect.Method.invoke(Method.java:498)
  158. at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
  159. at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
  160. at org.openmrs.ui.framework.page.PageFactory.handleRequestWithController(PageFactory.java:219)
  161. at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:160)
  162. at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:116)
  163. at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)
  164. at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:116)
  165. at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:83)
  166. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  167. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  168. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  169. at java.lang.reflect.Method.invoke(Method.java:498)
  170. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  171. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  172. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  173. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  174. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  175. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  176. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  177. at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  178. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  179. at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  180. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  181. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  182. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64)
  183. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  184. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  185. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  186. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  187. at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  188. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  189. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  190. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  191. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  192. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  193. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  194. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  195. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  196. at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  197. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  198. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  199. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  200. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  201. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  202. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  203. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  204. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  205. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  206. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  207. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  208. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  209. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  210. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  211. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  212. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  213. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  214. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  215. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  216. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  217. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  218. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  219. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  220. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  221. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  222. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  223. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  224. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  225. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  226. at java.lang.Thread.run(Thread.java:748)
  227. Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  228. at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:81)
  229. at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:73)
  230. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.checkRowCounts(BatchingBatch.java:155)
  231. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:132)
  232. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:114)
  233. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:163)
  234. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:226)
  235. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
  236. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
  237. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
  238. at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
  239. at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
  240. at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
  241. at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
  242. at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
  243. at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)
  244. ... 102 more
RAW Paste Data