FHIR Chat · IG Publisher Error · implementers

Stream: implementers

Topic: IG Publisher Error


view this post on Zulip frank cao (Nov 14 2017 at 20:37):

Using the latest IG publisher, I'm getting the error below. Can anyone please advise how to fix this? Thank you.

[java] Fetch Validation Pack from http://hl7.org/fhir/DSTU2/igpack.zip                  (00.0194sec)
[java] Local Validation Pack from cache location C:\PCR_FHIR_local\pcr\src-generated\txcache\validation-1.0.2.zip
[java] Publishing Content Failed: Duplicate Resource http://hl7.org/fhir/v2/0001        (18.0960sec)
[java]                                                                                  (18.0961sec)
[java] Use -? to get command line help                                                  (18.0961sec)
[java]                                                                                  (18.0961sec)
[java] Stack Dump (for debugging):                                                      (18.0961sec)
[java] org.hl7.fhir.exceptions.DefinitionException: Duplicate Resource http://hl7.org/fhir/v2/0001
[java]     at org.hl7.fhir.r4.context.BaseWorkerContext.cacheResource(BaseWorkerContext.java:156)
[java]     at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromFile(SimpleWorkerContext.java:213)
[java]     at org.hl7.fhir.r4.context.SimpleWorkerContext.loadDefinitionItem(SimpleWorkerContext.java:173)
[java]     at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromStream(SimpleWorkerContext.java:254)
[java]     at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromPack(SimpleWorkerContext.java:243)
[java]     at org.hl7.fhir.r4.context.SimpleWorkerContext.fromPack(SimpleWorkerContext.java:139)
[java]     at org.hl7.fhir.igtools.publisher.SpecificationPackage.fromPath(SpecificationPackage.java:29)
[java]     at org.hl7.fhir.igtools.publisher.Publisher.loadPack(Publisher.java:1075)
[java]     at org.hl7.fhir.igtools.publisher.Publisher.loadValidationPack(Publisher.java:1070)
[java]     at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:815)
[java]     at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:335)
[java]     at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:3938)
[java] Exception in thread "main" java.lang.NullPointerException
[java]     at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:3948)

view this post on Zulip Jose Costa Teixeira (Nov 14 2017 at 21:31):

Are you using command line?

view this post on Zulip Lloyd McKenzie (Nov 14 2017 at 21:58):

Do a "clean" and then try again.

view this post on Zulip frank cao (Nov 22 2017 at 15:02):

Same result, I used "gencontinuous" batch file. Clean was successful below.

C:\PCR_FHIR_local\pcr>java -jar framework\ant\ant-launcher.jar -buildfile framework/build.xml clean
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_151\lib\tools.jar
Buildfile: C:\PCR_FHIR_local\pcr\framework\build.xml

clean:
[delete] Deleting directory C:\PCR_FHIR_local\pcr\src-generated

BUILD SUCCESSFUL
Total time: 0 seconds

C:\PCR_FHIR_local\pcr>pause
Press any key to continue . . .

view this post on Zulip Lloyd McKenzie (Nov 22 2017 at 23:30):

I've been able to reproduce the issue. Working with Grahame on a fix.

view this post on Zulip frank cao (Nov 30 2017 at 16:02):

I've been able to reproduce the issue. Working with Grahame on a fix.

Thank you Lloyd.

view this post on Zulip Lloyd McKenzie (Nov 30 2017 at 20:27):

This should now be fixed

view this post on Zulip Christopher Brune (Aug 26 2020 at 19:48):

Christopher Brune3:47 PM
We've downloaded the FHIR IG Publisher Jar and have it running.
We've pointed the Publisher at the ImplementationGuide-ig.json control file
The Publisher errors and provides a limited stack trace.

Package Cache: /.fhir/packages
Load Configuration from /ig.json
Error : Error: the IG declares that is based on version 3.0.1 but this IG publisher only supports publishing the following versions: 1.0.2, 1.4.0, 3.0.2, 4.0.1, 4.5.0
org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1992)
org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1392)
org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:674)
org.hl7.fhir.igtools.ui.IGPublisherFrame$BackgroundPublisherTask.doInBackground(IGPublisherFrame.java:262)
org.hl7.fhir.igtools.ui.IGPublisherFrame$BackgroundPublisherTask.doInBackground(IGPublisherFrame.java:251)
javax.swing.SwingWorker$1.call(SwingWorker.java:295)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
javax.swing.SwingWorker.run(SwingWorker.java:334)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

view this post on Zulip Lloyd McKenzie (Aug 26 2020 at 21:18):

Your IG needs to declare the FHIR version as 3.0.2, not 3.0.1


Last updated: Apr 12 2022 at 19:14 UTC