Guest User

pastebin

a guest
Jul 12th, 2021
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Request:
  2. {
  3. "patient": {
  4. "person": "51de2d4e-b8b7-4042-bba5-3f39383e82f0",
  5. "identifiers": [
  6. {
  7. "identifier": "1020061200101",
  8. "identifierType": "8d79403a-c2cc-11de-8d13-0010c6dffd0f",
  9. "location": "8d6c993e-c2cc-11de-8d13-0010c6dffd0f",
  10. "preferred": true
  11. }
  12. ]
  13. },
  14. "encounterType": {
  15. "name": "SMH_ASHA_SCREENING_3",
  16. "description": "SMH_ASHA_SCREENING_3"
  17. },
  18. "encounterDatetime": "2021-07-12T18:16:42.215Z",
  19. "obs":[{
  20. "person": "51de2d4e-b8b7-4042-bba5-3f39383e82f0",
  21. "obsDatetime": "2021-07-12T18:16:42.215Z",
  22. "concept": "ad09b9ee-2c63-4d88-a07e-952227b87ece",
  23. "encounter": "SMH_ASHA_SCREENING_3",
  24. "voided": false,
  25. "value": "1020061200101",
  26. "status": "PRELIMINARY",
  27. "interpretation": "NORMAL"
  28. }]
  29. }
  30.  
  31.  
  32. Error:
  33. [message] => [null]
  34. [code] => org.openmrs.Encounter:560
  35. [detail] => java.lang.NullPointerException
  36. at org.openmrs.Encounter.toString(Encounter.java:560)
  37. at java.lang.String.valueOf(String.java:2994)
  38. at java.lang.StringBuilder.append(StringBuilder.java:131)
  39. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:104)
  40. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  41. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  42. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  43. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  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.$Proxy767.saveEncounter(Unknown Source)
  47. at
  48. org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.EncounterResource1_9.save(EncounterResource1_9.java:81)
  49. at
  50. org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_9.EncounterResource1_9.save(EncounterResource1_9.java:31)
  51. at org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.create(DelegatingCrudResource.java:78)
  52. at org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.create(MainResourceController.java:92)
  53. at sun.reflect.GeneratedMethodAccessor1100.invoke(Unknown Source)
  54. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  55. at java.lang.reflect.Method.invoke(Method.java:498)
  56. at
  57. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  58. at
  59. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  60. at
  61. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  62. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  63. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  64. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  65. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  66. at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
  67. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  68. at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  69. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  70. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  71. at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  72. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  73. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  74. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  75. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  76. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  77. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73)
  78. at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:65)
  79. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  80. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  81. at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  82. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  83. at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  84. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  85. at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  86. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  87. at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  88. at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:57)
  89. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  90. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  91. at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  92. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  93. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  94. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  95. at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  96. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  97. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  98. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  99. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  100. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  101. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  102. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  103. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  104. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  105. at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  106. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  107. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  108. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  109. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  110. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  111. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  112. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
  113. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  114. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  115. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  116. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  117. at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
  118. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  119. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  120. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  121. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  122. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
  123. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839)
  124. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  125. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  126. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  127. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  128. at java.lang.Thread.run(Thread.java:748)
  129.  
  130. )
  131.  
  132. )
  133.  
  134. )
RAW Paste Data