FHIR Chat · Publisher Crash: Duplicated property name... · IG creation

Stream: IG creation

Topic: Publisher Crash: Duplicated property name...


view this post on Zulip Chris Moesel (Apr 06 2019 at 12:42):

I downloaded the latest build of the FHIR IG Publisher today and ran it against my DSTU2 IG. This IG runs successfully (albeit, with reported errors) using an earlier version of the publisher, but today's publisher produces this stack trace:

Connect to Terminology Server at http://tx.fhir.org                              (07.0774sec)
-tx cache miss: Connect to http://tx.fhir.org//r2
Publishing Content Failed: Error parsing JSON source: Duplicated property name: StructureDefinition: argonaut-careplan - FHIR v1.0.2 at Line 1295 (path=[//pagesargonaut/argonaut-careplan-mappings.html]) (08.0504sec)
                                                                                 (08.0505sec)
Use -? to get command line help                                                  (08.0505sec)
                                                                                 (08.0505sec)
Stack Dump (for debugging):                                                      (08.0505sec)
java.io.IOException: Error parsing JSON source: Duplicated property name: StructureDefinition: argonaut-careplan - FHIR v1.0.2 at Line 1295 (path=[//pagesargonaut/argonaut-careplan-mappings.html])
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser$Lexer.error(JsonTrackingParser.java:194)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser$Lexer.access$400(JsonTrackingParser.java:114)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser.readObject(JsonTrackingParser.java:390)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser.readObject(JsonTrackingParser.java:398)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser.parse(JsonTrackingParser.java:378)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser.parse(JsonTrackingParser.java:363)
    at org.hl7.fhir.r5.utils.formats.JsonTrackingParser.parseJson(JsonTrackingParser.java:349)
    at org.hl7.fhir.igtools.publisher.SpecMapManager.<init>(SpecMapManager.java:60)
    at org.hl7.fhir.igtools.publisher.Publisher.loadSpecDetails(Publisher.java:1792)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1168)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:984)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:555)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:5158)
Exception in thread "main" java.lang.NullPointerException
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:5168)

view this post on Zulip Lloyd McKenzie (Apr 06 2019 at 14:16):

The cache for DSTU2 contains a bad JSON file and the enhanced checking Grahame introduced is now choking on it. You can either go in and manually fix the spec.internals element in your cache to have the same 'pages' object as STU3 and R4 or you can wait for Grahame to push a patched version up.

view this post on Zulip Chris Moesel (Apr 07 2019 at 10:19):

Thanks for the tip, @Lloyd McKenzie. For now, I'll just stick to the older version of the publisher.

view this post on Zulip Grahame Grieve (Apr 07 2019 at 12:03):

fixed

view this post on Zulip Chris Moesel (Apr 08 2019 at 01:06):

Thank you, @Grahame Grieve!


Last updated: Apr 12 2022 at 19:14 UTC