FHIR Chat · latest build error with ver 3.4.0 · IG creation

Stream: IG creation

Topic: latest build error with ver 3.4.0


view this post on Zulip Eric Haas (May 23 2018 at 16:54):

getting this message with latest build when "version": "3.4.0" what am I missing? ( "version": "3.0.1" is fine )

=== run most recent version of the igpublisher ===
=================================================================
FHIR Implementation Guide Publisher (v3.4.0-13789, gen-code v3.4.0-13757) @ Wednesday, May 23, 2018 9:49:42 AM
Detected Java version: 1.8.0_65 from /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre on x86_64 (64bit). 1820MB available
Package Cache: /Users/ehaas/.fhir/packages
Load Configuration from /Users/ehaas/Documents/FHIR/VhDir/ig.json                (00.0028sec)
Root directory: /Users/ehaas/Documents/FHIR/VhDir                                (00.0258sec)
Terminology Cache is at /Users/ehaas/Documents/FHIR/VhDir/txCache. 84 files in cache (00.0290sec)
Contacting Build Server...                                                       (00.0291sec)
 ... done                                                                        (01.0845sec)
Fetch hl7.fhir.core-3.4.0 package from http:/build.fhir.org/package.tgz          (01.0846sec)
Publishing Content Failed: protocol = http host = null                           (01.0848sec)
                                                                                 (01.0848sec)
Use -? to get command line help                                                  (01.0848sec)
                                                                                 (01.0848sec)
Stack Dump (for debugging):                                                      (01.0849sec)
java.lang.IllegalArgumentException: protocol = http host = null
    at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:176)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1099)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at org.hl7.fhir.igtools.publisher.Publisher.fetchFromSource(Publisher.java:1265)
    at org.hl7.fhir.igtools.publisher.Publisher.loadCorePackage(Publisher.java:1243)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:969)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:457)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4487)
Exception in thread "main" java.lang.NullPointerException
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4497)
Erics-Air-2:VhDir ehaas$

view this post on Zulip Grahame Grieve (May 23 2018 at 18:18):

Eric, I don't know what's going on here. I've tried to think it through, and I can't. it works for me, and I can't follow the logic in the logs. Can you download the latest FHIR Toolkit from http://www.healthintersections.com.au/FhirServer , and install + run it, and then open the package manager, and send me the debug report?

view this post on Zulip Eric Haas (May 23 2018 at 18:39):

OK - does the FHIR Toolkit work on Mac ios? and fyi the .fhir directory looks like this on my system:

.
└── packages
├── healthedatainc.ig-test3-dev
├── healthedatainc.test3-dev
├── hl7.fhir.core-3.0.1
├── hl7.fhir.us.core-1.0.1
├── hl7.fhir.us.core-1.1.0
├── hl7.fhir.us.core-current
└── packages.ini

view this post on Zulip Grahame Grieve (May 23 2018 at 18:40):

nah the toolkit doesn't yet work on OSX. I am having a big battle with the osx, windows, vmware fusion etc to get everything to actually work

view this post on Zulip Grahame Grieve (May 23 2018 at 18:41):

you do have a use core current? (which you should) so I just don't understand the logs...

view this post on Zulip Eric Haas (May 23 2018 at 18:44):

does it work for you on OSX as well?

view this post on Zulip Eric Haas (May 23 2018 at 18:45):

should I manually load the packages into the .fhir directory?

view this post on Zulip Eric Haas (May 23 2018 at 18:46):

since it does not have hl7.fhir.core.3.4.0...

view this post on Zulip Grahame Grieve (May 23 2018 at 18:47):

it should all be automatic.

view this post on Zulip Grahame Grieve (May 23 2018 at 18:47):

hang on - you're next on the list after fixing the main build

view this post on Zulip Jose Costa Teixeira (May 23 2018 at 18:58):

having same issue here

view this post on Zulip Jose Costa Teixeira (May 23 2018 at 18:58):

i have the toolkit open so if there is anything i could try and do...

view this post on Zulip Jose Costa Teixeira (May 23 2018 at 19:51):

[java] Load hl7.fhir.core-3.4.0 package from C:\Users\Jose\.fhir\packages\hl7.fhir.core-3.4.0 (01.0420sec)
[java] Publishing Content Failed: org.hl7.fhir.r4.model.CodeSystem cannot be cast to org.hl7.fhir.r4.model.Bundle

view this post on Zulip Jose Costa Teixeira (May 23 2018 at 19:51):

i get this now

view this post on Zulip Grahame Grieve (May 24 2018 at 05:50):

I have no idea but a stack might help

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 05:50):

[java] java.lang.ClassCastException: org.hl7.fhir.r4.model.CodeSystem cannot be cast to org.hl7.fhir.r4.model.Bundle
[java] at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromFileJson(SimpleWorkerContext.java:254)
[java] at org.hl7.fhir.r4.context.SimpleWorkerContext.loadDefinitionItem(SimpleWorkerContext.java:199)
[java] at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromPackage(SimpleWorkerContext.java:274)
[java] at org.hl7.fhir.r4.context.SimpleWorkerContext.fromPackage(SimpleWorkerContext.java:150)
[java] at org.hl7.fhir.igtools.publisher.SpecificationPackage.fromPackage(SpecificationPackage.java:51)
[java] at org.hl7.fhir.igtools.publisher.Publisher.loadPack(Publisher.java:1278)
[java] at org.hl7.fhir.igtools.publisher.Publisher.loadCorePackage(Publisher.java:1250)
[java] at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:969)
[java] at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:457)
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4487)
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4497)

view this post on Zulip Grahame Grieve (May 24 2018 at 06:19):

I don't know. I can't recreate this - what's you ig.json file say?

view this post on Zulip Grahame Grieve (May 24 2018 at 06:45):

hah no just figured out how to get there

view this post on Zulip Grahame Grieve (May 24 2018 at 12:57):

I'll commit a fix in a few hours. @Eric Haas - fixing the IG publisher is waiting on Josh to investigate why build.fhir.org isn't publishing the package files

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:34):

@Grahame Grieve It works now. thanks

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:36):

i just noted an exception, not sure what to make of it, but for the time being i am just interested in local build, not publication:
[java] Installing null-dev to the package cache
[java] Fetching:|Publishing Content Failed: null (00:01:08.0317sec)
[java] (00:01:08.0317sec)
[java] Use -? to get command line help (00:01:08.0317sec)
[java] (00:01:08.0317sec)
[java] Stack Dump (for debugging): (00:01:08.0317sec)
[java] java.lang.NullPointerException
[java] at org.hl7.fhir.utilities.cache.PackageCacheManager.addPackageToCache(PackageCacheManager.java:269)
[java] at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:2580)
[java] at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:509)
[java] at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:460)
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4493)
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4503)
[java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:36):

but i have all i need to continue working.

view this post on Zulip Grahame Grieve (May 24 2018 at 18:37):

looks like you need to define an npm-name property in your ig.json file

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:38):

ah packaging. possibly. i will check that.

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:46):

yep, works. Thanks

view this post on Zulip Grahame Grieve (May 24 2018 at 18:46):

I thought you'd get an error earlier in the process...

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:47):

had a few. I just looked at build successful

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:49):

[java] java.lang.Exception: A license is required in the configuration file, and it must be a SPDX license identifier (see https://spdx.org/licenses/), or "not-open-source"

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:49):

I have one of these for each of my conformance resources

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 18:50):

i am using Lloyd's SDC2 framework with ant. I will see what happens in GUI mode

view this post on Zulip Grahame Grieve (May 24 2018 at 18:51):

you need it in the json file (for now)

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 19:12):

yep. I updated the xslt that generates the ig.json and it works well. thanks

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 20:26):

just noted one thing: when in GUI mode, the gui locks the generated files. As a consequence, the files cannot be deleted while the IG Publisher is running.

view this post on Zulip Jose Costa Teixeira (May 24 2018 at 20:27):

@Grahame Grieve this may be because i have some errors still in the rendernig. Anyway is not critical since i only have to restart the ig publisher, but thought you might want to know.


Last updated: Apr 12 2022 at 19:14 UTC