Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.20 KB | None
  1. ERROR - JDBCExceptionReporter.logExceptions(234) |2018-02-06 12:43:03,482| Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`customhtmlforms_smear_result`, CONSTRAINT `customhtmlforms_smear_result_encounter_fk` FOREIGN KEY (`encounter`) REFERENCES `encounter` (`encounter_id`))
  2. ERROR - BaseRestController.handleException(115) |2018-02-06 12:43:03,493| could not insert: [org.openmrs.module.customhtmlforms.SmearResult]
  3. org.hibernate.exception.ConstraintViolationException: could not insert: [org.openmrs.module.customhtmlforms.SmearResult]
  4. at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
  5. at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  6. at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)
  7. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2345)
  8. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2852)
  9. at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
  10. at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
  11. at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:320)
  12. at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:203)
  13. at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:129)
  14. at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
  15. at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
  16. at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
  17. at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
  18. at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
  19. at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
  20. at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:673)
  21. at org.openmrs.module.customhtmlforms.db.hibernate.HibernateCustomHtmlFormsDao.saveSmearResult(HibernateCustomHtmlFormsDao.java:33)
  22. at org.openmrs.module.customhtmlforms.api.impl.CustomHtmlFormsServiceImpl.saveSmearResult(CustomHtmlFormsServiceImpl.java:55)
  23. at org.openmrs.module.customhtmlforms.api.impl.CustomHtmlFormsServiceImpl.addSmearResult(CustomHtmlFormsServiceImpl.java:119)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  25. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  26. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  27. at java.lang.reflect.Method.invoke(Method.java:606)
  28. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  29. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  30. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  31. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  32. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  33. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  34. at com.sun.proxy.$Proxy110.addSmearResult(Unknown Source)
  35. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  36. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  37. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  38. at java.lang.reflect.Method.invoke(Method.java:606)
  39. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  40. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  41. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  42. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  43. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  44. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  45. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  46. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  47. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  48. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  49. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  50. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  51. at com.sun.proxy.$Proxy111.addSmearResult(Unknown Source)
  52. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  53. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  54. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  55. at java.lang.reflect.Method.invoke(Method.java:606)
  56. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  57. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  58. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  59. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  60. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  61. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  62. at com.sun.proxy.$Proxy111.addSmearResult(Unknown Source)
  63. at org.openmrs.module.customhtmlforms.web.resource.SmearResultResource.save(SmearResultResource.java:73)
  64. at org.openmrs.module.customhtmlforms.web.resource.SmearResultResource.save(SmearResultResource.java:18)
  65. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.create(DelegatingCrudResource.java:78)
  66. at org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.create(MainResourceController.java:92)
  67. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  68. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  69. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  70. at java.lang.reflect.Method.invoke(Method.java:606)
  71. at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
  72. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
  73. at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
  74. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
  75. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
  76. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
  77. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
  78. at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
  79. at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
  80. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  81. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  82. at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
  83. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  84. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  85. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  86. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:55)
  87. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  88. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  89. at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:104)
  90. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  91. at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:58)
  92. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  93. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  94. at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  95. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  96. at org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:69)
  97. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
  98. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  99. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  100. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  101. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:107)
  102. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  103. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  104. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  105. at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  106. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  107. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  108. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  109. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  110. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  111. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  112. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  113. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  114. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  115. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  116. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  117. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  118. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  119. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  120. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  121. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  122. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  123. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  124. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  125. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  126. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  127. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  128. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
  129. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
  130. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  131. at java.lang.Thread.run(Thread.java:748)
  132. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`customhtmlforms_smear_result`, CONSTRAINT `customhtmlforms_smear_result_encounter_fk` FOREIGN KEY (`encounter`) REFERENCES `encounter` (`encounter_id`))
  133. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  134. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  135. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  136. at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  137. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  138. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  139. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
  140. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  141. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  142. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  143. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  144. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  145. at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  146. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2441)
  147. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2366)
  148. at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2350)
  149. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105)
  150. at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)
  151. at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
  152. ... 125 more
Advertisement
RAW Paste Data Copied
Advertisement