FHIR Chat · build failing · committers

Stream: committers

Topic: build failing


view this post on Zulip Melva Peters (Oct 05 2016 at 15:39):

I'm having issues with my local build - failing with the following compile errors. Anyone have any ideas? I've tried deleting the java folders from Tools and Implementations which has worked in the past for some of the errors, but not this time.

build-project:
[echo] org.hl7.fhir.dstu3: /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/build.xml
[javac] Compiling 168 source files to /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/bin
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:14: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.Coding;
[javac] ^
[javac] symbol: class Coding
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:15: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.ElementDefinition;
[javac] ^
[javac] symbol: class ElementDefinition
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:16: error: package org.hl7.fhir.dstu3.model.ElementDefinition does not exist
[javac] import org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBindingComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:17: error: package org.hl7.fhir.dstu3.model.ElementDefinition does not exist
[javac] import org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:18: error: package org.hl7.fhir.dstu3.model.ElementDefinition does not exist
[javac] import org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionMappingComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:19: error: package org.hl7.fhir.dstu3.model.ElementDefinition does not exist
[javac] import org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:20: error: package org.hl7.fhir.dstu3.model.Enumerations does not exist
[javac] import org.hl7.fhir.dstu3.model.Enumerations.BindingStrength;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:21: error: package org.hl7.fhir.dstu3.model.Enumerations does not exist
[javac] import org.hl7.fhir.dstu3.model.Enumerations.ConformanceResourceStatus;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:23: error: package org.hl7.fhir.dstu3.model.OperationOutcome does not exist
[javac] import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:24: error: package org.hl7.fhir.dstu3.model.OperationOutcome does not exist
[javac] import org.hl7.fhir.dstu3.model.OperationOutcome.IssueType;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:26: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.Reference;
[javac] ^
[javac] symbol: class Reference
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:28: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.StructureDefinition;
[javac] ^
[javac] symbol: class StructureDefinition
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:29: error: package org.hl7.fhir.dstu3.model.StructureDefinition does not exist
[javac] import org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:32: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.ValueSet;
[javac] ^
[javac] symbol: class ValueSet
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:33: error: package org.hl7.fhir.dstu3.model.ValueSet does not exist
[javac] import org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:34: error: package org.hl7.fhir.dstu3.model.ValueSet does not exist
[javac] import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/conformance/ProfileComparer.java:35: error: package org.hl7.fhir.dstu3.model.ValueSet does not exist
[javac] import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/terminologies/ValueSetExpander.java:6: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.ExpansionProfile;
[javac] ^
[javac] symbol: class ExpansionProfile
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/terminologies/ValueSetExpander.java:7: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.ValueSet;
[javac] ^
[javac] symbol: class ValueSet
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/validation/ValidationMessage.java:36: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.OperationOutcome;
[javac] ^
[javac] symbol: class OperationOutcome
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/validation/ValidationMessage.java:37: error: package org.hl7.fhir.dstu3.model.OperationOutcome does not exist
[javac] import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/validation/ValidationMessage.java:38: error: package org.hl7.fhir.dstu3.model.OperationOutcome does not exist
[javac] import org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/context/IWorkerContext.java:8: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.BaseConformance;
[javac] ^
[javac] symbol: class BaseConformance
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/context/IWorkerContext.java:9: error: cannot find symbol
[javac] import org.hl7.fhir.dstu3.model.CodeSystem;
[javac] ^
[javac] symbol: class CodeSystem
[javac] location: package org.hl7.fhir.dstu3.model
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/context/IWorkerContext.java:10: error: package org.hl7.fhir.dstu3.model.CodeSystem does not exist
[javac] import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent;
[javac] ^
[javac] /Users/mpeters/Documents/FHIR/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/context/IWorkerCont

view this post on Zulip Melva Peters (Oct 05 2016 at 15:43):

Sorry, there's more to the error: too long to paste here.

view this post on Zulip Jason Walonoski (Oct 11 2016 at 15:38):

I've noticed a few build errors on travis, and on my local machine, due to Java heap space... I ended up increasing the JVM memory to 2 GB using the -Xmx2G switch. Seemed to fix the issue locally, but this seems to happen every once in a while on travis.

view this post on Zulip Grahame Grieve (Oct 11 2016 at 19:15):

hmm, I thought I was reducing memory utilitization

view this post on Zulip Melva Peters (Oct 18 2016 at 14:04):

I updated to the latest version but am now getting a build error. Any ideas?Publisher:
[java] Publish FHIR in folder /Users/mpeters/Documents/FHIRBuild/build @ Tue, Oct 18, 2016 06:58-0700 0.012 0sec 21MB
[java] Build local copy 0.006 0sec 21MB
[java] Checking Source for /Users/mpeters/Documents/FHIRBuild/build 3.378 3sec 186MB
[java] Version 1.7.0-10019
[java] Full Build 0.521 3sec 235MB
[java] Load Loinc 0.089 4sec 257MB
[java] Loading 0.311 4sec 321MB
[java] Exception in thread "main" java.lang.NoSuchMethodError: org.hl7.fhir.utilities.xhtml.XhtmlNode.setName(Ljava/lang/String;)V
[java] at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseNode(XhtmlParser.java:303)
[java] at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseHtmlNode(XhtmlParser.java:295)
[java] at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseHtmlNode(XhtmlParser.java:291)
[java] at org.hl7.fhir.definitions.parsers.SourceParser.loadMappingSpaces(SourceParser.java:578)
[java] at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:173)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:550)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:428)

BUILD FAILED
/Users/mpeters/Documents/FHIRBuild/build/build.xml:30: The following error occurred while executing this line:
/Users/mpeters/Documents/FHIRBuild/build/tools/java/org.hl7.fhir.tools.core/build.xml:134: Java returned: 1

view this post on Zulip Lloyd McKenzie (Oct 18 2016 at 14:21):

Did you run a clean?

view this post on Zulip Rob Hausam (Dec 13 2018 at 13:51):

With everything refreshed and clean, the build is failing for me now with "org.hl7.fhir.exceptions.FHIRException: Unknown FHIRVersion code '3.6.0'".

view this post on Zulip Lloyd McKenzie (Dec 13 2018 at 15:35):

The version specified in your IG should now be 4.0.0

view this post on Zulip Rob Hausam (Dec 13 2018 at 19:36):

@Lloyd McKenzie I'm getting the error when building FHIR core:

     [java] WARNING @ vitalsigns.Observation.status: Binding http://hl7.org/fhir/ValueSet/observation-status|4.0.0 could not be located (src = ProfileValidator)
     [java] WARNING: Unable to create warnings file - one or more profiles-* files unavailable or invalid
     [java] To determine the cause of the build failure, look in the log prior to the warning and information messages immediately above
     [java]   ERROR: Unable to process warnings: An empty sequence is not allowed as the value of variable $groups
     [java] This was a Full Build                                                      5.933 299sec  576MB
     [java] Error on line 14
     [java]   XTTE0570: An empty sequence is not allowed as the value of variable $groups
     [java]   in variable groups
     [java] ; SystemID: ; Line#: 14; Column#: -1
     [java] net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the value of variable $groups
     [java]     at net.sf.saxon.expr.Expression.typeError(Expression.java:1163)
     [java]     at net.sf.saxon.expr.CardinalityChecker.iterate(CardinalityChecker.java:226)
     [java]     at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:170)
     [java]     at net.sf.saxon.expr.parser.ExpressionTool.evaluate(ExpressionTool.java:340)
     [java]     at net.sf.saxon.expr.instruct.GlobalVariable.getSelectValue(GlobalVariable.java:563)
     [java]     at net.sf.saxon.expr.instruct.GlobalVariable.actuallyEvaluate(GlobalVariable.java:615)
     [java]     at net.sf.saxon.expr.instruct.GlobalVariable.evaluateVariable(GlobalVariable.java:587)
     [java]     at net.sf.saxon.expr.VariableReference.evaluateVariable(VariableReference.java:505)
     [java]     at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:453)
     [java]     at net.sf.saxon.expr.SlashExpression.iterate(SlashExpression.java:813)
     [java]     at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:145)
     [java]     at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:294)
     [java]     at net.sf.saxon.functions.DistinctValues.iterate(DistinctValues.java:76)
     [java]     at net.sf.saxon.expr.sort.SortExpression.iterate(SortExpression.java:537)
     [java]     at net.sf.saxon.expr.instruct.ForEach.iterate(ForEach.java:498)
     [java]     at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:112)
     [java]     at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:454)
     [java]     at net.sf.saxon.expr.instruct.ForEach.iterate(ForEach.java:498)
     [java]     at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:170)
     [java]     at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:112)
     [java]     at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:454)
     [java]     at net.sf.saxon.expr.instruct.CopyOf.iterate(CopyOf.java:798)
     [java]     at net.sf.saxon.expr.instruct.BlockIterator.next(BlockIterator.java:49)
     [java]     at net.sf.saxon.expr.sort.SortedIterator.buildArray(SortedIterator.java:223)
     [java]     at net.sf.saxon.expr.sort.SortedIterator.doSort(SortedIterator.java:255)
     [java]     at net.sf.saxon.expr.sort.SortedIterator.next(SortedIterator.java:140)
     [java]     at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:475)
     [java]     at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
     [java]     at net.sf.saxon.expr.LetExpression.process(LetExpression.java:463)
     [java]     at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
     [java]     at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
     [java]     at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:239)
     [java]     at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1057)
     [java]     at net.sf.saxon.Controller.transformDocument(Controller.java:2080)
     [java]     at net.sf.saxon.Controller.transform(Controller.java:1903)
     [java]     at org.hl7.fhir.utilities.Utilities.saxonTransform(Utilities.java:374)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.processWarnings(Publisher.java:1908)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:667)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:492)
     [java] FHIR build failure @ Thu, Dec 13, 2018 13:33-0600                          0.815 300sec  576MB
     [java] Error: Unknown FHIRVersion code '3.6.0'
     [java] org.hl7.fhir.exceptions.FHIRException: Unknown FHIRVersion code '3.6.0'
     [java]     at org.hl7.fhir.r4.model.Enumerations$FHIRVersion.fromCode(Enumerations.java:10025)
     [java]     at org.hl7.fhir.tools.implementations.java.JavaGenerator.compile(JavaGenerator.java:510)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:2216)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:634)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:492)

BUILD FAILED
/Users/rhausam/git-repo/fhir/build.xml:30: The following error occurred while executing this line:
/Users/rhausam/git-repo/fhir/tools/java/org.hl7.fhir.tools.core/build.xml:156: Java returned: 1

view this post on Zulip Grahame Grieve (Dec 13 2018 at 19:47):

look at http://wiki.hl7.org/index.php?title=FHIR_Package_Cache to determine where your package cache is, and then delete your core packages

view this post on Zulip Rob Hausam (Dec 13 2018 at 19:48):

ok - yeah, should have thought of that

view this post on Zulip Rob Hausam (Dec 13 2018 at 20:29):

I removed the 'current' and '3.6.0' packages from the cache, but that actually didn't fix it

view this post on Zulip Grahame Grieve (Dec 13 2018 at 20:39):

same stack?

view this post on Zulip Rob Hausam (Dec 13 2018 at 20:47):

yes - if I understand your question correctly

view this post on Zulip Rob Hausam (Dec 13 2018 at 20:52):

working on the Mac - removed from ~/.fhir/packages/

view this post on Zulip Grahame Grieve (Dec 13 2018 at 20:53):

delete all your .class files

view this post on Zulip Rob Hausam (Dec 13 2018 at 20:55):

right - I usually do that as one of the first steps, but didn't this time

view this post on Zulip Eric Haas (Dec 14 2018 at 14:12):

my builds fails too after deleting all the class files and packages:

several of these...

 [java] ERROR @ org.hl7.fhir.validation.r4.tests.ValidationTestSuite: test[93: id Xml.uk-nhs-pat.xml](org.hl7.fhir.validation.r4.tests.ValidationTestSuite): Error loading StructureDefinition-questionnaire-targetStructureMap.json: Unknown FHIRVersion code '3.6.0' (src = Publisher)

what else needs to be cleaned out?

view this post on Zulip Rob Hausam (Dec 14 2018 at 14:15):

My build is working again now. I also deleted the publish and temp directories, but I'm not absolutely certain that deleting both of them is needed. But doing that and deleting the package and .class files worked for me.

view this post on Zulip Melva Peters (Jan 12 2019 at 20:24):

I'm getting this error when I try to run the build. Any idea what I need to do? [java] ERROR @ org.hl7.fhir.validation.r4.tests.ValidationTestSuite: test86: id Xml.reference-good-contained.xml: Error parsing response message: Unknown FHIRVersion code '4.0.0' (src = Publisher)

view this post on Zulip Grahame Grieve (Jan 12 2019 at 20:41):

clean out all your .class files

view this post on Zulip Melva Peters (Jan 15 2019 at 13:46):

I'm now getting this error on my build...any ideas? [java] ERROR @ org.hl7.fhir.igtools.tests.AllGuidesTests: testIg40(org.hl7.fhir.igtools.tests.AllGuidesTests): Unknown FHIRVersion code '3.6.0' (src = Publisher)

view this post on Zulip Grahame Grieve (Jan 15 2019 at 13:56):

one of us needs to have a look

view this post on Zulip Rob Hausam (Jan 15 2019 at 14:34):

if Grahame doesn't get to it first we can try to find a moment and I can look at it with you again - there's a least one more thing I know to try, I think

view this post on Zulip Bryn Rhodes (Jan 30 2019 at 17:42):

I'm looking at it now, but I'm actually getting a different error locally :)

view this post on Zulip John Moehrke (Jan 30 2019 at 17:52):

I too have this build failure

view this post on Zulip Bryn Rhodes (Jan 30 2019 at 18:16):

I've reproduced it locally, working on a fix now

view this post on Zulip Grahame Grieve (Jan 30 2019 at 19:03):

Please do not fix. This is a structural problem and I'm waiting on @James Agnew to advise how to proceed

view this post on Zulip Bryn Rhodes (Jan 30 2019 at 19:17):

Understood


Last updated: Apr 12 2022 at 19:14 UTC