Stream: cql
Topic: Error running latest hapi-fhir-jpaserver-starter with cql
Sean McIlvenna (Feb 24 2021 at 22:36):
Trying to run hapi-fhir-jpaserver-starter (as R4) with hapi.fhir.cql_enabled=true.
Sean McIlvenna (Feb 24 2021 at 22:37):
I'm getting the following error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirModelResolver' defined in class path resource [ca/uhn/fhir/cql/config/CqlR4Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.opencds.cqf.cql.engine.model.ModelResolver]: Factory method 'fhirModelResolver' threw exception; nested exception is java.lang.NoClassDefFoundError: org/opencds/cqf/cql/evaluator/engine/model/CachingModelResolverDecorator
Sean McIlvenna (Feb 24 2021 at 22:37):
It looks like it's missing org/opencds/cqf/cql/evaluator/engine/model/CachingModelResolverDecorator
Sean McIlvenna (Feb 24 2021 at 22:37):
Looked through the dependencies of hapi-fhir-jpaserver-starter
for cql engine, and don't see anything related to /engine/model/CachingModelResolverDecorator
Sean McIlvenna (Feb 24 2021 at 22:38):
Any guidance?
Sean McIlvenna (Feb 24 2021 at 22:48):
Oddly, even though hapi-fhir
build, in IntelliJ, it says it can't fine the CachingModelResolverDecorator
class, also.
image.png
Richard Stanley (Feb 25 2021 at 13:15):
@Kevin Dougan May have some hints on how to troubleshoot this issue.
Sean McIlvenna (Feb 25 2021 at 20:43):
Any thoughts @Kevin Dougan ?
JP (Mar 02 2021 at 16:12):
@Sean McIlvenna - The dependencies for the org/opencds/cqf/cql/evaluator/engine
are pulled in transitively through the hapi-fhir-jpaserver-cql
dependency here:
https://github.com/hapifhir/hapi-fhir/blob/master/hapi-fhir-jpaserver-cql/pom.xml#L26
I just pulled the latest from the master
branch hapi-fhir-jpaserver-starter
project and tried mvn jetty:run
and it seems to work ok. Could you double check and make sure you have the latest code?
Last updated: Apr 12 2022 at 19:14 UTC