Advertisement
dupdator

Address Hierarchy Error causing address fileds not to be filled

Dec 30th, 2020
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.54 KB | None | 0 0
  1. type Exception report
  2.  
  3. message Request processing failed; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute batch
  4.  
  5. description The server encountered an internal error that prevented it from fulfilling this request.
  6.  
  7. exception
  8.  
  9. org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute batch
  10. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
  11. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  12. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
  13. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  14. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  15. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  16. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  17. org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  18. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  19. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  20. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  21. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  22. org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  23. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  24. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  25. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  26. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  27. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  28. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  29.  
  30. root cause
  31.  
  32. org.hibernate.exception.ConstraintViolationException: could not execute batch
  33. org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129)
  34. org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
  35. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
  36. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:136)
  37. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:114)
  38. org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:163)
  39. org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:226)
  40. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
  41. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
  42. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
  43. org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:67)
  44. org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1227)
  45. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1711)
  46. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:380)
  47. org.openmrs.module.addresshierarchy.db.hibernate.HibernateAddressHierarchyDAO.getAddressHierarchyEntryCountByLevel(HibernateAddressHierarchyDAO.java:65)
  48. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.getAddressHierarchyEntryCountByLevel(AddressHierarchyServiceImpl.java:411)
  49. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.setAddressHierarchyLevelParents(AddressHierarchyServiceImpl.java:643)
  50. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  51. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  52. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  53. java.lang.reflect.Method.invoke(Unknown Source)
  54. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  55. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  56. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  57. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  58. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  59. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  60. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  61. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  62. com.sun.proxy.$Proxy277.setAddressHierarchyLevelParents(Unknown Source)
  63. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  64. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  65. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  66. java.lang.reflect.Method.invoke(Unknown Source)
  67. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  68. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  69. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  70. org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
  71. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  72. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  73. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  74. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  75. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  76. org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  77. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  78. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  79. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  80. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  81. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  82. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  83. com.sun.proxy.$Proxy278.setAddressHierarchyLevelParents(Unknown Source)
  84. org.openmrs.module.addresshierarchy.web.controller.ManageAddressHierarchyController.getOrderedAddressHierarchyLevels(ManageAddressHierarchyController.java:90)
  85. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  86. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  87. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  88. java.lang.reflect.Method.invoke(Unknown Source)
  89. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:163)
  90. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  91. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  92. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  93. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  94. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  95. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  96. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
  97. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  98. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  99. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  100. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  101. org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  102. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  103. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  104. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  105. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  106. org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  107. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  108. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  109. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  110. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  111. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  112. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  113.  
  114. root cause
  115.  
  116. java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`openmrs`.`address_hierarchy_level`, CONSTRAINT `parent_level` FOREIGN KEY (`parent_level_id`) REFERENCES `address_hierarchy_level` (`address_hierarchy_level_id`))
  117. com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2055)
  118. com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1467)
  119. com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1135)
  120. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:127)
  121. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:114)
  122. org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:163)
  123. org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:226)
  124. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
  125. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
  126. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
  127. org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:67)
  128. org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1227)
  129. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1711)
  130. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:380)
  131. org.openmrs.module.addresshierarchy.db.hibernate.HibernateAddressHierarchyDAO.getAddressHierarchyEntryCountByLevel(HibernateAddressHierarchyDAO.java:65)
  132. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.getAddressHierarchyEntryCountByLevel(AddressHierarchyServiceImpl.java:411)
  133. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.setAddressHierarchyLevelParents(AddressHierarchyServiceImpl.java:643)
  134. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  135. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  136. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  137. java.lang.reflect.Method.invoke(Unknown Source)
  138. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  139. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  140. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  141. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  142. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  143. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  144. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  145. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  146. com.sun.proxy.$Proxy277.setAddressHierarchyLevelParents(Unknown Source)
  147. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  148. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  149. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  150. java.lang.reflect.Method.invoke(Unknown Source)
  151. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  152. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  153. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  154. org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
  155. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  156. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  157. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  158. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  159. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  160. org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  161. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  162. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  163. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  164. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  165. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  166. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  167. com.sun.proxy.$Proxy278.setAddressHierarchyLevelParents(Unknown Source)
  168. org.openmrs.module.addresshierarchy.web.controller.ManageAddressHierarchyController.getOrderedAddressHierarchyLevels(ManageAddressHierarchyController.java:90)
  169. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  170. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  171. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  172. java.lang.reflect.Method.invoke(Unknown Source)
  173. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:163)
  174. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  175. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  176. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  177. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  178. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  179. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  180. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
  181. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  182. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  183. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  184. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  185. org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  186. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  187. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  188. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  189. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  190. org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  191. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  192. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  193. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  194. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  195. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  196. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  197.  
  198. root cause
  199.  
  200. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`openmrs`.`address_hierarchy_level`, CONSTRAINT `parent_level` FOREIGN KEY (`parent_level_id`) REFERENCES `address_hierarchy_level` (`address_hierarchy_level_id`))
  201. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  202. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  203. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  204. java.lang.reflect.Constructor.newInstance(Unknown Source)
  205. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  206. com.mysql.jdbc.Util.getInstance(Util.java:386)
  207. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
  208. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  209. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  210. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  211. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  212. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  213. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  214. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2441)
  215. com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2007)
  216. com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1467)
  217. com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1135)
  218. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:127)
  219. org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:114)
  220. org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:163)
  221. org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:226)
  222. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:484)
  223. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
  224. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
  225. org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:67)
  226. org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1227)
  227. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1711)
  228. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:380)
  229. org.openmrs.module.addresshierarchy.db.hibernate.HibernateAddressHierarchyDAO.getAddressHierarchyEntryCountByLevel(HibernateAddressHierarchyDAO.java:65)
  230. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.getAddressHierarchyEntryCountByLevel(AddressHierarchyServiceImpl.java:411)
  231. org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.setAddressHierarchyLevelParents(AddressHierarchyServiceImpl.java:643)
  232. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  233. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  234. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  235. java.lang.reflect.Method.invoke(Unknown Source)
  236. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  237. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  238. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  239. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  240. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  241. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  242. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  243. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  244. com.sun.proxy.$Proxy277.setAddressHierarchyLevelParents(Unknown Source)
  245. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  246. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  247. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  248. java.lang.reflect.Method.invoke(Unknown Source)
  249. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  250. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  251. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  252. org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
  253. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  254. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  255. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  256. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  257. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  258. org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  259. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  260. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  261. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  262. org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  263. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  264. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  265. com.sun.proxy.$Proxy278.setAddressHierarchyLevelParents(Unknown Source)
  266. org.openmrs.module.addresshierarchy.web.controller.ManageAddressHierarchyController.getOrderedAddressHierarchyLevels(ManageAddressHierarchyController.java:90)
  267. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  268. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  269. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  270. java.lang.reflect.Method.invoke(Unknown Source)
  271. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:163)
  272. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  273. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  274. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  275. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  276. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  277. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  278. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
  279. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  280. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
  281. org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  282. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  283. org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  284. org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  285. org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  286. org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
  287. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  288. org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  289. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  290. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  291. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  292. org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  293. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  294. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  295.  
  296. note The full stack trace of the root cause is available in the Apache Tomcat/8.0.12 logs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement