FHIR Chat · IG Build error · IG creation

Stream: IG creation

Topic: IG Build error


view this post on Zulip Arvid Thunholm (Jan 19 2021 at 15:40):

Hello,
I'm trying to build an IG for Swedish base patient using IG Builder. It works great except for when I´m trying to create an example Patient and explicity trying to set an extension in the second given name: * name[0].given[1].extension[nameQualifier].valueCode = #CL
When setting the extension on the first given name it works fine, but when refering the second given name I get a build error in sushi. Link to build log in zulip: https://chat.fhir.org/#narrow/stream/179297-committers.2Fnotification/topic/ig-build/near/223241367

Thankful for help!

view this post on Zulip Jose Costa Teixeira (Jan 19 2021 at 15:55):

Hi Arvid
your error is this
error SUSHI encountered the following unexpected error: Cannot convert undefined or null to object (00:05.0571)

view this post on Zulip Arvid Thunholm (Jan 19 2021 at 15:58):

:-) Thank you. What does it mean? It only appears when I put an item in other array positions than 0 for given name

view this post on Zulip Jose Costa Teixeira (Jan 19 2021 at 16:03):

this is a sushi matter (best in the shorthand stream) but this happens when your indices are wrong - like when you define things like
name[1].given[1] without having a name[0]

view this post on Zulip Jose Costa Teixeira (Jan 19 2021 at 16:04):

your offending line is * name[0].given[1].extension[nameQualifier].valueCode = #CL

view this post on Zulip Arvid Thunholm (Jan 19 2021 at 16:07):

Thanks, I´ll repost it in the shorthand stream.

view this post on Zulip Jose Costa Teixeira (Jan 19 2021 at 16:10):

please do, I'll reply there (seems a sushi bug)

view this post on Zulip Chris Moesel (Jan 19 2021 at 16:19):

As a SUSHI developer, I agree -- this seems like a bug. We'll look into it.

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 11:25):

All the IG builds are failing with the same issue. Not sure if this is reported. Does anyone know?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 13:27):

@Rob Hausam is everything ok with the terminology server?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:35):

@Mark Iantorno do you know what is wrong with the publisher?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:36):

or the server. My local build works ok but I still haven't updated to the last one. If I can do some tests locally, I'd be glad to

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:36):

What is the error

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:36):

Send me the message please, and I'll look into it

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:37):

https://chat.fhir.org/#narrow/stream/179297-committers.2Fnotification/topic/ig-build/near/223808472

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:37):

Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/Request$Builder
    at org.hl7.fhir.r5.utils.client.network.Client.issueGetResourceRequest(Client.java:89)
    at org.hl7.fhir.r5.utils.client.FHIRToolingClient.getCapabilitiesStatementQuick(FHIRToolingClient.java:155)
    at org.hl7.fhir.convertors.txClient.TerminologyClientR5.getCapabilitiesStatementQuick(TerminologyClientR5.java:99)
    at org.hl7.fhir.r5.context.SimpleWorkerContext.connectToTSServer(SimpleWorkerContext.java:298)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1873)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1458)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:726)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8417)

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:37):

seems all IGs are having this message

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:38):

Terminology server connected successfully, this has to do with a missing library dependency

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:38):

confirm - this is an issue with the latest publisher. tried locally - after upgrade, it fails

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:39):

the okhttp library is missing, I did just mark it as optional in the build, which is probably what is causing this to occur.

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:39):

want me to test anything?

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:39):

nono, I know what the issue is, one sec, let me try and put a quick fix in

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:40):

if I publish a snapshot, can you test with it ?

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:40):

@Jose Costa Teixeira

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:41):

I should be able to, yes. I'll go to whatever branch you point me to

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:42):

It's been a while so I have to see if my IDE can still handle it - if you send a jar it would save me 15 to 30 mins - so you decide

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:44):

I'm setting up the IDE already - let me have the branch or the code change and I will test

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:45):

the file is too big to attach to zulip

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:45):

I will have to publish a snapshot and you can download from there

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:47):

okay, its building right now

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:47):

once the pipeline spits out a SNAPSHOT, i'll point you at it

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:48):

IDE is ready

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:48):

just send me the code

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:48):

the line of code?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:48):

yes, for example

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:49):

show me where to put it

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

open the folder for the project

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

there will be a file called pom.xml

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

replace it with this file

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

pom.xml

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

then try and run

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:49):

sound good?

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:50):

and let me know if that solves the issue. I think it will

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:50):

trying

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:52):

nope, fails same place, i think

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:52):

Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/Request$Builder
        at org.hl7.fhir.r5.utils.client.network.Client.issueGetResourceRequest(Client.java:89)

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:52):

hrm

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:52):

okay

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:52):

one sec

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:52):

is there only one pom file?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:52):

(just to make sure I replaced the right thing)

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

there are three pom.xml files

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

but

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

if you just open the base folder

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

and replaced that one

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

you are fine

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:53):

indeed, sorry

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

the others require you to open other folders

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

don't replace those

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:53):

let me do it right now

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

nonon

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

don't replace those

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:53):

nothing will work

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:54):

give me a sec to look into this, I know what the issue is. It's a dependency issue that has come up because I marked a dependency as optional in the core library

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:54):

because of a conflict in HAPI

view this post on Zulip Mark Iantorno (Jan 24 2021 at 14:55):

can you send me the commands and files you need to run the command you are running?

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:56):

yes, seems to fix it

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:57):

sorry, I had to update my launch configuration after i changed the pom

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:57):

I replaced the main pom, and it works well now.

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 14:57):

My IG is https://github.com/IHE/pharm-vaccination

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:00):

sorry for the mistake. I think this fix is good (at least unbreaks the build)

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:00):

my configuration in vscode is

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:00):

        {
            "type": "java",
            "name": "Normal Publication",
            "request": "launch",
            "mainClass": "org.hl7.fhir.igtools.publisher.Publisher",
            "args": "-ig .",
            "cwd": "C:\\ImplementationGuides\\ihe-pharm-vaccination",
            "projectName": "org.hl7.fhir.publisher.core"
        },

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:01):

to be clear - your fix fixes it.

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:01):

my first test was not ok because i messed up

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:01):

now it is fine

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:02):

nice, I was wondering what was going on

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:02):

I'm pushing the fix now

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:22):

Latest release of the publisher (1.1.59) has this fix in it. Please let me know if there are any further issues.

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:22):

you can get it here: https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:24):

@Jose Costa Teixeira

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:34):

local build works fine after _updatePublisher, as it should

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:34):

CI build is fixed.

view this post on Zulip Jose Costa Teixeira (Jan 24 2021 at 15:34):

Thanks @Mark Iantorno

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:43):

So, just to give perspective on what is happening here, recently I updated a large section of the networking library to use a more modern toolset (OkHttp), as opposed to the legacy apache libraries that were being used. The intention is to migrate all networking code out of the r5 module, and into it's own module in the core project, which should resolve all these issues across the various projects that depend on core. Once that is done, we shoudln't see issues like this anymore.

view this post on Zulip Mark Iantorno (Jan 24 2021 at 15:44):

Thanks for your patience with this

view this post on Zulip Sarah Gaunt (Jan 25 2021 at 00:04):

So, not to be annoying or anything, but this is the issue that I reported a couple of days ago here: https://github.com/HL7/fhir-ig-publisher/issues/223. Which never did get looked at - so it still seems to me that the way to get things fixed is NOT to raise a Git issue but to report it in Zulip...

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 04:51):

Since this was breaking all the IG builds and nobody could work, at least from my side, it justified that we investigated quickly - zulip is the way to do that

view this post on Zulip Jean Duteau (Jan 25 2021 at 04:52):

sure, except that Sarah was explicitly told by Mark not to use Zulip but to use JIRA.

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 04:52):

This should have also been on issues.

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 04:52):

It was just urgent to fix it

view this post on Zulip Jean Duteau (Jan 25 2021 at 04:53):

Mark Iantorno: for issues like this, can you please open an issue in the github repository and tag me on it

Mark Iantorno: include the details and any information you have

Mark Iantorno: zulip is a multi channel dumpster fire where messages go to die

Sarah Gaunt: Is this the correct place @Mark Iantorno : https://github.com/HL7/fhir-ig-publisher/issues ?

view this post on Zulip Jean Duteau (Jan 25 2021 at 04:54):

i don't care one way or the other but we need to have proper guidance on how to get an issue raised and fixed.

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 04:54):

  1. Raise an issue

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 04:56):

  1. If you want, bring up discussion.
  2. If you can, help as much as possible to fix it.

view this post on Zulip Jean Duteau (Jan 25 2021 at 04:58):

you are missing the point, so I'll just stop now

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:00):

We all have issues that are not seen as urgently as they wanted.

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:00):

I don't think we did wrong in discussing in Zulip

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:01):

If anyone had told me 'create an issue and wait' I would have accepted it (and still I would have investigated on my side)

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:01):

What Mark recommended is correct. I don't read a 'dont discuss'

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:02):

And to Sarah's point: i saw that every build was broken. So I asked

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:03):

And I did open the IDE to respond to the emergency

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 05:46):

@Sarah Gaunt since this is the same issue, I commented on your issue saying t is fixed now. I hope bringing some more context in Zulip helped.
Thanks @Mark Iantorno for addressing the issue AND my chat in one go, on a sunday.

view this post on Zulip Lloyd McKenzie (Jan 25 2021 at 05:59):

I think the short answer is:

  • build is dead for everyone? - raise alarms everywhere you can
  • specific bug with a particular build? - raise a formal issue

Git allows tracking and triage. If everything has blown up, there's not really any triage to happen

view this post on Zulip Sarah Gaunt (Jan 25 2021 at 06:07):

It's not wrong to bring it up in Zulip obviously.

But when we were specifically just told a couple of days ago to NOT use Zulip as an issue tracker and so I specifically DIDN'T use Zulip and use Git instead (although I did also mention the Git issue in Zulip to raise awareness) and then the Zulip message with the same issue gets addressed, but the Git issue isn't addressed it does make one think that maybe, actually, Git is the place where issues go to die!

And like you said - if you want it looked at quickly (um, isn't that always the case :-) ) then raise it on Zulip!

And btw, I ALWAYS spend a LOT of time investigating an issue (mostly to make sure it's a really issue and not something I'm doing) before I report it.

view this post on Zulip Sarah Gaunt (Jan 25 2021 at 06:08):

And yes, agreed, thanks @Mark Iantorno for fixing it.

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 07:05):

You did right, @Sarah Gaunt. I don't think we should stop using Zulip for raising issues. I use zulip before creating an issue, or after the issue is created - I believe that is also correct

view this post on Zulip Jose Costa Teixeira (Jan 25 2021 at 07:07):

Sometimes we just miss Zulip chats, or the urgency is not clear..

view this post on Zulip Mark Iantorno (Jan 25 2021 at 12:59):

I agree with what Lloyed said. If there is a big issue that is rendering a given tool dead for everyone, raise and alarm, and I'll get on it. But for smaller issues that are just bugs or feature requests, it's best to open a github issue, and let me know.

view this post on Zulip Mark Iantorno (Jan 25 2021 at 13:05):

I'm covering for Grahame this week, as he is on vacation, so I'm taking on a lot of the bug fixes. Also, going forward, he wants me to take on more of that role, so feel free to contact me about issues you are facing. That being said, @Jean Duteau I asked Sarah to open an issue in GitHub _after_ she brought it up to me on Zulip. If you're having an issue getting your problems addressed, please let me know. I'm going to be trying to take a more formal approach to bugs with the core libraries, because there are too many messages on Zulip to keep track of (I think I have 541 unread since Saturday). So, when an issue, or multiple issues come up, I'm most likely going to request that people create GitHub tickets so I can prioritize them, and have all the information on a bug in one location (as opposed to scrolling through multiple zulips messages to piece together the details). If you have some suggestions on how to better address and categorize issues, please let me know.

view this post on Zulip Mark Iantorno (Jan 25 2021 at 13:11):

One nice thing about having an issue on Github, is that people can look at the issue list on Github before they bring an issue up on Zulip, and if the issue exists already, they can comment and add information to the existing issue. It makes things easier to track overall.

view this post on Zulip Mark Iantorno (Jan 25 2021 at 13:13):

...and also echo what Jose said, Sarah didn't do anything wrong here. I just wanted a ticket opened for tracking purposes. It turned out that the whole build was broken, but I didn't know until I did the investigation.


Last updated: Apr 12 2022 at 19:14 UTC