Advertisement
Ramophethe

Untitled

Aug 14th, 2021
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 14-08-2021 16:14:33 [ERROR] SqlExceptionHelper - Duplicate entry '16' for key 'PRIMARY'
  2. 14-08-2021 16:14:33 [DEBUG] api - An error occurred while executing this method.
  3. Current user: superman
  4. Error message: could not execute statement
  5. org.hibernate.exception.ConstraintViolationException: could not execute statement
  6. at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
  7. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
  8. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
  9. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
  10. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
  11. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3127)
  12. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3560)
  13. at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:98)
  14. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:492)
  15. at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:197)
  16. at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:181)
  17. at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:216)
  18. at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:334)
  19. at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:289)
  20. at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195)
  21. at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:126)
  22. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
  23. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
  24. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:114)
  25. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
  26. at org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:684)
  27. at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:676)
  28. at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:671)
  29. at org.openmrs.api.db.hibernate.HibernateOrderDAO.saveOrder(HibernateOrderDAO.java:86)
  30. at org.openmrs.api.impl.OrderServiceImpl.saveOrderInternal(OrderServiceImpl.java:285)
  31. at org.openmrs.api.impl.OrderServiceImpl.saveOrder(OrderServiceImpl.java:236)
  32. at org.openmrs.api.impl.OrderServiceImpl.saveOrder(OrderServiceImpl.java:100)
  33. at org.openmrs.api.impl.OrderServiceImpl.saveOrderGroup(OrderServiceImpl.java:114)
  34. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  35. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  36. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  37. at java.lang.reflect.Method.invoke(Unknown Source)
  38. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  39. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  40. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  41. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  42. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  43. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  44. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  45. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  46. at com.sun.proxy.$Proxy132.saveOrderGroup(Unknown Source)
  47. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  48. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  49. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  50. at java.lang.reflect.Method.invoke(Unknown Source)
  51. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  52. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  53. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  54. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  55. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  56. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  57. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  58. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  59. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  60. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  61. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  62. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  63. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  64. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  65. at com.sun.proxy.$Proxy201.saveOrderGroup(Unknown Source)
  66. at org.openmrs.api.impl.EncounterServiceImpl.saveEncounter(EncounterServiceImpl.java:191)
  67. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  68. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  69. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  70. at java.lang.reflect.Method.invoke(Unknown Source)
  71. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  72. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  73. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  74. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  75. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  76. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  77. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  78. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  79. at com.sun.proxy.$Proxy129.saveEncounter(Unknown Source)
  80. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  81. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  82. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  83. at java.lang.reflect.Method.invoke(Unknown Source)
  84. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  85. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  86. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  87. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  88. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  89. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  90. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  91. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  92. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  93. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  94. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  95. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  96. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  97. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  98. at com.sun.proxy.$Proxy130.saveEncounter(Unknown Source)
  99. at org.openmrs.module.emrapi.encounter.EmrOrderServiceImpl_1_12.save(EmrOrderServiceImpl_1_12.java:67)
  100. at org.openmrs.module.emrapi.encounter.EmrEncounterServiceImpl.saveInternal(EmrEncounterServiceImpl.java:145)
  101. at org.openmrs.module.emrapi.encounter.EmrEncounterServiceImpl.save(EmrEncounterServiceImpl.java:119)
  102. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  103. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  104. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  105. at java.lang.reflect.Method.invoke(Unknown Source)
  106. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  107. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  108. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  109. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  110. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  111. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  112. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  113. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  114. at com.sun.proxy.$Proxy235.save(Unknown Source)
  115. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  116. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  117. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  118. at java.lang.reflect.Method.invoke(Unknown Source)
  119. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  120. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  121. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  122. at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
  123. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  124. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  125. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  126. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  127. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  128. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  129. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  130. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  131. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  132. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  133. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  134. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  135. at com.sun.proxy.$Proxy236.save(Unknown Source)
  136. at org.openmrs.module.bahmniemrapi.encountertransaction.impl.BahmniEncounterTransactionServiceImpl.save(BahmniEncounterTransactionServiceImpl.java:127)
  137. at org.openmrs.module.bahmniemrapi.encountertransaction.impl.BahmniEncounterTransactionServiceImpl.save(BahmniEncounterTransactionServiceImpl.java:200)
  138. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  139. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  140. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  141. at java.lang.reflect.Method.invoke(Unknown Source)
  142. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  143. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  144. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  145. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  146. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  147. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  148. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  149. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  150. at com.sun.proxy.$Proxy240.save(Unknown Source)
  151. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  152. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  153. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  154. at java.lang.reflect.Method.invoke(Unknown Source)
  155. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  156. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  157. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  158. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  159. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  160. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  161. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  162. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  163. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  164. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  165. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  166. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  167. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  168. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  169. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  170. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  171. at com.sun.proxy.$Proxy241.save(Unknown Source)
  172. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController.update(BahmniEncounterController.java:94)
  173. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController$$FastClassBySpringCGLIB$$1b0d3bf3.invoke(<generated>)
  174. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  175. at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
  176. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  177. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  178. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  179. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  180. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  181. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
  182. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController$$EnhancerBySpringCGLIB$$e9f3acfb.update(<generated>)
  183. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  184. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  185. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  186. at java.lang.reflect.Method.invoke(Unknown Source)
  187. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  188. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  189. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  190. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  191. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  192. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  193. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  194. at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
  195. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  196. at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  197. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
  198. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  199. at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  200. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  201. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  202. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  203. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64)
  204. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  205. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  206. at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  207. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  208. at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  209. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  210. at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  211. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  212. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  213. at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  214. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  215. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  216. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  217. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  218. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  219. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  220. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  221. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  222. at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  223. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  224. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  225. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  226. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  227. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  228. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  229. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  230. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  231. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  232. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  233. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  234. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  235. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  236. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  237. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  238. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  239. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
  240. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  241. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  242. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
  243. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  244. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  245. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:534)
  246. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
  247. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
  248. at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
  249. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
  250. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
  251. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  252. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  253. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  254. at java.lang.Thread.run(Unknown Source)
  255. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '16' for key 'PRIMARY'
  256. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  257. at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  258. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  259. at java.lang.reflect.Constructor.newInstance(Unknown Source)
  260. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  261. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  262. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
  263. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  264. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  265. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  266. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  267. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  268. at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  269. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2441)
  270. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2366)
  271. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2350)
  272. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:147)
  273. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:208)
  274. ... 244 more
  275. 14-08-2021 16:14:33 [INFO ] api - Exiting method saveOrderGroup. execution time: 58 ms
  276. 14-08-2021 16:14:33 [DEBUG] api - An error occurred while executing this method.
  277. Current user: superman
  278. Error message: could not execute statement
  279. org.hibernate.exception.ConstraintViolationException: could not execute statement
  280. at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
  281. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
  282. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
  283. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
  284. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
  285. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3127)
  286. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3560)
  287. at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:98)
  288. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:492)
  289. at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:197)
  290. at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:181)
  291. at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:216)
  292. at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:334)
  293. at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:289)
  294. at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195)
  295. at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:126)
  296. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
  297. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
  298. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:114)
  299. at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
  300. at org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:684)
  301. at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:676)
  302. at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:671)
  303. at org.openmrs.api.db.hibernate.HibernateOrderDAO.saveOrder(HibernateOrderDAO.java:86)
  304. at org.openmrs.api.impl.OrderServiceImpl.saveOrderInternal(OrderServiceImpl.java:285)
  305. at org.openmrs.api.impl.OrderServiceImpl.saveOrder(OrderServiceImpl.java:236)
  306. at org.openmrs.api.impl.OrderServiceImpl.saveOrder(OrderServiceImpl.java:100)
  307. at org.openmrs.api.impl.OrderServiceImpl.saveOrderGroup(OrderServiceImpl.java:114)
  308. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  309. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  310. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  311. at java.lang.reflect.Method.invoke(Unknown Source)
  312. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  313. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  314. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  315. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  316. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  317. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  318. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  319. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  320. at com.sun.proxy.$Proxy132.saveOrderGroup(Unknown Source)
  321. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  322. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  323. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  324. at java.lang.reflect.Method.invoke(Unknown Source)
  325. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  326. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  327. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  328. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  329. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  330. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  331. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  332. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  333. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  334. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  335. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  336. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  337. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  338. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  339. at com.sun.proxy.$Proxy201.saveOrderGroup(Unknown Source)
  340. at org.openmrs.api.impl.EncounterServiceImpl.saveEncounter(EncounterServiceImpl.java:191)
  341. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  342. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  343. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  344. at java.lang.reflect.Method.invoke(Unknown Source)
  345. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  346. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  347. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  348. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  349. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  350. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  351. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  352. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  353. at com.sun.proxy.$Proxy129.saveEncounter(Unknown Source)
  354. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  355. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  356. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  357. at java.lang.reflect.Method.invoke(Unknown Source)
  358. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  359. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  360. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  361. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  362. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  363. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  364. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  365. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  366. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  367. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  368. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  369. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  370. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  371. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  372. at com.sun.proxy.$Proxy130.saveEncounter(Unknown Source)
  373. at org.openmrs.module.emrapi.encounter.EmrOrderServiceImpl_1_12.save(EmrOrderServiceImpl_1_12.java:67)
  374. at org.openmrs.module.emrapi.encounter.EmrEncounterServiceImpl.saveInternal(EmrEncounterServiceImpl.java:145)
  375. at org.openmrs.module.emrapi.encounter.EmrEncounterServiceImpl.save(EmrEncounterServiceImpl.java:119)
  376. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  377. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  378. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  379. at java.lang.reflect.Method.invoke(Unknown Source)
  380. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  381. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  382. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  383. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  384. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  385. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  386. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  387. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  388. at com.sun.proxy.$Proxy235.save(Unknown Source)
  389. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  390. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  391. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  392. at java.lang.reflect.Method.invoke(Unknown Source)
  393. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  394. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  395. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  396. at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
  397. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  398. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  399. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  400. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  401. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  402. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  403. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  404. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  405. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  406. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  407. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  408. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  409. at com.sun.proxy.$Proxy236.save(Unknown Source)
  410. at org.openmrs.module.bahmniemrapi.encountertransaction.impl.BahmniEncounterTransactionServiceImpl.save(BahmniEncounterTransactionServiceImpl.java:127)
  411. at org.openmrs.module.bahmniemrapi.encountertransaction.impl.BahmniEncounterTransactionServiceImpl.save(BahmniEncounterTransactionServiceImpl.java:200)
  412. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  413. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  414. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  415. at java.lang.reflect.Method.invoke(Unknown Source)
  416. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  417. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  418. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  419. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  420. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  421. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  422. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  423. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  424. at com.sun.proxy.$Proxy240.save(Unknown Source)
  425. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  426. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  427. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  428. at java.lang.reflect.Method.invoke(Unknown Source)
  429. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  430. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  431. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  432. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  433. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  434. at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  435. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  436. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  437. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  438. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  439. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  440. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  441. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  442. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  443. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  444. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  445. at com.sun.proxy.$Proxy241.save(Unknown Source)
  446. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController.update(BahmniEncounterController.java:94)
  447. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController$$FastClassBySpringCGLIB$$1b0d3bf3.invoke(<generated>)
  448. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  449. at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
  450. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  451. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  452. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  453. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  454. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  455. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
  456. at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniEncounterController$$EnhancerBySpringCGLIB$$e9f3acfb.update(<generated>)
  457. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  458. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  459. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  460. at java.lang.reflect.Method.invoke(Unknown Source)
  461. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  462. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  463. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  464. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  465. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  466. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  467. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  468. at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
  469. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  470. at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  471. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
  472. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  473. at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  474. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  475. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  476. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  477. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64)
  478. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  479. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  480. at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  481. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  482. at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  483. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  484. at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  485. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  486. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  487. at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  488. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  489. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  490. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  491. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  492. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  493. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  494. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  495. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  496. at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  497. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  498. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  499. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  500. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  501. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  502. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  503. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  504. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  505. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  506. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  507. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  508. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  509. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  510. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  511. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  512. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  513. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
  514. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  515. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  516. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
  517. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  518. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  519. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:534)
  520. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
  521. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
  522. at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
  523. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
  524. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
  525. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  526. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  527. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  528. at java.lang.Thread.run(Unknown Source)
  529. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '16' for key 'PRIMARY'
  530. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  531. at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  532. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  533. at java.lang.reflect.Constructor.newInstance(Unknown Source)
  534. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  535. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  536. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
  537. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  538. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  539. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  540. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  541. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  542. at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  543. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2441)
  544. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2366)
  545. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2350)
  546. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:147)
  547. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:208)
Advertisement
RAW Paste Data Copied
Advertisement