Guest User

Untitled

a guest
Jul 8th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.97 KB | None | 0 0
  1. The following error occurred at startup:
  2. Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/registrationcore/registrationcore.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  3. org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/registrationcore/registrationcore.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  4. at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
  5. at org.openmrs.web.Listener.contextInitialized(Listener.java:192)
  6. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
  7. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
  8. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  9. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
  10. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
  11. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  12. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  13. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  14. at java.lang.Thread.run(Thread.java:748)
  15. Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/registrationcore/registrationcore.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  16. at org.openmrs.web.Listener.startOpenmrs(Listener.java:259)
  17. at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
  18. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/registrationcore/registrationcore.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  19. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
  20. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
  21. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
  22. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  23. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
  24. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  25. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
  26. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
  27. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
  28. at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:888)
  29. at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:847)
  30. at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:632)
  31. at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:612)
  32. at org.openmrs.web.Listener.startOpenmrs(Listener.java:251)
  33. ... 1 more
  34. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  35. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
  36. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
  37. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
  38. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
  39. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
  40. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  41. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
  42. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  43. at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
  44. at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:286)
  45. at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:265)
  46. at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
  47. at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
  48. at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:120)
  49. at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:76)
  50. at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:74)
  51. at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
  52. at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
  53. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
  54. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558)
  55. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
  56. ... 14 more
  57. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  58. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
  59. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
  60. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
  61. ... 34 more
  62. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/pihServer/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  63. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1093)
  64. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038)
  65. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
  66. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
  67. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
  68. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  69. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
  70. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  71. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
  72. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
  73. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
  74. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
  75. ... 36 more
  76. Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
  77. at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
  78. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
  79. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1086)
  80. ... 47 more
  81. Caused by: java.lang.RuntimeException: Error parsing json configuration
  82. at org.openmrs.module.pihcore.config.ConfigLoader.load(ConfigLoader.java:118)
  83. at org.openmrs.module.pihcore.config.ConfigLoader.loadFromRuntimeProperties(ConfigLoader.java:45)
  84. at org.openmrs.module.pihcore.config.Config.(Config.java:22)
  85. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  86. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  87. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  88. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  89. at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
  90. ... 49 more
  91. Caused by: java.lang.IllegalStateException: Unable to find config file for configuration mirebalais
  92. at org.openmrs.module.pihcore.config.ConfigLoader.load(ConfigLoader.java:94)
  93. ... 56 more
  94.  
  95.  
  96. See the server log for full output.
Add Comment
Please, Sign In to add comment