FHIR Chat · error with new template version · IG creation

Stream: IG creation

Topic: error with new template version


view this post on Zulip Rob Hausam (Feb 26 2020 at 21:10):

Moving discussion here from https://chat.fhir.org/#narrow/stream/179294-committers.2Fannounce/topic/New.20HL7.20template. This is what I'm seeing in the auto-build (without making any changes) for order-catalog after this update to the new template version:

INFO:root:about to clone!
DEBUG:root:running: git clone --recursive https://github.com/HL7/fhir-order-catalog --branch master repo
DEBUG:root:Time to deadline 3479.997221 seconds
Cloning into 'repo'...
DEBUG:root:running: wget -q https://github.com/FHIR/latest-ig-publisher/raw/master/org.hl7.fhir.publisher.jar -O publisher.jar
DEBUG:root:Time to deadline 3479.33098 seconds
DEBUG:root:running: java -Xms14000m -Xmx14000m -jar ../publisher.jar -ig ig.json -auto-ig-build -target https://build.fhir.org/ig/HL7/fhir-order-catalog/ -out /scratch/ig-build-temp-I88S7Q/repo
DEBUG:root:Time to deadline 3475.956612 seconds
FHIR IG Publisher Version 1.0.67-SNAPSHOT (Git# 30b184df3160). Built 2020-02-25T12:07:21.909+11:00 (43 hours old)
Detected Java version: 12.0.1 from /usr/java/openjdk-12 on amd64 (64bit). 13533MB available
Parameters: -ig ig.json -auto-ig-build -target https://build.fhir.org/ig/HL7/fhir-order-catalog/ -out /scratch/ig-build-temp-I88S7Q/repo
dir = /scratch/ig-build-temp-I88S7Q/repo, path = /usr/local/rvm/bin:/usr/local/rvm/rubies/ruby-2.5.1/bin:/usr/java/openjdk-12/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Run time = Wednesday, February 26, 2020 at 8:51:19 PM Coordinated Universal Time (2020-02-26T20:51:19Z)
Package Cache: var/lib/.fhir/packages                                            (00:00.0020)
Load Template from hl7.fhir.template                                             (00:00.0736)
Installing hl7.fhir.template#current to the package cache
  Fetching:
  Installing:  done.
 Load Template from hl7.base.template#current                                    (00:01.0388)
Installing hl7.base.template#current to the package cache
  Fetching:
  Installing:  done.
  Load Template from fhir.base.template#current                                  (00:01.0408)
Installing fhir.base.template#current to the package cache
  Fetching:.
  Installing: . done.
Publishing Content Failed: If a script is provided, then targets must be defined (00:01.0471)
                                                                                 (00:01.0471)
Use -? to get command line help                                                  (00:01.0471)
                                                                                 (00:01.0471)
Stack Dump (for debugging):                                                      (00:01.0471)
org.hl7.fhir.exceptions.FHIRException: If a script is provided, then targets must be defined
    at org.hl7.fhir.igtools.templates.Template.<init>(Template.java:109)
    at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:86)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1263)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1205)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:660)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6933)

It's not immediately clear at all what "targets must be defined". I think the new version needs to fail more gracefully, either generating warning or error messages rather than crashing outright on an existing IG that was previously building.

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:18):

@Rob Hausam Are you getting that on the CI build or locally?

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:18):

It means that we've got a problem with how overrides to the template config file are happening, the question is how you're seeing this when I'm not...

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:19):

both - what I posted is from CI (auto-build)

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:19):

not sure - as I said, all I've done so far is try to build it

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:20):

We're getting different behavior from a local template than a committed/packaged template, which is somewhat problematic...

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:23):

Are you sure you're getting this when running locally with the current publisher? I'm running SDC locally and it's fine...

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:24):

I'm not sure what the different behavior is that you're looking at - but agree it's a problem.

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:26):

My SDC runs fine locally with the package template, but fails on the CI build. Can you confirm that you're running 1.67-SNAPSHOT locally and that it's failing with the same issue running locally? And can you also indicate what OS you're on?

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:27):

yes, it's 1.0.67 and fails with the same error locally - on macOS

view this post on Zulip Lloyd McKenzie (Feb 26 2020 at 22:29):

Ok, I'll work w/ @Grahame Grieve on the why. In the meantime, you can lock to the 0.1.0 release

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:33):

I tried locking to template = fhir.base.template#0.1.0
but so far that also didn't seem to work for me locally - maybe that indicates something else going on?
but the IG auto-built successfully after the latest changes that Francois made two days ago (that build was on 1.0.66), and it hasn't been updated since then

view this post on Zulip Rob Hausam (Feb 26 2020 at 22:39):

I guess I could try it again locally with 1.0.66 and see if that works

view this post on Zulip Rob Hausam (Feb 26 2020 at 23:03):

1.0.66 didn't make any difference
and the template locking doesn't seem to be effective (or I'm doing it wrong) - with it set to 0.1.0 I'm still getting Load Template from fhir.base.template#current

view this post on Zulip Rick Geimer (Feb 27 2020 at 06:54):

@Lloyd McKenzie I'm getting this same error:

Publishing Content Failed: If a script is provided, then targets must be defined (00:02.0862)
(00:02.0862)
Use -? to get command line help (00:02.0862)
(00:02.0863)
Stack Dump (for debugging): (00:02.0863)
org.hl7.fhir.exceptions.FHIRException: If a script is provided, then targets must be defined
at org.hl7.fhir.igtools.templates.Template.(Template.java:109)
at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:86)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1263)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1205)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:660)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6933)

view this post on Zulip Rick Geimer (Feb 27 2020 at 07:31):

That was running on our Trifolia on FHIR server (Linux I believe)
When I download and run locally on Windows 10 I get a different error:

onGenerate.jira.check:
Publishing Content Failed: Warning: Could not find file C:\PATH-REMOVED\CCDAonFHIRR4\${file.jira} to copy. (03:49.0660)
(03:49.0664)
Use -? to get command line help (03:49.0665)
(03:49.0667)
Stack Dump (for debugging): (03:49.0669)
C:\PATH-REMOVED\CCDAonFHIRR4\template\scripts\ant-hl7.xml:50: Warning: Could not find file C:\PATH-REMOVED\CCDAonFHIRR4\${file.jira} to copy.
at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:643)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:463)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

view this post on Zulip Rick Geimer (Feb 27 2020 at 07:32):

(The PATH-REMOVED stuff was not in the actual error message, I just replaced the actual path with that for the post)

view this post on Zulip Rick Geimer (Feb 27 2020 at 07:51):

FYI, when I set template to the the following in ig.ini I got past that error:
template = hl7.fhir.template#0.1.0

view this post on Zulip Rick Geimer (Feb 27 2020 at 07:58):

After that fix it crashed with an out of memory error, but that was addressed by bumping up the memory for the JVM and it eventually completed.

view this post on Zulip Grahame Grieve (Feb 27 2020 at 12:13):

this is my problem to investigate but I'm out on the road and left my mac behind, and I need my mac to investigate

view this post on Zulip Grahame Grieve (Feb 27 2020 at 12:13):

I'll be home in 12 hours

view this post on Zulip Grahame Grieve (Feb 27 2020 at 12:13):

or you can fix to the older version of the template

view this post on Zulip Rob Hausam (Feb 27 2020 at 14:41):

fixed to 0.1.0 for now

view this post on Zulip Michael Faughn (Feb 27 2020 at 20:30):

I get the same error if I try to use any template other than fhir.base.template.

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 20:51):

If you point to 0.1.0 of the FHIR template, that should work

view this post on Zulip Mark Kramer (Feb 27 2020 at 23:00):

0.1.0 -- That's not working for me. I'm getting

onGenerate.jira.setup:
     [xslt] Processing C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\onGenerate-ig-updated.xml to C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\properties.txt
     [xslt] Loading stylesheet C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\scripts\onGenerate.genProperties.xslt
When using the HL7 template, the IG id must start with "hl7." - found fhir.us.mcode
     [xslt] C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\scripts\onGenerate.genProperties.xslt:24: Fatal Error! Processing terminated by xsl:message at line 24 in onGenerate.genProperties.xslt
     [xslt] Failed to process C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\onGenerate-ig-updated.xml
Publishing Content Failed: Fatal error during transformation using C:\Users\mkramer\Documents\GitHub\fsh-mcode\build\template\scripts\onGenerate.genProperties.xslt: Processing terminated by xsl:message at line 24 in onGenerate.genProperties.xslt; SystemID: file:/C:/Users/mkramer/Documents/GitHub/fsh-mcode/build/template/scripts/onGenerate.genProperties.xslt; Line#: 24; Column#: -1 (01:52.0450)
                                                                                 (01:52.0452)
This error was created by the template                                           (01:52.0453)
Press any key to continue . . .

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 23:11):

I just pushed a version of SDC that locked to 0.1.0 and it worked both locally and on the CI build.
[IG]
ig = input/sdc.xml
template = hl7.fhir.template#0.1.0

view this post on Zulip Mark Kramer (Feb 27 2020 at 23:13):

It's looking into my cache and not finding the package, then crashing. How do I download the packages ala carte?

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 23:22):

You can't... If it doesn't find the package locally, it should be grabbing it from the server - the same as the CI build does. @Grahame Grieve ?

view this post on Zulip David Hay (Feb 27 2020 at 23:26):

You can't add a package directly to the local cache?

view this post on Zulip Lloyd McKenzie (Feb 27 2020 at 23:27):

If you hack hard enough, anything is probably possible, but I'm not aware of an easy/standard way to do it

view this post on Zulip David Hay (Feb 27 2020 at 23:34):

OK. I must admit I thought you just had to add the package to ~/.fhir/packages (though I hadn't got around to test it yet)...

view this post on Zulip Grahame Grieve (Feb 28 2020 at 00:21):

When using the HL7 template, the IG id must start with "hl7." - found fhir.us.mcode

This is not a problem finding a package, it's telling you that something is set up wrong in your IG

view this post on Zulip Lloyd McKenzie (Feb 28 2020 at 01:03):

That message is saying that he's running the 'current' template, not 0.1.0 - because that message is raised by the current HL7 template

view this post on Zulip Grahame Grieve (Feb 28 2020 at 01:05):

well, it won't fall back to the current version cause it can't find the specified version... so I'm not sure why this is a package access problem

view this post on Zulip Lloyd McKenzie (Feb 28 2020 at 01:07):

It is falling back to the current version. If that's happening because it's not finding the specified version, then there might be an issue in your ig.ini @Mark Kramer

view this post on Zulip Mark Kramer (Feb 28 2020 at 02:31):

It built but failing locally still

view this post on Zulip Grahame Grieve (Feb 28 2020 at 02:32):

what exactly is failing?

view this post on Zulip Rick Geimer (Feb 28 2020 at 04:22):

@Mark Kramer I think your issue is with the packageId in the ImplementationGuide resource. It should look like this:

<packageId value="hl7.fhir.us.yourig"/>

view this post on Zulip Rick Geimer (Feb 28 2020 at 04:24):

With the latest templates the package id must be in the following format:
hl7.family.realm.id

view this post on Zulip Lloyd McKenzie (Feb 28 2020 at 04:27):

Yes, but even if he does that, it'll blow up on the CI build right now. He wants to force to the 0.1.0 version, which means there must be something wrong with how the version is getting declared

view this post on Zulip Catherine Hosage Norman (Feb 28 2020 at 23:11):

I am getting an out of memory error for Java. Has anyone see this?

C:\PQCMC_IG>java -jar ".\org.hl7.fhir.publisher.jar" -ig "C:\PQCMC_IG\ig.ini" -tx n/a
FHIR IG Publisher Version 1.0.68-SNAPSHOT (Git# bf9523ab3379). Built 2020-02-28T15:36:27.947+11:00 (18 hours old)
Detected Java version: 1.8.0_241 from C:\Program Files (x86)\Java\jre1.8.0_241 on x86 (32bit). 247MB available
Parameters: -ig C:\PQCMC_IG\ig.ini -tx n/a
dir = C:\PQCMC_IG, path = C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\UCRT\;C:\Program Files\Intel\UCRT\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Ruby26-x64\bin;C:\Users\Catherine\AppData\Local\Microsoft\WindowsApps
Run time = Friday, February 28, 2020 6:06:06 PM EST (2020-02-28T18:06:06-05:00)
Package Cache: C:\Users\Catherine\.fhir\packages (00:00.0008)
Load Template from hl7.fhir.template#0.1.0 (00:00.0979)
Load Template from hl7.base.template#0.1.0 (00:01.0030)
Load Template from fhir.base.template#0.1.0 (00:01.0042)

onLoad.findSpreadsheets:

onLoad.updateIg:
[xslt] Processing C:\PQCMC_IG\template\onLoad-ig-working.xml to C:\PQCMC_IG\template\onLoad-ig-updated.xml
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onLoad.xslt

onLoad.extend:

onLoad:
Root directory: C:\PQCMC_IG (00:05.0569)
Core Package hl7.fhir.r4.core#4.0.1
Terminology Cache is at C:\PQCMC_IG\input-cache\txcache. 5 files in cache (00:19.0115)
WARNING: Running without terminology server - terminology content will likely not publish correctly (00:19.0125)
Load Package hl7.fhir.pubpack#0.0.3
Load Package hl7.fhir.xver-extensions#0.0.1
Initialization complete (00:20.0075)
Load Content (00:20.0077)
Processing Conformance Resources (00:21.0051)
Terminology server: Check for supported code systems for http://unstats.un.org/unsd/methods/m49/m49.htm (00:21.0587)
==============!! Running without terminology server !! ============== (00:21.0589)
===================================================================== (00:21.0590)
Generating Narratives (00:23.0847)
Validating Resources (00:23.0848)
Generating Outputs in C:\PQCMC_IG\output (00:24.0011)

onGenerate.checkVersions:
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-working.xml to C:\PQCMC_IG\template\versions.txt
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onGenerate.getVersions.xslt

onGenerate.r5-schemas:
[get] Getting: http://build.fhir.org/fhir-single.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R5\fhir-single.xsd
[get] Not modified - so not downloaded
[get] Getting: http://build.fhir.org/fhir-xhtml.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R5\fhir-xhtml.xsd
[get] Not modified - so not downloaded
[get] Getting: http://build.fhir.org/xml.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R5\xml.xsd
[get] Not modified - so not downloaded
[get] Getting: http://build.fhir.org/xmldsig-core-schema.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R5\xmldsig-core-schema.xsd
[get] Not modified - so not downloaded

onGenerate.r4-schemas:
[get] Getting: http://hl7.org/fhir/R4/fhir-single.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R4\fhir-single.xsd
[get] Not modified - so not downloaded
[get] Getting: http://hl7.org/fhir/R4/fhir-xhtml.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R4\fhir-xhtml.xsd
[get] Not modified - so not downloaded
[get] Getting: http://hl7.org/fhir/R4/xml.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R4\xml.xsd
[get] Not modified - so not downloaded
[get] Getting: http://hl7.org/fhir/R4/xmldsig-core-schema.xsd
[get] To: C:\PQCMC_IG\input-cache\schemas\R4\xmldsig-core-schema.xsd
[get] Not modified - so not downloaded

onGenerate.r3-schemas:

onGenerate.r2b-schemas:

onGenerate.r2-schemas:

onGenerate.schemas:

onGenerate.setup:

onGenerate.infoFile:
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-working.xml to C:\PQCMC_IG\temp\pages\_data\info.json
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onGenerate.genJson.xslt

onGenerate.processIncludes:
[copy] Copying 7 files to C:\PQCMC_IG\temp\pages\_includes

onGenerate.processIg:
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-working.xml to C:\PQCMC_IG\template\onGenerate-ig-working.1.xml
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onGenerate.group.xslt
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-working.1.xml to C:\PQCMC_IG\template\onGenerate-ig-updated.xml
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onGenerate.final.xslt

onGenerate.artifactList:
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-updated.xml to C:\PQCMC_IG\temp\pages\_includes\artifacts.xml
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\createArtifactSummary.xslt

onGenerate.igQa:
[xslt] Processing C:\PQCMC_IG\template\onGenerate-ig-updated.xml to C:\PQCMC_IG\template\ongenerate-validation-igqa.json
[xslt] Loading stylesheet C:\PQCMC_IG\template\scripts\onGenerate.qa.xslt

onGenerate.extend:

onGenerate:
Unable to find version-specific path for reference - defaulting to version-independent reference: http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
Unable to find version-specific path for reference - defaulting to version-independent reference: http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
Unable to find version-specific path for reference - defaulting to version-independent reference: http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26
Generating Summary Outputs (00:41.0155)
Sending Usage Stats to Server (00:53.0536)
Jekyll: Source: C:/PQCMC_IG/temp/pages (00:56.0610)
Jekyll: Generating... (00:56.0612)
Jekyll: done in 5.327 seconds. (01:01.0937)
Installing hl7.fhir.us.pq-cmc#dev to the package cache
Fetching:
Installing: done.
Checking Output HTML (01:03.0760)
found 742 files (01:03.0868)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at org.hl7.fhir.utilities.TextFile.streamToString(TextFile.java:176)
at org.hl7.fhir.utilities.TextFile.fileToString(TextFile.java:162)
at org.hl7.fhir.igtools.publisher.HTLMLInspector.loadFile(HTLMLInspector.java:326)
at org.hl7.fhir.igtools.publisher.HTLMLInspector.check(HTLMLInspector.java:222)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4371)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:816)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:666)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6933)

view this post on Zulip Lloyd McKenzie (Feb 29 2020 at 00:27):

I have, but not with a small IG like PQ-CMC. How much memory do you have?

view this post on Zulip Catherine Hosage Norman (Feb 29 2020 at 00:52):

16.0 GB 15.9 usable

view this post on Zulip Catherine Hosage Norman (Feb 29 2020 at 00:53):

It is giving me everything but the final QA.

view this post on Zulip Lloyd McKenzie (Feb 29 2020 at 01:48):

That should be more than enough. Do you have a bunch of other stuff chewing up memory?

view this post on Zulip Catherine Hosage Norman (Feb 29 2020 at 02:48):

I closed a bunch of apps and watch the memory in task manager. It never gets near the max, but I still get the memory error. I am working on examples. Will load it back up when they are done. Maybe you can look at it on Monday. I was getting this error just on the pull from GitHub.

view this post on Zulip Lloyd McKenzie (Feb 29 2020 at 03:32):

You got out of memory just doing a pull request? Sounds like something is wonky with your machine. Maybe try a reboot?

view this post on Zulip Grahame Grieve (Feb 29 2020 at 10:59):

It doesn't matter how much memory your machine has. What matters is how much is available to Java - that's way less. That's why one of the first thing that the IG publisher logs is how much memory it has. From the log:

view this post on Zulip Grahame Grieve (Feb 29 2020 at 10:59):

247MB available

view this post on Zulip Grahame Grieve (Feb 29 2020 at 11:00):

https://www.google.com/search?q=make+more+memory+available+to+java

view this post on Zulip Rick Geimer (Mar 12 2020 at 20:20):

Still getting the following error with the current template (all is fine with 0.1.0). @Grahame Grieve I think you said above you were going to look into it. Any ideas yet?

onGenerate.jira.check:
Publishing Content Failed: Warning: Could not find file C:\PATH-REMOVED\${file.jira} to copy. (01:16.0585)
(01:16.0586)
Use -? to get command line help (01:16.0586)
(01:16.0587)
Stack Dump (for debugging): (01:16.0587)
C:\PATH-REMOVED\template\scripts\ant-hl7.xml:50: Warning: Could not find file C:\PATH-REMOVED\${file.jira} to copy.

view this post on Zulip Grahame Grieve (Mar 12 2020 at 20:50):

I don't know anything about this. how to reproduce?

view this post on Zulip Rick Geimer (Mar 12 2020 at 21:19):

I get that error running the latest IG publisher locally with the following ig.ini content:

[IG]
ig = input/vrdr.xml
template = hl7.fhir.template#current
usage-stats-opt-out = false

If I change to use template 0.1.0 as follows I do not get that "${file.jira)" error and publishing completes:

[IG]
ig = input/vrdr.xml
template = hl7.fhir.template#0.1.0
usage-stats-opt-out = false

So seems like the current template is not populating that "file.jira" variable under certain circumstances.

I believe @Sarah Gaunt has encountered this issue as well.

Lastly, "PATH-REMOVED" above is not in the actual error message, I just removed the actual path that was reported on my file system.

view this post on Zulip Grahame Grieve (Mar 12 2020 at 21:33):

well, I can't reproduce with just the ini file... can I get the content of vrdr somewhere?

view this post on Zulip Rick Geimer (Mar 12 2020 at 21:50):

@Grahame Grieve I figured it out. The IG in question was missing package-list.json. If you remove that file from any IG you should get that very un-helpful and misleading error message.

view this post on Zulip Grahame Grieve (Mar 12 2020 at 21:51):

@Lloyd McKenzie perhaps you could make a more useful error please

view this post on Zulip Lloyd McKenzie (Mar 13 2020 at 18:48):

Now you shouldn't get an error message at all


Last updated: Apr 12 2022 at 19:14 UTC