ca.uhn.fhir.rest.server.exceptions.InternalErrorException

Unexpected failure while validating resource

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • ca.uhn.fhir.rest.server.exceptions.InternalErrorException: Unexpected failure while validating resource at org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator.validate(FhirInstanceValidator.java:179)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator.validate(FhirInstanceValidator.java:204)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.hapi.validation.BaseValidatorBridge.doValidate(BaseValidatorBridge.java:24)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.hapi.validation.BaseValidatorBridge.validateResource(BaseValidatorBridge.java:52)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator.validateResource(FhirInstanceValidator.java:34)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.validation.FhirValidator.validateWithResult(FhirValidator.java:287)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor.doValidate(RequestValidatingInterceptor.java:96)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor.doValidate(RequestValidatingInterceptor.java:45)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.interceptor.BaseValidatingInterceptor.validate(BaseValidatingInterceptor.java:283)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor.incomingRequestPostProcessed(RequestValidatingInterceptor.java:70)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.RestfulServer.handleRequest(RestfulServer.java:662)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.RestfulServer.doPost(RestfulServer.java:1237)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at ca.uhn.fhir.rest.server.RestfulServer.service(RestfulServer.java:1209)[hapi-fhir-base-2.3-SNAPSHOT.jar:na] at com.cambia.fhir.service.FHIREncounterService.service(FHIREncounterService.java:109)[classes/:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)[catalina.jar:8.5.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.5] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-websocket.jar:8.5.5] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.5] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[catalina.jar:8.5.5] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)[catalina.jar:8.5.5] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:8.5.5] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)[catalina.jar:8.5.5] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[catalina.jar:8.5.5] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)[catalina.jar:8.5.5] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[catalina.jar:8.5.5] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)[catalina.jar:8.5.5] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)[tomcat-coyote.jar:8.5.5] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-coyote.jar:8.5.5] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)[tomcat-coyote.jar:8.5.5] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)[tomcat-coyote.jar:8.5.5] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-coyote.jar:8.5.5] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.8.0_102] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-util.jar:8.5.5] at java.lang.Thread.run(Unknown Source)[na:1.8.0_102] Caused by: java.lang.NullPointerException: null at org.hl7.fhir.dstu3.validation.InstanceValidator.validateBundle(InstanceValidator.java:2487)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.validation.InstanceValidator.start(InstanceValidator.java:2019)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.validation.InstanceValidator.validateResource(InstanceValidator.java:3033)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.validation.InstanceValidator.validate(InstanceValidator.java:499)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.validation.InstanceValidator.validate(InstanceValidator.java:454)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.validation.InstanceValidator.validate(InstanceValidator.java:443)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na] at org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator.validate(FhirInstanceValidator.java:177)[hapi-fhir-structures-dstu3-2.3-SNAPSHOT.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.