Stream: IG creation
Topic: build error using current fhir package
Eric Haas (Aug 14 2018 at 16:11):
getting this new error when running a R4 IG:
Load hl7.fhir.core-3.4.0 package from /Users/ehaas/.fhir/packages/hl7.fhir.core-current (02.0776sec)
Publishing Content Failed: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray (04.0400sec)
(04.0401sec)
Use -? to get command line help (04.0401sec)
(04.0402sec)
Stack Dump (for debugging): (04.0402sec)
java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray
at com.google.gson.JsonObject.getAsJsonArray(JsonObject.java:172)
at org.hl7.fhir.r4.formats.JsonParser.parseCodeSystemProperties(JsonParser.java:6003)
at org.hl7.fhir.r4.formats.JsonParser.parseCodeSystem(JsonParser.java:5992)
at org.hl7.fhir.r4.formats.JsonParser.parseResource(JsonParser.java:26119)
at org.hl7.fhir.r4.formats.JsonParserBase.parse(JsonParserBase.java:92)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromFileJson(SimpleWorkerContext.java:254)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadDefinitionItem(SimpleWorkerContext.java:199)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromPackage(SimpleWorkerContext.java:280)
at org.hl7.fhir.r4.context.SimpleWorkerContext.fromPackage(SimpleWorkerContext.java:150)
at org.hl7.fhir.igtools.publisher.SpecificationPackage.fromPackage(SpecificationPackage.java:51)
at org.hl7.fhir.igtools.publisher.Publisher.loadPack(Publisher.java:1317)
at org.hl7.fhir.igtools.publisher.Publisher.loadCorePackage(Publisher.java:1289)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1004)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:476)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4610)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4620)
Erics-Air-2:IG-Template2 ehaas$
Eric Haas (Aug 14 2018 at 16:11):
do I need to update my package?
Rob Hausam (Aug 14 2018 at 16:12):
yes, exactly
Rob Hausam (Aug 14 2018 at 16:12):
I just did that this morning
Eric Haas (Aug 14 2018 at 16:12):
how do I do that exactly
Eric Haas (Aug 14 2018 at 16:12):
as step by step instruction
Rob Hausam (Aug 14 2018 at 16:12):
I just deleted the old one and it then downloads the new one
Rob Hausam (Aug 14 2018 at 16:12):
from your cache
Rob Hausam (Aug 14 2018 at 16:12):
it tells you where that is located on your machine
Eric Haas (Aug 14 2018 at 16:13):
OK
it downloads when I run the publisher?
Rob Hausam (Aug 14 2018 at 16:13):
yes - just delete /Users/ehaas/.fhir/packages/hl7.fhir.core-current
Eric Haas (Aug 14 2018 at 16:15):
ty Rob
Grahame Grieve (Aug 14 2018 at 18:31):
ok now I know what the issue is here - will fix
Last updated: Apr 12 2022 at 19:14 UTC