hapi fhir jpa:未找到资源

问题描述

我正在尝试使用 hapi-fhir-jpa 部署 spring-boot 服务。

目前,我得到:

Caused by: java.lang.NullPointerException: The validated object is null
    at java.base/java.util.Objects.requireNonNull(Objects.java:347) ~[na:na]
    at org.apache.commons.lang3.Validate.notNull(Validate.java:225) ~[commons-lang3-3.11.jar:3.11]
    at org.apache.commons.lang3.Validate.notNull(Validate.java:207) ~[commons-lang3-3.11.jar:3.11]
    at org.apache.commons.lang3.Validate.noNullElements(Validate.java:559) ~[commons-lang3-3.11.jar:3.11]
    at ca.uhn.fhir.rest.server.RestfulServer.setResourceProviders(RestfulServer.java:809) ~[hapi-fhir-server-5.3.3.jar:na]
    at ca.uhn.fhir.spring.boot.autoconfigure.FhirAutoConfiguration$FhirRestfulServerConfiguration.initialize(FhirAutoConfiguration.java:160) ~[hapi-fhir-spring-boot-autoconfigure-5.3.3.jar:na]
    at ca.uhn.fhir.rest.server.RestfulServer.init(RestfulServer.java:1285) ~[hapi-fhir-server-5.3.3.jar:na]
    at javax.servlet.GenericServlet.init(GenericServlet.java:158) ~[tomcat-embed-core-9.0.45.jar:4.0.FR]
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134) ~[tomcat-embed-core-9.0.45.jar:9.0.45]
    ... 38 common frames omitted

我相关的 hapi-fhir 配置是:

hapi:
  fhir:
    version: R4
    supported_resource_types:
     - Patient
     - Observation
    server:
      path: /fhir/*
    rest:
      server-name: hapi-fhir-spring-boot-sample-server-jersey
      server-version: 1.0.0
      implementation-description: Spring Boot Jersey Server Sample
      default-response-encoding: json
      e-tag-support: enabled
      default-pretty-print: true
    validation:
      enabled: true
      request-only: true

我的 pom.xml 依赖项是:

<dependency>
            <groupId>ca.uhn.hapi.fhir</groupId>
            <artifactId>hapi-fhir-spring-boot-starter</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>ca.uhn.hapi.fhir</groupId>
            <artifactId>hapi-fhir-jaxRSServer-base</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>ca.uhn.hapi.fhir</groupId>
            <artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>ca.uhn.hapi.fhir</groupId>
            <artifactId>hapi-fhir-structures-dstu3</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>ca.uhn.hapi.fhir</groupId>
            <artifactId>hapi-fhir-jpaserver-api</artifactId>
            <version>5.3.3</version>
        </dependency>

为了启动我的服务,我运行 mvn clean spring-boot:run

有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...