FHIR Chat · Weird IG publisher error · IG creation

Stream: IG creation

Topic: Weird IG publisher error


view this post on Zulip Tim Blake (Apr 21 2020 at 01:38):

Any idea what might be causing the following IG publisher error? I have clear caches, restarted Windows, but still occuring...

FHIR IG Publisher Version 1.0.80-SNAPSHOT (Git# 065dc71d1c31). Built 2020-04-12T10:13:34.284+10:00 (9 days old)
Detected Java version: 1.8.0_221 from C:\Program Files\Java\jre1.8.0_221 on amd64 (64bit). 1820MB available
Parameters: -ig ig.json
dir = C:\Users\timbl\OneDrive\Documents\nsw-health-fhir-itoc, path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\bin;c:\Program Files\MongoDB\Server\3.6\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Ruby25-x64\bin;C:\Users\timbl\AppData\Local\Microsoft\WindowsApps;C:\Users\timbl\AppData\Roaming\npm;C:\Users\timbl\AppData\Local\Yarn\bin;C:\Users\timbl\AppData\Local\GitHubDesktop\bin;C:\Users\timbl\AppData\Local\Microsoft\WindowsApps;C:\Program Files\apache-maven-3.6.0\bin;
Run time = Tuesday, 21 April 2020 11:35:08 AM AEST (2020-04-21T11:35:08+10:00)
Package Cache: C:\Users\timbl\.fhir\packages (00:00.0030)
Load Configuration from C:\Users\timbl\OneDrive\Documents\nsw-health-fhir-itoc\ig.json (00:00.0075)
Root directory: C:\Users\timbl\OneDrive\Documents\nsw-health-fhir-itoc (00:00.0111)
Terminology Cache is at C:\Users\timbl\OneDrive\Documents\nsw-health-fhir-itoc\txCache. 0 files in cache (00:00.0140)
Core Package hl7.fhir.r4.core#4.0.1
exception generating new IG (00:42.0850)
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.JsonParser.parse(JsonParser.java:65)
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at org.hl7.fhir.utilities.cache.PackageClient.fetchJsonArray(PackageClient.java:172)
at org.hl7.fhir.utilities.cache.PackageClient.search(PackageClient.java:143)
at org.hl7.fhir.utilities.cache.PackageCacheManager.getPackageId(PackageCacheManager.java:284)
at org.hl7.fhir.utilities.cache.PackageCacheManager.getPackageId(PackageCacheManager.java:548)
at org.hl7.fhir.igtools.publisher.ConfigFileConverter.convert(ConfigFileConverter.java:207)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1897)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1227)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:668)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7103)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1568)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1409)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:542)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
at com.google.gson.JsonParser.parse(JsonParser.java:60)
... 10 more
Load Terminology Cache from C:\Users\timbl\OneDrive\Documents\nsw-health-fhir-itoc\txCache (00:42.0876)
Connect to Terminology Server at http://tx.fhir.org (00:42.0888)
Load Package hl7.fhir.pubpack#0.0.3
Load Package hl7.fhir.xver-extensions#0.0.1
Publishing Content Failed: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $ (00:46.0754)
(00:46.0757)
Use -? to get command line help (00:46.0758)
(00:46.0759)
Stack Dump (for debugging): (00:46.0760)
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.JsonParser.parse(JsonParser.java:65)
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at org.hl7.fhir.utilities.cache.PackageClient.fetchJsonArray(PackageClient.java:172)
at org.hl7.fhir.utilities.cache.PackageClient.search(PackageClient.java:143)
at org.hl7.fhir.utilities.cache.PackageCacheManager.getPackageId(PackageCacheManager.java:284)
at org.hl7.fhir.utilities.cache.PackageCacheManager.getPackageId(PackageCacheManager.java:548)
at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2533)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1964)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1227)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:668)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7103)
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 8 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1568)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1409)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:542)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
at com.google.gson.JsonParser.parse(JsonParser.java:60)
... 10 more

view this post on Zulip Grahame Grieve (Apr 21 2020 at 02:00):

you need to update to the latest IG publisher

view this post on Zulip Tim Blake (Apr 21 2020 at 02:06):

I'm on 1.0.80. That seems to be the latest. This was building previously with this IG publisher but not today...

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:06):

can I reproduce this?

view this post on Zulip Tim Blake (Apr 21 2020 at 03:07):

https://github.com/timblake78/nsw-health-itoc

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:21):

how is that 5gb in size?

view this post on Zulip Tim Blake (Apr 21 2020 at 03:22):

let me fix that...

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:22):

let me know, I only have 80GB/month

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:27):

doesn't matter. I think I just found the problem.

view this post on Zulip Tim Blake (Apr 21 2020 at 03:28):

Should be smaller now...

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:29):

ok a fix is on the way - probably 2 hours

view this post on Zulip Tim Blake (Apr 21 2020 at 03:30):

Thanks. So there was an IG publisher issue?

view this post on Zulip Grahame Grieve (Apr 21 2020 at 03:30):

yes, though the change was on the package server.

view this post on Zulip Tim Blake (Apr 21 2020 at 03:31):

Okay, thanks


Last updated: Apr 12 2022 at 19:14 UTC