OHDSI Home | Forums | Wiki | Github

Error while creating cohort

Hi,
I am getting the following error while creating cohort through atlas interface. Any suggestions on what can be potential error?

2021-10-29 22:21:24.229 ERROR http-nio-8080-exec-4 org.ohdsi.webapi.util.GenericExceptionMapper -  - java.lang.NoClassDefFoundError: org/graalvm/polyglot/PolyglotException
	at org.ohdsi.analysis.versioning.CdmVersionUtils.determineCdmCompatibility(CdmVersionUtils.java:27)
	at org.ohdsi.analysis.versioning.VersionedSerializer.serialize(VersionedSerializer.java:21)
	at org.ohdsi.analysis.versioning.VersionedSerializer.serialize(VersionedSerializer.java:9)
	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:292)
	at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3697)
	at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3073)
	at org.ohdsi.analysis.Utils.serialize(Utils.java:172)
	at org.ohdsi.analysis.Utils.serialize(Utils.java:165)
	at org.ohdsi.webapi.service.CohortDefinitionService.createCohortDefinition(CohortDefinitionService.java:406)
	at org.ohdsi.webapi.service.CohortDefinitionService$$FastClassBySpringCGLIB$$3ea7ee83.invoke(<generated>)

Hi, I have the same problem.

I use 1K Synpuf and necessary vocabularies. I can see Atlas properly gives data statistics report on Report dashbaord. However It seems that whenever we try to save a new cohort, it reports an error.

I tried the same cohort definition at demo server of Atlas https://atlas-demo.ohdsi.org/, and confirmed it was successful. So cohort definition itself should be working. Something wrong in Java processing…

t