Stream: implementers
Topic: igpublisher
Jefferson (Oct 17 2018 at 19:27):
I am new to this process and did some reading and saw this tool org.hl7.fhir.igpublisher that would create the new HTML for me. I download the JAR file and run the command but I am getting this error >Exception in thread "main" java.lang.Error: unknown version 1.9.0
Grahame Grieve (Oct 17 2018 at 19:35):
hmm that error should not have slipped out into production. just check: what version is the IG you are building?
Jefferson (Oct 17 2018 at 19:36):
FHIR Implementation Guide Publisher (v3.6.0-a77f48d9, gen-code v3.6.0 / 2)
Grahame Grieve (Oct 17 2018 at 19:39):
thx. can you paste the next few lines of output, down to Load hl7.fhir.core-??? package
Jefferson (Oct 17 2018 at 19:39):
FHIR Implementation Guide Publisher (v3.6.0-a77f48d9, gen-code v3.6.0 / 2) @ Wednesday, October 17, 2018 3:18:55 PM
Detected Java version: 1.8.0_191 from C:\Program Files\Java\jre1.8.0_191 on amd64 (64bit). 1797MB available
[C:\WINDOWS\system32] -ig C:\Project\IGPublisher\Publish\ig.json -watch
Package Cache: C:\Users\mcdevitt\.fhir\packages
Load
Grahame Grieve (Oct 17 2018 at 19:41):
it's about 15 lines in on my log
Grahame Grieve (Oct 17 2018 at 19:41):
FHIR Implementation Guide Publisher (v?? (not a build IGPublisher?), gen-code v3.6.0 / 2) @ Thursday, 18 October 2018 6:37:55 AM Detected Java version: 1.8.0_172 from C:\Program Files\Java\jre1.8.0_172 on amd64 (64bit). 7225MB available [C:\work\org.hl7.fhir\build\tools\java\org.hl7.fhir.igtools] -ig C:\work\org.hl7.fhir.intl\genomics Package Cache: C:\Users\graha\.fhir\packages Load Configuration from C:\work\org.hl7.fhir.intl\genomics\ig.json (00.0086sec) Redirecting to Configuration from C:\work\org.hl7.fhir.intl\genomics\src-generated\genomics-reporting.json (00.0089sec) Logging html Root directory: C:\work\org.hl7.fhir.intl\genomics\src-generated (00.0098sec) Terminology Cache is at C:\work\org.hl7.fhir.intl\genomics\src-generated\txcache. 17 files in cache (00.0254sec) Contacting Build Server... (00.0255sec) ... done (02.0742sec) Checking hl7.fhir.core-current currency (02.0755sec) ... ok: is 2, must be 2 (02.0755sec) Load hl7.fhir.core-current package from C:\Users\graha\.fhir\packages\hl7.fhir.core#current (02.0755sec)
Jefferson (Oct 17 2018 at 19:43):
IGPublisher
Press any key to continue . . .
FHIR Implementation Guide Publisher (v3.6.0-a77f48d9, gen-code v3.6.0 / 2) @ Wednesday, October 17, 2018 3:18:55 PM
Detected Java version: 1.8.0_191 from C:\Program Files\Java\jre1.8.0_191 on amd64 (64bit). 1797MB available
[C:\WINDOWS\system32] -ig C:\Project\IGPublisher\Publish\ig.json -watch
Package Cache: C:\Users\mcdevitt\.fhir\packages
Load Configuration from C:\Project\IGPublisher\Publish\ig.json (00.0007sec)
Root directory: C:\Project\IGPublisher\Publish (00.0046sec)
Terminology Cache is at C:\Project\IGPublisher\Publish\txCache. 243 files in cache (00.0095sec)
Contacting Build Server... (00.0095sec)
... done (00.0738sec)
Exception in thread "main" java.lang.Error: unknown version 1.9.0
at org.hl7.fhir.igtools.publisher.Publisher.getMasterSource(Publisher.java:1460)
at org.hl7.fhir.igtools.publisher.Publisher.loadCorePackage(Publisher.java:1426)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1088)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:946)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:525)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4927)
Press any key to continue . . .
Jefferson (Oct 17 2018 at 19:44):
Am I not using the right command?
Grahame Grieve (Oct 17 2018 at 19:48):
that must mean you have "version" : "1.9.0" in your ig.json file?
Jefferson (Oct 17 2018 at 19:49):
AHA!
"canonicalBase": "http://nccn.org/fhir",
"spreadsheets": ["plandefinition-order-template-spreadsheet.xml",
"activitydefinition-regimen-entry-spreadsheet.xml"],
"sct-edition": "http://snomed.info/sct/731000124108",
"paths": {
"temp": "temp",
"resources": ["resources", "examples"],
"specification": "http://hl7.org/fhir/STU3",
"txCache": "txCache",
"qa": "qa",
"pages": "pages",
"output": "output"
},
"version": "1.9.0"
Grahame Grieve (Oct 17 2018 at 19:49):
needs to be 3.0.1
Jefferson (Oct 17 2018 at 19:50):
Very nice Thanks
Jefferson (Oct 17 2018 at 19:51):
FHIR Implementation Guide Publisher (v3.6.0-a77f48d9, gen-code v3.6.0 / 2) @ Wednesday, October 17, 2018 3:49:46 PM
Detected Java version: 1.8.0_191 from C:\Program Files\Java\jre1.8.0_191 on amd64 (64bit). 1797MB available
[C:\Project\IGPublisher] -ig C:\Project\IGPublisher\Publish\ig.json -watch
Package Cache: C:\Users\mcdevitt\.fhir\packages
Load Configuration from C:\Project\IGPublisher\Publish\ig.json (00.0010sec)
Root directory: C:\Project\IGPublisher\Publish (00.0053sec)
Terminology Cache is at C:\Project\IGPublisher\Publish\txCache. 243 files in cache (00.0085sec)
Contacting Build Server... (00.0085sec)
... done (00.0919sec)
Fetch hl7.fhir.core-3.0.1 package from http://hl7.org/fhir/STU3/package.tgz (00.0920sec)
Installing hl7.fhir.core#3.0.1 to the package cache
Fetching:............................................................................................................
......................................................................................................................
......................................................................................................................
......................................................................................................|
Analysing.............................................................................................................
......................................................................................................................
......................................................................................................................
..................................................................... done.
Load hl7.fhir.core-3.0.1 package from C:\Users\mcdevitt\.fhir\packages\hl7.fhir.core#3.0.1 (50.0892sec)
exception generating new IG
java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.ConfigFileConverter.convert(ConfigFileConverter.java:111)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1097)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:946)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:525)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4927)
Load Terminology Cache from C:\Project\IGPublisher\Publish\txCache (58.0878sec)
Connect to Terminology Server at http://tx.fhir.org (58.0881sec)
-tx cache miss: Connect to http://tx.fhir.org//r3
Initialization complete (00:01:02.0371sec)
Load Content (00:01:02.0371sec)
Publishing Content Failed: A package name (npm-name) is required to publish implementation guides. For further information, see http://wiki.hl7.org/index.php?title=FHIR_NPM_Package_Spec#Package_name (00:01:02.0525sec)
(00:01:02.0527sec)
Use -? to get command line help (00:01:02.0529sec)
(00:01:02.0529sec)
Stack Dump (for debugging): (00:01:02.0530sec)
java.lang.Exception: A package name (npm-name) is required to publish implementation guides. For further information, see http://wiki.hl7.org/index.php?title=FHIR_NPM_Package_Spec#Package_name
at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:1754)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:584)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:528)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4927)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4937)
Press any key to continue . . .
Grahame Grieve (Oct 17 2018 at 19:52):
indeed, see the reference. btw, further follow discussion should be on this stream: https://chat.fhir.org/#narrow/stream/99-IG-creation
Jefferson (Oct 17 2018 at 19:54):
Thanks Do I need to install another package?
Last updated: Apr 12 2022 at 19:14 UTC