FHIR Chat · logging gone missing? · IG creation

Stream: IG creation

Topic: logging gone missing?


view this post on Zulip Andrew Patterson (Jan 31 2018 at 03:31):

I'll get the stream started!

I've got a IG (based on the Australia base IG). It has been working fine but I have just added a (first) example and it is now crashing.

Two issues
(a) the log files don't seem to be getting created (even in the case where the guide publishes without error.. they should be in temp should they not?)
(b) my actual error - caused just by adding a JSON example and referencing it in the IG

Publishing Content Failed: null (14.0969sec)
(14.0969sec)
Use -? to get command line help (14.0970sec)
(14.0970sec)
Stack Dump (for debugging): (14.0970sec)
java.lang.NullPointerException
at java.lang.String.replace(String.java:2240)
at org.hl7.fhir.igtools.publisher.IGKnowledgeProvider.doReplacements(IGKnowledgeProvider.java:130)
at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:1385)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:372)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:346)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4012)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4022)

Details:
FHIR Implementation Guide Publisher (v3.2.0-12946, gen-code v3.2.0-12882) @ Wednesday, January 31, 2018 3:29:07 AM
Detected Java version: 1.8.0_151 from /usr/lib/jvm/java-8-openjdk-amd64/jre on amd64 (64bit). 3561MB available

view this post on Zulip Lloyd McKenzie (Jan 31 2018 at 04:02):

Your example instance is missing the "id" element.

view this post on Zulip Andrew Patterson (Jan 31 2018 at 04:02):

Thanks Lloyd - I just found the publisher source and had just come to that conclusion!

view this post on Zulip Andrew Patterson (Jan 31 2018 at 04:04):

my example is of a Bundle that I am using as an example of what might be sumitted as a transaction. So it doesn't actually have an id (though I can put one in for the example)

view this post on Zulip Andrew Patterson (Jan 31 2018 at 04:05):

unless I've misread the spec and the bundle for a transaction does need an id

view this post on Zulip Andrew Patterson (Jan 31 2018 at 04:08):

(the log files are definitely not being generated on my system but that is separate issue - and could be a quirk of my setup)

view this post on Zulip Lloyd McKenzie (Jan 31 2018 at 04:18):

All examples need an id - we publish based on it.

view this post on Zulip Lloyd McKenzie (Jan 31 2018 at 04:19):

Can't put them in registries, etc. if they don't have one either.

view this post on Zulip Lloyd McKenzie (Jan 31 2018 at 04:19):

I don't recall whether transactions are exempted, but if they are, you'll have to put in a comment noting that in a real instance, the id could be omitted.

view this post on Zulip Andrew Patterson (Jan 31 2018 at 04:20):

ok thanks.. I'll put a comment in


Last updated: Apr 12 2022 at 19:14 UTC