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

Luke Cwik updated BEAM-14192:
-----------------------------
    Description: 
The Dataflow ITs fails with a class version mismatch. I believe the Dataflow v1 
container that is being tested was built with the wrong JDK version.

Jenkins: 
https://ci-beam.apache.org/job/beam_PostCommit_Java_DataflowV1/1427/#showFailuresLink

Example Failure:
{noformat}
java.lang.RuntimeException: java.lang.RuntimeException: 
org.apache.beam.sdk.util.UserCodeException: 
java.lang.UnsupportedClassVersionError: org/apache/commons/logging/LogFactory 
has been compiled by a more recent version of the Java Runtime (class file 
version 55.0), this version of the Java Runtime only recognizes class file 
versions up to 52.0
        at 
org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowsParDoFn$1.output(GroupAlsoByWindowsParDoFn.java:187)
        at 
org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowFnRunner$1.outputWindowedValue(GroupAlsoByWindowFnRunner.java:108)
        at 
org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:56)
        at 
org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:39)
{noformat}

  was:
The IT fails with a class version mismatch. This is odd since this implies that 
we are somehow getting a Apache Commons Logging jar that was compiled with Java 
11.

Note that I have only seen this in this IT and not others which is pointing at 
zetasketch classpath being broken in some way.

My first thought was that we were pulling in a dependency with an incorrectly 
shaded apache-commons logging class but when I dumped the classpath and all the 
jar contents on the commons-logging-1.2.jar contained this class.

First found failure: https://ci-beam.apache.org/job/beam_PostCommit_Java/8786/

Example Failure:
{noformat}
java.lang.RuntimeException: java.lang.RuntimeException: 
org.apache.beam.sdk.util.UserCodeException: 
java.lang.UnsupportedClassVersionError: org/apache/commons/logging/LogFactory 
has been compiled by a more recent version of the Java Runtime (class file 
version 55.0), this version of the Java Runtime only recognizes class file 
versions up to 52.0
        at 
org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowsParDoFn$1.output(GroupAlsoByWindowsParDoFn.java:187)
        at 
org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowFnRunner$1.outputWindowedValue(GroupAlsoByWindowFnRunner.java:108)
        at 
org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:56)
        at 
org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:39)
{noformat}


> IT run on Dataflow v1 fails with org/apache/commons/logging/LogFactory has 
> been compiled by a more recent version of the Java Runtime
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-14192
>                 URL: https://issues.apache.org/jira/browse/BEAM-14192
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Luke Cwik
>            Assignee: Kiley Sok
>            Priority: P2
>
> The Dataflow ITs fails with a class version mismatch. I believe the Dataflow 
> v1 container that is being tested was built with the wrong JDK version.
> Jenkins: 
> https://ci-beam.apache.org/job/beam_PostCommit_Java_DataflowV1/1427/#showFailuresLink
> Example Failure:
> {noformat}
> java.lang.RuntimeException: java.lang.RuntimeException: 
> org.apache.beam.sdk.util.UserCodeException: 
> java.lang.UnsupportedClassVersionError: org/apache/commons/logging/LogFactory 
> has been compiled by a more recent version of the Java Runtime (class file 
> version 55.0), this version of the Java Runtime only recognizes class file 
> versions up to 52.0
>       at 
> org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowsParDoFn$1.output(GroupAlsoByWindowsParDoFn.java:187)
>       at 
> org.apache.beam.runners.dataflow.worker.GroupAlsoByWindowFnRunner$1.outputWindowedValue(GroupAlsoByWindowFnRunner.java:108)
>       at 
> org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:56)
>       at 
> org.apache.beam.runners.dataflow.worker.util.BatchGroupAlsoByWindowReshuffleFn.processElement(BatchGroupAlsoByWindowReshuffleFn.java:39)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to