FHIR Chat · NullPointerException · committers/notification

Stream: committers/notification

Topic: NullPointerException


view this post on Zulip David deRoode (May 12 2020 at 16:09):

@Grahame Grieve Is a more useful error message possible here?

onLoad:
Root directory: /scratch/ig-build-temp-0VLWHK/repo (00:03.0090)
Core Package hl7.fhir.r4.core#4.0.1
Installing hl7.fhir.r4.core#4.0.1 to the package cache
Fetching:....................................................................................................
Installing: .................................................................................................... done.
Terminology Cache is at /scratch/ig-build-temp-0VLWHK/repo/input-cache/txcache. Trimming now (00:13.0943)
Connect to Terminology Server at http://tx.fhir.org (00:13.0945)
Installing hl7.fhir.pubpack#0.0.4 to the package cache
Fetching:.........
Installing: ......... done.
Load Package hl7.fhir.pubpack#0.0.4
Installing hl7.fhir.xver-extensions#0.0.4 to the package cache
Fetching:
Installing: done.
Load Package hl7.fhir.xver-extensions#0.0.4
Dependency 'hl7.fhir.us.core' has no id, so can't be referred to in markdown in the IG (00:15.0951)
Installing hl7.fhir.us.core#3.1.0 to the package cache
Fetching:.....
Installing: ..... done.
Dependency 'hl7.fhir.us.ccda' has no id, so can't be referred to in markdown in the IG (00:17.0478)
Installing hl7.fhir.us.ccda#current to the package cache
Fetching:.
Installing: . done.
Dependency 'hl7.fhir.us.davinci-hrex' has no id, so can't be referred to in markdown in the IG (00:19.0309)
Installing hl7.fhir.us.davinci-hrex#0.1.0 to the package cache
Fetching:
Installing: done.
Dependency 'hl7.fhir.us.odh' has no id, so can't be referred to in markdown in the IG (00:19.0474)
Installing hl7.fhir.us.odh#1.0.0 to the package cache
Fetching:..
Installing: .. done.
Initialization complete (00:19.0999)
Load Content (00:20.0000)
Processing Conformance Resources (00:21.0732)
Terminology server: Check for supported code systems for urn:iso:std:iso:3166 (00:23.0925)
Installing hl7.fhir.us.core#3.1.0 to the package cache
Fetching:.....
Installing: ..... done.
Generating Narratives (01:23.0618)
Validating Resources (01:23.0619)
Unhandled Exception: java.lang.NullPointerException (01:25.0678)
Publishing Content Failed: null (01:25.0679)
(01:25.0679)
Use -? to get command line help (01:25.0679)
(01:25.0679)
Stack Dump (for debugging): (01:25.0679)
java.lang.NullPointerException
at org.hl7.fhir.validation.instance.InstanceValidator.validateBundle(InstanceValidator.java:3605)
at org.hl7.fhir.validation.instance.InstanceValidator.checkSpecials(InstanceValidator.java:3489)
at org.hl7.fhir.validation.instance.InstanceValidator.startInner(InstanceValidator.java:3481)
at org.hl7.fhir.validation.instance.InstanceValidator.start(InstanceValidator.java:3384)
at org.hl7.fhir.validation.instance.InstanceValidator.validateResource(InstanceValidator.java:4727)
at org.hl7.fhir.validation.instance.InstanceValidator.validate(InstanceValidator.java:709)
at org.hl7.fhir.validation.instance.InstanceValidator.validate(InstanceValidator.java:685)
at org.hl7.fhir.igtools.publisher.Publisher.validate(Publisher.java:4546)
at org.hl7.fhir.igtools.publisher.Publisher.validate(Publisher.java:4417)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:831)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:688)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7310)

view this post on Zulip Jose Costa Teixeira (May 12 2020 at 18:24):

@David deRoode best to post on IG creation stream (messages here may be easily missed).

view this post on Zulip Jose Costa Teixeira (May 12 2020 at 18:24):

I think your Bundles are not correct

view this post on Zulip Jose Costa Teixeira (May 12 2020 at 18:25):

" org.hl7.fhir.validation.instance.InstanceValidator.validateBundle(InstanceValidator.java:3605)"

view this post on Zulip Jose Costa Teixeira (May 12 2020 at 18:29):

    <entry>
        <Composition xmlns="http://hl7.org/fhir">`

should be

    <entry>
       <resource>
        <Composition xmlns="http://hl7.org/fhir">`

view this post on Zulip Jose Costa Teixeira (May 12 2020 at 18:29):

and so on

view this post on Zulip Grahame Grieve (May 12 2020 at 23:12):

sorry - bug in the code. Won't NPE after the next release (no good checking if something != null after you've tried to read a property from it)


Last updated: Apr 12 2022 at 19:14 UTC