FHIR Chat · NPE with latest ig publisher · IG creation

Stream: IG creation

Topic: NPE with latest ig publisher


view this post on Zulip Jose Costa Teixeira (Aug 04 2019 at 16:56):

Hi. I am now getting a NPE since yesterday or so. Previous IG Publisher works. Can anyone advise where should I be looking at?
[java] java.lang.NullPointerException
[java] at org.hl7.fhir.r5.model.BooleanType.booleanValue(BooleanType.java:95)
[java] at org.hl7.fhir.igtools.publisher.Publisher.isExample(Publisher.java:5426)
[java] at org.hl7.fhir.igtools.publisher.Publisher.saveNativeResourceOutputs(Publisher.java:5393)
[java] at org.hl7.fhir.igtools.publisher.Publisher.generateNativeOutputs(Publisher.java:5037)
[java] at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:3725)
[java] at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:717)
[java] at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:595)
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6286)
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6296)

view this post on Zulip Rob Hausam (Aug 04 2019 at 17:14):

Same here, @Jose Costa Teixeira. I've just worked out a fix that allows it to build and I'm intending to create a pull request for that, but I was trying to take a little further look at the source of the issue before I did. But since you're having the same issue it's less likely something unique to my profiles, etc., so I think I'll go ahead and create the PR now.

view this post on Zulip Jose Costa Teixeira (Aug 04 2019 at 17:15):

Thanks Rob

view this post on Zulip Rob Hausam (Aug 04 2019 at 17:39):

PR#24 on fhir-ig-publisher

view this post on Zulip Rob Hausam (Aug 04 2019 at 18:40):

This issue is causing the LIVD IG to fail in the CI build, which also means that Lynn can't build it for the Sept. ballot until this is fixed. @Grahame Grieve

view this post on Zulip Lloyd McKenzie (Aug 04 2019 at 20:07):

It looks like the issue is actually fixed already with the committed code (so no need for your patch @Rob Hausam). However, we need to do a release that contains that most recent stuff. I'm unsure whether @Grahame Grieve was holding off on that for another reason and I can't get into the staging environment vm right now to create a release anyhow :(

view this post on Zulip Lynn Laakso (Aug 04 2019 at 20:11):

Yes it builds, though the ballot site header says it is the CI build. emailing you Rob

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:13):

what committed code, @Lloyd McKenzie ?
when I did the pull request I was on the tip revision (at that time)
I'm happy for the patch to not be needed

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:17):

the last livd build that I see in committers/notification failed, with that error

view this post on Zulip Lloyd McKenzie (Aug 04 2019 at 20:19):

I think the jar is not at the tip of the revision

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:22):

the latest released IG Pub v0.9.50-SNAPSHOT is what has the issue
and I don't see any commits following that
and that's what I patched from the repo tip

view this post on Zulip Lloyd McKenzie (Aug 04 2019 at 20:25):

Dunno. When I run using the jar, SDC fails. When I run using Eclipse, it publishes fine.

view this post on Zulip Lloyd McKenzie (Aug 04 2019 at 20:25):

And Eclipse is updated to the most current committed code

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:32):

OK. I'm not sure what Eclipse is doing (I'm not using it). But the error with isExample() was created in the last commit and exists in the jar and when I do a maven build from the repo (until I patched it). But, interestingly, Jose and I have the error on our IGs that are using your framework, but I don't have it with IPS which is using Eric's. There seems maybe to be something different (somehow) in the way the example instances are being handled (but I didn't see anything when I poked into the configuration files).

view this post on Zulip Grahame Grieve (Aug 04 2019 at 20:50):

I just committed a fix now - sorry about that one.

view this post on Zulip Grahame Grieve (Aug 04 2019 at 20:50):

I'm going to do a new release but that is this?

view this post on Zulip Grahame Grieve (Aug 04 2019 at 20:50):

we need to do a release that contains that most recent stuff. I'm unsure whether @Grahame Grieve was holding off on that for another reason

view this post on Zulip Grahame Grieve (Aug 04 2019 at 20:50):

there's only my one fix committed since the last release

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:51):

yes - I hadn't seen anything after the release

view this post on Zulip Rob Hausam (Aug 04 2019 at 20:54):

until the two new commits now

view this post on Zulip Lloyd McKenzie (Aug 04 2019 at 20:55):

My environment was working and I thought I had the current release, but perhaps not. Release-away...

view this post on Zulip Rob Hausam (Aug 04 2019 at 21:03):

just verified that the latest commit fixes the issue (for livd)


Last updated: Apr 12 2022 at 19:14 UTC