Stream: committers
Topic: Error in local build
Jose Costa Teixeira (Aug 09 2018 at 21:12):
Hi. I am suddenly getting an issue in my build - perhaps someone can advise?
Jose Costa Teixeira (Aug 09 2018 at 21:12):
[java] This was a Full Build 0.298 62sec 675MB [java] java.io.IOException: Error parsing JSON source: Unexpected char '<' in json stream at Line 1 (path=[null]) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser$Lexer.error(JsonTrackingParser.java:170) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser$Lexer.next(JsonTrackingParser.java:292) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser$Lexer.start(JsonTrackingParser.java:195) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser$Lexer.<init>(JsonTrackingParser.java:106) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser.parse(JsonTrackingParser.java:323) [java] at org.hl7.fhir.r4.utils.formats.JsonTrackingParser.parse(JsonTrackingParser.java:319) [java] at org.hl7.fhir.r4.formats.JsonParserBase.loadJson(JsonParserBase.java:167) [java] at org.hl7.fhir.r4.formats.JsonParserBase.parse(JsonParserBase.java:91) [java] at org.hl7.fhir.r4.context.BaseWorkerContext.loadFromCache(BaseWorkerContext.java:393) [java] at org.hl7.fhir.r4.context.BaseWorkerContext.expandVS(BaseWorkerContext.java:356) [java] at org.hl7.fhir.definitions.generators.xsd.XSDGenerator.generateEnum(XSDGenerator.java:142) [java] at org.hl7.fhir.definitions.generators.xsd.XSDGenerator.generate(XSDGenerator.java:126) [java] at org.hl7.fhir.definitions.generators.xsd.SchemaGenerator.generate(SchemaGenerator.java:86) [java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:2151) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:647) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:482) [java] FHIR build failure @ Thu, Aug 9, 2018 23:10+0200 1.127 63sec 675MB [java] Error: null [java] java.lang.NullPointerException [java] at org.hl7.fhir.definitions.generators.xsd.XSDGenerator.generateEnum(XSDGenerator.java:143) [java] at org.hl7.fhir.definitions.generators.xsd.XSDGenerator.generate(XSDGenerator.java:126) [java] at org.hl7.fhir.definitions.generators.xsd.SchemaGenerator.generate(SchemaGenerator.java:86) [java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:2151) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:647) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:482) [java] Exception in thread "main" java.lang.NullPointerException [java] at java.io.Writer.write(Writer.java:157) [java] at org.hl7.fhir.utilities.TextFile.stringToFile(TextFile.java:84) [java] at org.hl7.fhir.utilities.TextFile.stringToFile(TextFile.java:102) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:719) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:482)
Grahame Grieve (Aug 09 2018 at 21:23):
looks like you have an xml file in vscache...
Paul Knapp (Oct 12 2018 at 13:37):
Hi: getting a build error after a fresh pull from master with no changes on my local clone:
[java] ...resource CodeSystem 1.31 226sec 902MB
[java] Exception in thread "main" java.lang.Error: Case mismatch of file C:\FHIR_git1\fhir\publish\codesystem-medicationknowledge-status.html: found codesystem-medicationKnowledge-status.html
[java] at org.hl7.fhir.utilities.CSFile.<init>(CSFile.java:66)
[java] at org.hl7.fhir.utilities.TextFile.stringToFile(TextFile.java:101)
[java] at org.hl7.fhir.tools.publisher.Publisher.generateCodeSystemPart2(Publisher.java:6217)
[java] at org.hl7.fhir.tools.publisher.Publisher.generateCodeSystemsPart2(Publisher.java:6081)
[java] at org.hl7.fhir.tools.publisher.Publisher.loadValueSets2(Publisher.java:1289)
[java] at org.hl7.fhir.tools.publisher.Publisher.produceSpec(Publisher.java:2394)
[java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:2241)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:629)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)
BUILD FAILED
Grahame Grieve (Oct 12 2018 at 18:55):
you need to delete all the files in C:\FHIR_git1\fhir\publish and then build again
Paul Knapp (Oct 12 2018 at 19:50):
Thanks, did, ran to implementation guides then:
[java] Errors: 0 Warnings: 689 Hints: 949
[java]
[java] ===Resources with FMM forced to 0===
[java] FHIR Infrastructure:
[java] CapabilityStatement(5), Group(1), ImplementationGuide(1), SearchParameter(3), StructureMap(2)
[java] 3.898 2551sec 4096MB
[java] ERROR @ org.hl7.fhir.igtools.tests.AllGuidesTests: testIg10(org.hl7.fhir.igtools.tests.AllGuidesTests): Process exited with an error: 1 (Exit value: 1) (src = Publisher)
[java] ERROR @ org.hl7.fhir.igtools.tests.AllGuidesTests: testIg14(org.hl7.fhir.igtools.tests.AllGuidesTests): Process exited with an error: 1 (Exit value: 1) (src = Publisher)
[java] ERROR @ org.hl7.fhir.igtools.tests.AllGuidesTests: testIg30(org.hl7.fhir.igtools.tests.AllGuidesTests): Process exited with an error: 1 (Exit value: 1) (src = Publisher)
[java] ERROR @ org.hl7.fhir.igtools.tests.AllGuidesTests: testIg40(org.hl7.fhir.igtools.tests.AllGuidesTests): Process exited with an error: 1 (Exit value: 1) (src = Publisher)
[java] This was a Full Build 1.12 2552sec 4096MB
[java] FHIR build failure @ Fri, Oct 12, 2018 22:42+0300 1.438 2553sec 4096MB
[java] Error: Errors executing build. Details logged.
[java] java.lang.Exception: Errors executing build. Details logged.
[java] at org.hl7.fhir.tools.publisher.Publisher.checkAllOk(Publisher.java:1859)
[java] at org.hl7.fhir.tools.publisher.Publisher.runJUnitTestsEnd(Publisher.java:5884)
[java] at org.hl7.fhir.tools.publisher.Publisher.validationProcess(Publisher.java:5852)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:634)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)
BUILD FAILED
C:\FHIR_git1\fhir\build.xml:30: The following error occurred while executing this line:
C:\FHIR_git1\fhir\tools\java\org.hl7.fhir.tools.core\build.xml:156: Java returned: 1
Grahame Grieve (Oct 12 2018 at 19:54):
.. you'll not be keeping up with committers/announce then
Jamie Jones (Oct 12 2018 at 21:57):
Getting a new error with current publisher when attempting to build the CG IG:
[java] Load hl7.fhir.core-current package from /var/root/.fhir/packages/hl7.fhir.core#current (01.0083sec)
[java] exception generating new IG
[java] org.hl7.fhir.exceptions.FHIRFormatError: Unknown Content package @ START_TAG seen ... \n \n \n \n \n \n \n \n <package id="general">... @25:27
[java] at org.hl7.fhir.r4.formats.XmlParserBase.unknownContent(XmlParserBase.java:279)
[java] at org.hl7.fhir.r4.formats.XmlParser.parseImplementationGuideImplementationGuideDefinitionComponent(XmlParser.java:11895)
[java] at org.hl7.fhir.r4.formats.XmlParser.parseImplementationGuideContent(XmlParser.java:11828)
[java] at org.hl7.fhir.r4.formats.XmlParser.parseImplementationGuide(XmlParser.java:11781)
[java] at org.hl7.fhir.r4.formats.XmlParser.parseResource(XmlParser.java:24255)
[java] at org.hl7.fhir.r4.formats.XmlParserBase.parse(XmlParserBase.java:105)
[java] at org.hl7.fhir.r4.formats.XmlParserBase.parse(XmlParserBase.java:89)
[java] at org.hl7.fhir.igtools.publisher.ConfigFileConverter.parse(ConfigFileConverter.java:275)
[java] at org.hl7.fhir.igtools.publisher.ConfigFileConverter.convert(ConfigFileConverter.java:94)
[java] at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1096)
[java] at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:945)
[java] at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:524)
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4926)
Any ideas on the "FHIRFormatError: Unknown Content package @ START_TAG seen ... \n \n \n \n \n \n \n \n <package id="general">... @25:27"
Thanks!
Grahame Grieve (Oct 12 2018 at 22:24):
that's an R4 IG? you'll have to update the IG - look at http://build.fhir.org/implementationguide.html - you'll have to change the name of 'package' elements to grouping or groupingId
Lloyd McKenzie (Oct 12 2018 at 22:53):
The IGPublisher is now using a newer version of ImplementationGuide. Some stuff has been renamed. So the ImplementationGuide instance will need to be changed - and a bunch of other stuff in the framework will need to change too. I'll work on it over the weekend
Eric Haas (Oct 13 2018 at 04:02):
I got that same error that Paul did... I thought that git would eliminate these kind of things? do we need to delete the publish folder each time?
Lloyd McKenzie (Oct 13 2018 at 14:12):
This issue was caused by a re-name that just changed character case. It's a Windows issue of not realizing the case changed, not a Git issue. SVN would have had the same problem.
Eric Haas (Oct 13 2018 at 17:08):
Its also an OSX issue too
Grahame Grieve (Oct 13 2018 at 19:20):
the build insists that case names are correct. The build also leaves existing files in place while building. The downside of that is that if someone changes the name of a file by just case, you'll get this error. It's not a git thing - would have happened under svn too.
Jose Costa Teixeira (Sep 19 2020 at 07:00):
I'm trying to add a new draft resource but I get an error
[java] java.lang.NullPointerException
[java] at org.hl7.fhir.tools.publisher.Publisher.generateSCMaps(Publisher.java:735)
[java] at org.hl7.fhir.tools.publisher.Publisher.generateSCMaps(Publisher.java:728)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:621)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)
Jose Costa Teixeira (Sep 19 2020 at 07:00):
Can anyone tell me what to look for?
Grahame Grieve (Sep 19 2020 at 21:36):
you have a status element with a missing or unresolved value set binding
Jose Costa Teixeira (Sep 20 2020 at 08:57):
changed that, still broken.
Jose Costa Teixeira (Sep 20 2020 at 21:26):
any advice for this? I restarted the file and committed the branch but I got stuck
Grahame Grieve (Sep 20 2020 at 22:37):
still the same stack?
Jose Costa Teixeira (Sep 21 2020 at 07:23):
[java] Error: null
[java] java.lang.NullPointerException
[java] at org.hl7.fhir.tools.publisher.Publisher.generateSCMaps(Publisher.java:735)
[java] at org.hl7.fhir.tools.publisher.Publisher.generateSCMaps(Publisher.java:728)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:621)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)
Jose Costa Teixeira (Sep 21 2020 at 08:25):
it's here : https://github.com/HL7/fhir/tree/costateixeira-supply
Grahame Grieve (Sep 22 2020 at 06:34):
well, you added it wrongly to status-codes.xml. I fixed that but there's other problems.
Jose Costa Teixeira (Sep 22 2020 at 11:36):
yes, that was silly. Found it, thanks
Last updated: Apr 12 2022 at 19:14 UTC