FHIR Chat · java.lang.NullPointerException · IG creation

Stream: IG creation

Topic: java.lang.NullPointerException


view this post on Zulip Jefferson (Oct 17 2018 at 19:56):

Getting NullPointer Error is there something I need to install
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 . . .

view this post on Zulip Grahame Grieve (Oct 17 2018 at 19:59):

it's this that matters:

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)

view this post on Zulip Jefferson (Oct 17 2018 at 20:01):

is that in the ig.json file?

view this post on Zulip Grahame Grieve (Oct 17 2018 at 20:03):

yes

view this post on Zulip Jefferson (Oct 17 2018 at 20:05):

hmmm I just see canonicalBase
"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": "3.0.1"

view this post on Zulip Grahame Grieve (Oct 17 2018 at 20:08):

that's right. you need to add an npm-name.

view this post on Zulip Jefferson (Oct 17 2018 at 20:08):

Thanks

view this post on Zulip Jefferson (Oct 17 2018 at 20:13):

Looks like I need an license too?

view this post on Zulip Grahame Grieve (Oct 17 2018 at 20:13):

yes

view this post on Zulip Jefferson (Oct 17 2018 at 20:27):

Any idea how I would be able to get that?

view this post on Zulip Grahame Grieve (Oct 17 2018 at 21:05):

you choose the applicable license from the SPDX code list

view this post on Zulip Jefferson (Oct 18 2018 at 12:02):

Its like one error after another, I got the license number but now gettting java.lang.Error: Error sorting: find() loop count > 5

process type: DataElement (14.0423sec)
process type: StructureDefinition (14.0423sec)
process res: order-template (14.0424sec)
Exception in thread "main" java.lang.Error: Error sorting: find() loop count > 5 - check paths are valid
at org.hl7.fhir.r4.conformance.ProfileUtilities$ElementDefinitionComparer.find(ProfileUtilities.java:2953)
at org.hl7.fhir.r4.conformance.ProfileUtilities$ElementDefinitionComparer.compare(ProfileUtilities.java:2922)
at org.hl7.fhir.r4.conformance.ProfileUtilities$ElementDefinitionComparer.compare(ProfileUtilities.java:2902)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)

view this post on Zulip Jefferson (Oct 18 2018 at 12:35):

FHIR Implementation Guide Publisher (v3.6.0-a77f48d9, gen-code v3.6.0 / 2) @ Thursday, October 18, 2018 8:33:59 AM
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.0008sec)
Root directory: C:\Project\IGPublisher\Publish (00.0069sec)
Terminology Cache is at C:\Project\IGPublisher\Publish\txCache. 244 files in cache (00.0163sec)
Contacting Build Server... (00.0163sec)
... done (00.0912sec)
Load hl7.fhir.core-3.0.1 package from C:\Users\mcdevitt\.fhir\packages\hl7.fhir.core#3.0.1 (00.0941sec)
exception generating new IG
java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.ConfigFileConverter.convert(ConfigFileConverter.java:198)
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 (10.0585sec)
Connect to Terminology Server at http://tx.fhir.org (10.0587sec)
-tx cache miss: Connect to http://tx.fhir.org//r3
Initialization complete (11.0095sec)
Load Content (11.0096sec)
Publishing Content Failed: Unable to determine type for C:\Project\IGPublisher\Publish\resources\ig: null (11.0227sec)

view this post on Zulip Grahame Grieve (Oct 18 2018 at 12:38):

that's a sanity check in my code. I'll have to debug it. Is that possible?

view this post on Zulip Jefferson (Oct 18 2018 at 12:40):

Any idea what this means Publishing Content Failed: Unable to determine type for C:\Project\IGPublisher\Publish\resources\ig: null (10.0333sec)

view this post on Zulip Jefferson (Oct 18 2018 at 12:41):

Sure

view this post on Zulip Jefferson (Oct 18 2018 at 12:41):

would you need my files?

view this post on Zulip Jefferson (Oct 18 2018 at 13:02):

can I email you the files?

view this post on Zulip Sean Mahoney (Jan 10 2022 at 19:33):

IG Builds on my local but fails on https://build.fhir.org/ with this message. Any idea why?
found 2366 files (02:02.0042)
........................................
........................................
... 2366 html files, 0 pages invalid xhtml (0%) (02:15.0963)
... 300552 links, 322 broken links (0%) (02:15.0964)
Build final .zip (02:15.0964)
Final .zip built (02:18.0209)
Publishing Content Failed: null (02:18.0639)
(02:18.0639)
Use -? to get command line help (02:18.0639)
(02:18.0639)
Stack Dump (for debugging): (02:18.0639)
java.lang.NullPointerException
at org.hl7.fhir.igtools.renderers.VersionCheckRenderer.generate(VersionCheckRenderer.java:52)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:963)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:795)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8975)

view this post on Zulip Grahame Grieve (Jan 10 2022 at 19:36):

which IG is this?

view this post on Zulip Sean Mahoney (Jan 10 2022 at 21:17):

https://build.fhir.org/ig/HL7/fhir-directory-query/

view this post on Zulip Sean Mahoney (Jan 11 2022 at 16:42):

Grahame Grieve said:

which IG is this?

I am unable to build my IG for the connectathon. If anyone that has thoughts or is able to provided more detailed errors please share!

view this post on Zulip Grahame Grieve (Jan 11 2022 at 17:06):

you're missing something in your package-list.json file - a status, sequence or path value for the version you're building

view this post on Zulip Sean Mahoney (Jan 11 2022 at 17:30):

I am, and I fixed it and now it just build, minutes before the session! TY!


Last updated: Apr 12 2022 at 19:14 UTC