FHIR Chat · IG Publisher finished with Code 1 · IG creation

Stream: IG creation

Topic: IG Publisher finished with Code 1


view this post on Zulip Lorraine Constable (Sep 27 2021 at 15:34):

I am running the IG Publisher from Trifolia. This morning I sat down to make a change and ran the publisher before making any changes. Previous builds ran fine; today I get "IG Publisher finished with Code 1" and a stack dump

Publishing Content Failed: Error Parsing File XXXXXX-1H1V1tA4IUOOH/input/MCC-IG.json: JsonObject (00:01.0828)
(00:01.0829)
Use -? to get command line help (00:01.0829)
(00:01.0830)
Stack Dump (for debugging): (00:01.0830)
java.lang.Exception: Error Parsing File XXX/tmp-1H1V1tA4IUOOH/input/MCC-IG.json: JsonObject
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1662)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1479)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:738)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8557)
Caused by: java.lang.UnsupportedOperationException: JsonObject
at com.google.gson.JsonElement.getAsString(JsonElement.java:192)
at org.hl7.fhir.r4.formats.JsonParser.parseImplementationGuideImplementationGuideDefinitionResourceComponentProperties(JsonParser.java:14566)
at org.hl7.fhir.r4.formats.JsonParser.parseImplementationGuideImplementationGuideDefinitionResourceComponent(JsonParser.java:14534)
at org.hl7.fhir.r4.formats.JsonParser.parseImplementationGuideImplementationGuideDefinitionComponentProperties(JsonParser.java:14495)
at org.hl7.fhir.r4.formats.JsonParser.parseImplementationGuideImplementationGuideDefinitionComponent(JsonParser.java:14480)
at org.hl7.fhir.r4.formats.JsonParser.parseImplementationGuideProperties(JsonParser.java:14433)

etc.

I tried switching to other versions of the publisher, and I get the same behaviour with all the versions I tried.

Any hints?

view this post on Zulip Lloyd McKenzie (Sep 27 2021 at 15:45):

Did you take a look at MCC-IG.json and verify that it is in fact valid JSON?

view this post on Zulip Chris Moesel (Sep 27 2021 at 16:29):

Caused by: java.lang.UnsupportedOperationException: JsonObject usually means that you have a value somewhere that is an object (e.g., { ... }), but it should be an array (e.g., [...]) or primitive value. You might get more information if you try putting that MCC-IG.json through a FHIR validator.

view this post on Zulip Lorraine Constable (Sep 27 2021 at 16:32):

there were no changes since the last time the publisher was run, which is why I came here first

view this post on Zulip Lorraine Constable (Sep 27 2021 at 16:33):

will do

view this post on Zulip Lorraine Constable (Sep 27 2021 at 22:53):

validation only showed the existing known errors that were there when the build used to run. And confirmed that there have no changes since the build that worked on Sept 14

view this post on Zulip Lloyd McKenzie (Sep 28 2021 at 01:34):

What's the URL for the IG?

view this post on Zulip Lorraine Constable (Sep 28 2021 at 13:30):

https://trifolia-fhir.lantanagroup.com/igs/lantana_hapi_r4/MCC-IG/index.html

view this post on Zulip Lorraine Constable (Sep 28 2021 at 13:31):

note - I didn't create this, I have been tasked with making small fixes...

view this post on Zulip Lloyd McKenzie (Sep 28 2021 at 14:24):

Is it available in Git somewhere?

view this post on Zulip Lorraine Constable (Sep 28 2021 at 20:09):

@Lloyd McKenzie sorry for the delay - juggling everything including mum in hospital heading to assisted living. https://github.com/HL7/fhir-us-mcc contains the export from before my Sept 14 update, which renamed one of the lab profiles

view this post on Zulip Lorraine Constable (Sep 28 2021 at 20:10):

I can do an export from Trifolia again if you need, but I don't think I have committer rights to that repository

view this post on Zulip Grahame Grieve (Sep 28 2021 at 21:06):

that runs for me

view this post on Zulip Lorraine Constable (Sep 28 2021 at 21:33):

It turns out that I did not notice that the latest Trifolia release changed the default to Json from XML, so the json parser was trying to parse XML structure definitions. Once I corrected my error, everything runs as expected

view this post on Zulip Lorraine Constable (Sep 28 2021 at 21:33):

Thanks for your help


Last updated: Apr 12 2022 at 19:14 UTC