You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that since the upgrade to the 4.0 eclipse dependencies ~ cql version 3.4, the json compiling stopped working. Here is the stack:
Exception in thread "main" java.lang.RuntimeException: jakarta.xml.bind.PropertyException: name: eclipselink.media-type value: application/json
at org.cqframework.cql.elm.serializing.jaxb.ElmJsonLibraryWriter.write(ElmJsonLibraryWriter.java:26)
at org.cqframework.cql.cql2elm.CqlTranslator.convertToJson(CqlTranslator.java:208)
at org.cqframework.cql.cql2elm.CqlTranslator.toJson(CqlTranslator.java:130)
at org.cqframework.cql.cql2elm.CqlTranslator.toJson(CqlTranslator.java:141)
at org.cqframework.cql.cql2elm.cli.Main.writeELM(Main.java:100)
at org.cqframework.cql.cql2elm.cli.Main.main(Main.java:243)
Caused by: jakarta.xml.bind.PropertyException: name: eclipselink.media-type value: application/json
at jakarta.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:352)
at org.glassfish.jaxb.runtime.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:492)
at org.cqframework.cql.elm.serializing.jaxb.ElmJsonLibraryWriter.write(ElmJsonLibraryWriter.java:24)
... 5 more
I believe I narrowed this down to a newer implementation added org.eclipse.persistence.jaxb.XMLBindingContextFactory
The following is a workaround which might help identify the root of the issue java -Djakarta.xml.bind.JAXBContextFactory=org.eclipse.persistence.jaxb.XMLBindingContextFactory -classpath .... org.cqframework.cql.cql2elm.cli.Main
The text was updated successfully, but these errors were encountered:
It appears that since the upgrade to the 4.0 eclipse dependencies ~ cql version 3.4, the json compiling stopped working. Here is the stack:
I believe I narrowed this down to a newer implementation added
org.eclipse.persistence.jaxb.XMLBindingContextFactory
The following is a workaround which might help identify the root of the issue
java -Djakarta.xml.bind.JAXBContextFactory=org.eclipse.persistence.jaxb.XMLBindingContextFactory -classpath .... org.cqframework.cql.cql2elm.cli.Main
The text was updated successfully, but these errors were encountered: