Advertisement
ssmusoke

Data Importer SQL Exception

Jan 5th, 2016
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.19 KB | None
  1. Unable to invoke started() method on the module's activator
  2. java.lang.RuntimeException: failed to import concepts modules
  3. at org.openmrs.module.aijar.AijarActivator.started(AijarActivator.java:84)
  4. at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:875)
  5. at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:962)
  6. at org.openmrs.module.web.WebModuleUtil.startModule(WebModuleUtil.java:323)
  7. at org.openmrs.module.web.controller.ModuleListController.onSubmit(ModuleListController.java:177)
  8. at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:272)
  9. at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:268)
  10. at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  11. at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  12. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
  13. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
  14. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
  15. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855)
  16. at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  17. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
  18. at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  19. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  20. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  21. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  22. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  23. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  24. at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
  25. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  26. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  27. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  28. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  29. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  30. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  31. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  32. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  33. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  34. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  35. at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
  36. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  37. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  38. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  39. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  40. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  41. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  42. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  43. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  44. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  45. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  46. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  47. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  48. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  49. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  50. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  51. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  52. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  53. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  54. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  55. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
  56. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  57. at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
  58. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  59. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  60. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  61. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  62. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  63. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  64. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  65. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  66. at java.lang.Thread.run(Thread.java:745)
  67. Caused by: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`concept_name`, CONSTRAINT `user_who_voided_this_name` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`))
  68. at org.openmrs.module.dataexchange.DataImporter.importData(DataImporter.java:61)
  69. at org.openmrs.module.dataexchange.DataImporter$$FastClassByCGLIB$$572a80f.invoke(<generated>)
  70. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
  71. at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:701)
  72. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  73. at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
  74. at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
  75. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
  76. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  77. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:634)
  78. at org.openmrs.module.dataexchange.DataImporter$$EnhancerByCGLIB$$f2d24e00.importData(<generated>)
  79. at org.openmrs.module.aijar.AijarActivator.installConcepts(AijarActivator.java:99)
  80. at org.openmrs.module.aijar.AijarActivator.started(AijarActivator.java:79)
  81. ... 63 more
  82. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`concept_name`, CONSTRAINT `user_who_voided_this_name` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`))
  83. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  84. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  85. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  86. at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  87. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  88. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  89. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
  90. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  91. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  92. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  93. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  94. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  95. at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  96. at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
  97. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:989)
  98. at org.dbunit.database.statement.SimplePreparedStatement.addBatch(SimplePreparedStatement.java:80)
  99. at org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:183)
  100. at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:110)
  101. at org.openmrs.module.dataexchange.DataImporter.importData(DataImporter.java:55)
Advertisement
RAW Paste Data Copied
Advertisement