FHIR Chat · Build erro · committers

Stream: committers

Topic: Build erro


view this post on Zulip Gaston Fiore (May 25 2016 at 20:07):

Is the build broken?

gastons-mbp:build gafiore$ svn info
Path: .
Working Copy Root Path: /Users/gafiore/code/fhir/build
URL: http://gforge.hl7.org/svn/fhir/trunk/build
Repository Root: http://gforge.hl7.org/svn/fhir
Repository UUID: 2f0db536-2c49-4257-a3fa-e771ed206c19
Revision: 8389
Node Kind: directory
Schedule: normal
Last Changed Author: grahameg
Last Changed Rev: 8389
Last Changed Date: 2016-05-25 07:23:11 -0400 (Wed, 25 May 2016)
     [java] Exception in thread "main" java.lang.NoSuchMethodError: org.hl7.fhir.dstu3.model.DataElement.setStatusElement(Lorg/hl7/fhir/dstu3/model/Enumeration;)Lorg/hl7/fhir/dstu3/model/DataElement;
     [java]     at org.hl7.fhir.dstu3.utils.ResourceUtilities.showDECHeader(ResourceUtilities.java:297)
     [java]     at org.hl7.fhir.dstu3.utils.ResourceUtilities.representDataElementCollection(ResourceUtilities.java:98)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:866)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:469)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:465)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceDictionary(Publisher.java:4526)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpec(Publisher.java:2119)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1936)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:615)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:464)

BUILD FAILED
/Users/gafiore/code/fhir/build/build.xml:30: The following error occurred while executing this line:
/Users/gafiore/code/fhir/build/tools/java/org.hl7.fhir.tools.core/build.xml:90: Java returned: 1

view this post on Zulip Josh Mandel (May 25 2016 at 20:14):

SVN revision 8389 successfully built on Travis (https://travis-ci.org/hl7-fhir/fhir-svn/builds/132816725)

view this post on Zulip Gaston Fiore (May 25 2016 at 20:18):

That's strange. I've just deleted a few spurious vscache files. Now,

gastons-mbp:build gafiore$ svn st
M       source/diagnosticorder/diagnosticorder-genetics-example-2.xml
M       source/diagnosticorder/diagnosticorder-genetics-profile-spreadsheet.sheet.txt
M       source/diagnosticorder/diagnosticorder-genetics-profile-spreadsheet.xml
M       source/observation/observation-example-genetics-1.xml
M       source/observation/observation-genetics-profile-spreadsheet.sheet.txt
M       source/observation/observation-genetics-profile-spreadsheet.xml
M       source/sequence/sequence-example.xml
M       source/sequence/sequence-spreadsheet.sheet.txt

so if it doesn't build I'm not sure what the problem could be...

view this post on Zulip Gaston Fiore (May 25 2016 at 20:32):

Same error as before:

     [java] Exception in thread "main" java.lang.NoSuchMethodError: org.hl7.fhir.dstu3.model.DataElement.setStatusElement(Lorg/hl7/fhir/dstu3/model/Enumeration;)Lorg/hl7/fhir/dstu3/model/DataElement;
     [java]     at org.hl7.fhir.dstu3.utils.ResourceUtilities.showDECHeader(ResourceUtilities.java:297)
     [java]     at org.hl7.fhir.dstu3.utils.ResourceUtilities.representDataElementCollection(ResourceUtilities.java:98)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:866)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:469)
     [java]     at org.hl7.fhir.tools.publisher.PageProcessor.processPageIncludes(PageProcessor.java:465)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceDictionary(Publisher.java:4526)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpec(Publisher.java:2119)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1936)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:615)
     [java]     at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:464)

BUILD FAILED
/Users/gafiore/code/fhir/build/build.xml:30: The following error occurred while executing this line:
/Users/gafiore/code/fhir/build/tools/java/org.hl7.fhir.tools.core/build.xml:90: Java returned: 1

with

gastons-mbp:build gafiore$ svn st
M       source/diagnosticorder/diagnosticorder-genetics-example-2.xml
M       source/diagnosticorder/diagnosticorder-genetics-profile-spreadsheet.sheet.txt
M       source/diagnosticorder/diagnosticorder-genetics-profile-spreadsheet.xml
M       source/observation/observation-example-genetics-1.xml
M       source/observation/observation-genetics-profile-spreadsheet.sheet.txt
M       source/observation/observation-genetics-profile-spreadsheet.xml
M       source/sequence/sequence-example.xml
M       source/sequence/sequence-spreadsheet.sheet.txt
M       source/sequence/sequence-spreadsheet.xml
?       vscache/-117072670.json
?       vscache/-1729511596.json
?       vscache/-1874948076.json
?       vscache/1304303347.json

view this post on Zulip Gaston Fiore (May 25 2016 at 20:32):

My changes built fine in

gastons-mbp:build gafiore$ svn info
Path: .
Working Copy Root Path: /Users/gafiore/code/fhir/build
URL: http://gforge.hl7.org/svn/fhir/trunk/build
Repository Root: http://gforge.hl7.org/svn/fhir
Repository UUID: 2f0db536-2c49-4257-a3fa-e771ed206c19
Revision: 8204
Node Kind: directory
Schedule: normal
Last Changed Author: brynrhodes
Last Changed Rev: 8204
Last Changed Date: 2016-04-19 12:51:40 -0400 (Tue, 19 Apr 2016)

view this post on Zulip Gaston Fiore (May 25 2016 at 20:33):

@Grahame Grieve , what do you recommend? Thanks.

view this post on Zulip Grahame Grieve (May 25 2016 at 21:25):

delete all your class files and run the build again

view this post on Zulip Paul Knapp (May 26 2016 at 05:21):

This was after I'd deleted and run again.

view this post on Zulip Paul Knapp (May 26 2016 at 05:22):

Are you not getting those warnings in your build?

view this post on Zulip Grahame Grieve (May 26 2016 at 05:22):

yes I probably am

view this post on Zulip Grahame Grieve (May 26 2016 at 05:22):

hang on - which errors

view this post on Zulip Paul Knapp (May 26 2016 at 05:22):

Not urgent.

view this post on Zulip Paul Knapp (May 26 2016 at 05:23):

The ones that report a search parameter is never used is any example.

view this post on Zulip Paul Knapp (May 26 2016 at 05:24):

[java] INFORMATION: Claim.provideridentifier: Search Parameter 'Claim.pro
videridentifier' had no found values in any example. Consider reviewing the path
(f:Claim/f:providerIdentifier)
[java] INFORMATION: Claim.providerreference: Search Parameter 'Claim.prov
iderreference' had no found values in any example. Consider reviewing the path (
f:Claim/f:providerReference)

view this post on Zulip Grahame Grieve (May 26 2016 at 05:25):

yeah ,it's on my list, but I'm focusing on infrastructure for now.

view this post on Zulip Paul Knapp (May 26 2016 at 05:27):

Ok, not urgent, but in July I'd like to be cleaning any issues like this up. I know we don't have complete example coverage yet but we should by then. Thanks.

view this post on Zulip Grahame Grieve (May 26 2016 at 05:31):

ok. that's about my time frame for that sort of stuff

view this post on Zulip Rob Hausam (Jun 23 2016 at 12:28):

Is there something different with your @8561 build, @Grahame Grieve?
I'm getting this error:

 [java] Errors: 0 Warnings: 157 Hints: 928
 [java] 
 [java] ===Resources with FMM forced to 0===
 [java]  3.089  65sec  858MB
 [java] This was a Full Build                                                      0.156  65sec  858MB
 [java] FHIR build failure @ Thu, Jun 23, 2016 06:23-0600                          4.595  70sec  858MB
 [java] Error: org.hl7.fhir.igtools.spreadsheets.MappingSpace cannot be cast to org.hl7.fhir.definitions.model.MappingSpace
 [java] java.lang.ClassCastException: org.hl7.fhir.igtools.spreadsheets.MappingSpace cannot be cast to org.hl7.fhir.definitions.model.MappingSpace
 [java]     at org.hl7.fhir.definitions.generators.specification.MappingsGenerator$Sorter.v(MappingsGenerator.java:51)
 [java]     at org.hl7.fhir.definitions.generators.specification.MappingsGenerator$Sorter.compare(MappingsGenerator.java:56)
 [java]     at org.hl7.fhir.definitions.generators.specification.MappingsGenerator$Sorter.compare(MappingsGenerator.java:48)
 [java]     at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
 [java]     at java.util.TimSort.sort(TimSort.java:220)
 [java]     at java.util.Arrays.sort(Arrays.java:1512)
 [java]     at java.util.ArrayList.sort(ArrayList.java:1454)
 [java]     at java.util.Collections.sort(Collections.java:175)
 [java]     at org.hl7.fhir.definitions.generators.specification.MappingsGenerator.generate(MappingsGenerator.java:183)
 [java]     at org.hl7.fhir.tools.publisher.Publisher.produceLogicalModel(Publisher.java:4555)
 [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpec(Publisher.java:2068)
 [java]     at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1968)
 [java]     at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:623)
 [java]     at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:472)

BUILD FAILED
/home/rhausam/fhir_trunk/build/build.xml:30: The following error occurred while executing this line:
/home/rhausam/fhir_trunk/build/tools/java/org.hl7.fhir.tools.core/build.xml:123: Java returned: 1

Total time: 1 minute 22 seconds

view this post on Zulip Grahame Grieve (Jun 23 2016 at 12:41):

try deleting all your class files

view this post on Zulip Grahame Grieve (Jun 23 2016 at 12:41):

and make sure you're updated all your java code

view this post on Zulip Rob Hausam (Jun 23 2016 at 12:46):

I guess that's the usual answer - thanks!

view this post on Zulip Brian Postlethwaite (Jul 03 2016 at 12:09):

My Bad. Looks like some utility code I need to update in the java utils.


Last updated: Apr 12 2022 at 19:14 UTC