You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Ismaël Mejía (Jira)" <ji...@apache.org> on 2020/10/21 13:01:00 UTC

[jira] [Updated] (BEAM-11080) Beam Java SNAPSHOTS should not be built with Java 11

     [ https://issues.apache.org/jira/browse/BEAM-11080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ismaël Mejía updated BEAM-11080:
--------------------------------
    Description: 
{quote}{{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)
{quote}
 This can be reproduced easily with a machine with only Java 8 and using our artifacts + SNAPSHOTs
{quote}{{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}}{quote}
{quote}{{cd word-count-beam}}{{}}{quote}
{quote}{{mvn clean compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--inputFile=pom.xml --output=out"}}
 
{quote}
 

  was:
{quote}{{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:}}

{{2020-10-21 14:21:58,645 [direct-runner-worker] ERROR org.apache.beam.runners.direct.DirectTransformExecutor - Error occurred within org.apache.beam.runners.direct.DirectTransformExecutor@1a84368d}}
{{java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;}}
{{ at org.apache.beam.sdk.util.BufferedElementCountingOutputStream.outputBuffer(BufferedElementCountingOutputStream.java:197)}}
{{ at org.apache.beam.sdk.util.BufferedElementCountingOutputStream.flush(BufferedElementCountingOutputStream.java:180)}}
{{ at org.apache.beam.sdk.util.BufferedElementCountingOutputStream.finish(BufferedElementCountingOutputStream.java:119)}}
{{ at org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:127)}}
{{ at org.apache.beam.sdk.coders.IterableLikeCoder.encode(IterableLikeCoder.java:60)}}{quote}
 


> Beam Java SNAPSHOTS should not be built with Java 11
> ----------------------------------------------------
>
>                 Key: BEAM-11080
>                 URL: https://issues.apache.org/jira/browse/BEAM-11080
>             Project: Beam
>          Issue Type: Improvement
>          Components: build-system
>    Affects Versions: 2.26.0
>            Reporter: Ismaël Mejía
>            Priority: P2
>
> {quote}{{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)
> {quote}
>  This can be reproduced easily with a machine with only Java 8 and using our artifacts + SNAPSHOTs
> {quote}{{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}}{quote}
> {quote}{{cd word-count-beam}}{{}}{quote}
> {quote}{{mvn clean compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--inputFile=pom.xml --output=out"}}
>  
> {quote}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)