Stream: implementers
Topic: CDA-core-2.0 build error
Gabriel Kleinoscheg (Mar 25 2022 at 13:31):
When freshly cloning https://github.com/HL7/cda-core-2.0 and then using IG publisher version 1.1.106 to create it I get the following error:
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Exception generating xslt page /tmp/fsh-ing-grounds/CDA-core-2.0/./temp/pages/_includes/POCD_RM000040.gif for _includes/POCD_RM000040.gif in /tmp/fsh-ing-grounds/CDA-core-2.0/./temp/pages: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. (05:21.0693)
Exception generating page /tmp/fsh-ing-grounds/CDA-core-2.0/./temp/pages/ncludes/artifacts.xml for ncludes/artifacts.xml in /tmp/fsh-ing-grounds/CDA-core-2.0/./temp/pages: /tmp/fsh-ing-grounds/CDA-core-2.0/./temp/pages/ncludes/artifacts.xml (No such file or directory) (05:21.0732)
Generating Summary Outputs (05:21.0733)
Publishing Content Failed: Template based HTML file index.html is missing source file index.md (06:42.0385)
(06:42.0385)
Use -? to get command line help (06:42.0386)
(06:42.0387)
Stack Dump (for debugging): (06:42.0388)
java.lang.Exception: Template based HTML file index.html is missing source file index.md
at org.hl7.fhir.igtools.publisher.Publisher.applyPageTemplate(Publisher.java:7358)
at org.hl7.fhir.igtools.publisher.Publisher.applyPageTemplate(Publisher.java:7372)
at org.hl7.fhir.igtools.publisher.Publisher.generateSummaryOutputs(Publisher.java:6885)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:5858)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:1018)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:856)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:10005)
Any ideas? @Grahame Grieve
John Moehrke (Mar 25 2022 at 13:32):
first idea... update to the latest IG publisher and sushi.
David Pyke (Mar 25 2022 at 13:33):
Latest publisher, anyway. CDA-core is not a FSH IG
John Moehrke (Mar 25 2022 at 13:38):
I added that because I saw in the error /tmp/fsh-ing-grounds/CDA-core-2.0/
John Moehrke (Mar 25 2022 at 13:38):
but, yes... the latest publisher built it without an NPE...
It has issues -- Errors: 471, Warnings: 294, Info: 0, Broken Links = 924 (02:24.0404)
Gabriel Kleinoscheg (Mar 28 2022 at 06:18):
Something might be different on my machine. I just cloned again and used the latest publisher but I still get the same error from above.
Sorry for the confusion about the directory name fsh-ing-grounds
- I have several IGs in there, most of them are sushi based. An it's named after a docker image https://hub.docker.com/r/elgagmbh/fsh-ing-grounds
Gabriel Kleinoscheg (Mar 31 2022 at 06:09):
@John Moehrke could you send me the log of your build process?
I still have got problems creating this IG. Currently, I don't know what I should be looking for.
John Moehrke (Mar 31 2022 at 12:33):
you say you used the latest publisher, did you also use the latest sushi?
John Moehrke (Mar 31 2022 at 12:35):
I simply ran publish.bat
John Moehrke (Mar 31 2022 at 12:36):
there are many errors
ClinicalDocumentArchitectureV201 : Validation Results
=========================================
err = 471, warn = 294, info = 0
IG Publisher Version: 1.1.113
Generated Fri Mar 25 08:36:48 CDT 2022. FHIR version 4.0.1 for hl7.fhir.cda#2.1.0 (canonical = http://hl7.org/fhir/cda)
Build Errors : 925 / 14 / 0
...
John Moehrke (Mar 31 2022 at 12:38):
a full log would be very long
John Moehrke (Mar 31 2022 at 12:39):
starts like
C:\Users\johnm\Git\CDA-core-2.0>dir
Volume in drive C is Windows
Volume Serial Number is AE46-0D81
Directory of C:\Users\johnm\Git\CDA-core-2.0
03/25/2022 08:34 AM <DIR> .
03/25/2022 08:34 AM <DIR> ..
03/25/2022 08:33 AM 38 .gitattributes
03/25/2022 08:33 AM 203 .gitignore
03/25/2022 08:33 AM 52 clean.bat
03/25/2022 08:33 AM <DIR> examples
03/25/2022 08:33 AM 288 ig.ini
03/25/2022 08:33 AM <DIR> input
03/25/2022 08:35 AM <DIR> input-cache
03/25/2022 08:33 AM 128,268,086 org.hl7.fhir.publisher.jar
03/25/2022 08:36 AM <DIR> output
03/25/2022 08:33 AM 63 publish.bat
03/25/2022 08:33 AM 1,511 README.md
03/25/2022 08:33 AM <DIR> schema
03/25/2022 08:34 AM <DIR> temp
03/25/2022 08:35 AM <DIR> template
03/25/2022 08:33 AM 310 _updatePublisher.bat
8 File(s) 128,270,551 bytes
9 Dir(s) 244,962,856,960 bytes free
C:\Users\johnm\Git\CDA-core-2.0>publish
C:\Users\johnm\Git\CDA-core-2.0>java -Xms2g -Xmx2g -jar org.hl7.fhir.publisher.jar -ig ig.ini
FHIR IG Publisher Version 1.1.113 (Git# 36472c045b0c). Built 2022-03-18T05:50:01.31Z (13 days old)
Detected Java version: 16 from C:\Program Files\jdk-16 on Windows 10/amd64 (64bit). 2048MB available
dir = C:\Users\johnm\Git\CDA-core-2.0, path = C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\jdk-16\bin;C:\Program Files\Git\cmd;C:\Program Files\apache-ant-1.10.9\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\FAHClient;C:\Program Files\Pandoc\;C:\Program Files\TortoiseGit\bin;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:\Ruby27-x64\bin;C:\Users\johnm\AppData\Local\Microsoft\WindowsApps;C:\Users\johnm\AppData\Roaming\npm;C:\Program Files (x86)\FAHClient
Parameters: -ig ig.ini
Start Clock @ Thursday, March 31, 2022 at 7:37:23 AM Central Daylight Time (2022-03-31T07:37:23-05:00)
API keys loaded from C:\Users\johnm\fhir-api-keys.ini (00:00.0009)
Package Cache: C:\Users\johnm\.fhir\packages (00:00.0014)
Load Template from hl7.cda.template (00:00.0879)
2022-03-31 07:37:25.014 [main] INFO o.h.f.u.n.FilesystemPackageCacheManager [FilesystemPackageCacheManager.java:232] Failed to determine latest version of package hl7.cda.template from server: http://packages.fhir.org
2022-03-31 07:37:25.848 [main] INFO o.h.f.u.npm.BasePackageCacheManager [BasePackageCacheManager.java:80] Failed to resolve package hl7.cda.template#0.2.2 from server: http://packages.fhir.org (Invalid HTTP response 404 from http://packages.fhir.org/hl7.cda.template/0.2.2 (Not Found) (content in C:\Users\johnm\AppData\Local\Temp\fhir-http-3.log))
Installing hl7.cda.template#0.2.2 to the package cache
...
Gabriel Kleinoscheg (Apr 01 2022 at 13:30):
I think I figured it out ... I started the IG publisher with the following command
java -Xms2g -Xmx2g -jar org.hl7.fhir.publisher.jar -ig ./ig.ini
Note the ./
before the ig.ini
- I don't know why, but obviously it makes a difference. Once I removed ./
the creation of the IG worked.
Thank you anyway!
Grahame Grieve (Apr 01 2022 at 20:14):
you might want to report this as an issue at https://github.com/HL7/fhir-ig-publisher - that should work
Gabriel Kleinoscheg (Apr 04 2022 at 08:32):
Done - https://github.com/HL7/fhir-ig-publisher/issues/421
Last updated: Apr 12 2022 at 19:14 UTC