Stream: hapi
Topic: HAPI Build problem
Michael Lawley (Nov 15 2016 at 02:15):
In the hapi-fhir-cli/hapi-fhir-cli-app module, there are explicit calls to System.exit from ca.uhn.fhir.cli.App which are causing our Jenkins process to fail when running ValidateTest -- this is despite the code System.setProperty("noexit", "true"); in the @Before which, I assume, is intended to stop the call to System.exit from taking effect?
I've not see this kind of thing before and googling has not helped me find anything about a "noexit" property - any ideas?
James Agnew (Nov 15 2016 at 03:21):
Hmm, do you see any errors in the logs before it exits? If that CLI operation fails for any reason (i.e. it isn't able to validate for some reason) the "noexit" is ignored.
Michael Lawley (Nov 15 2016 at 06:58):
Aha! Here's the error message:
java.io.FileNotFoundException: /OSM/HOME-CDC/law223/.jenkins/workspace/HAPI%20FHIR/hapi-fhir-cli/hapi-fhir-cli-app/target/test-classes/patient-uslab-example1.xml (No such file or directory)
Looks like the space in my path is being %-encoded at some point and not subsequently decoded.
James Agnew (Nov 15 2016 at 12:49):
Oh weird... Is moving it to a directory without space an option? I'm on the road this week, probably won't have a chance to investigate this for a bit
Michael Lawley (Nov 15 2016 at 22:30):
Yes, we're doing that for the moment, but it looks like a latent URI handling bug is floating around somewhere
Last updated: Apr 12 2022 at 19:14 UTC