Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11080

Beam Java SNAPSHOTS should not be built with Java 11

Details

    • Improvement
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • 2.26.0
    • 2.26.0
    • build-system
    • None

    Description

      We have a series of jobs that check forwards compatibility of our apps with the daily Beam SNAPSHOTs, and those jobs are failing since two days ago because a compatibility issue:

      org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
       at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish (DirectRunner.java:368)
       at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish (DirectRunner.java:336)
       at org.apache.beam.runners.direct.DirectRunner.run (DirectRunner.java:216)
      

      This can be reproduced easily with a machine with only Java 8 and using Beam's archetype + SNAPSHOTs

      mvn archetype:generate \
       -DarchetypeGroupId=org.apache.beam \
       -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \
       -DarchetypeVersion=2.26.0-SNAPSHOT \
       -DgroupId=org.example \
       -DartifactId=word-count-beam \
       -Dversion="0.1" \
       -Dpackage=org.apache.beam.examples \
       -DinteractiveMode=false
      
      cd word-count-beam
      
      mvn clean compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--inputFile=pom.xml --output=out"
      

      Attachments

        Activity

          People

            tysonjh Tyson Hamilton
            iemejia Ismaël Mejía
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: