Carel created THRIFT-5879:
-----------------------------

             Summary: java and kotlin cross tests fail in the GitHub action 
                 Key: THRIFT-5879
                 URL: https://issues.apache.org/jira/browse/THRIFT-5879
             Project: Thrift
          Issue Type: Task
    Affects Versions: 0.22.0
            Reporter: Carel


The Java and Kotlin cross tests fail in the GitHub actions build pipeline.

The error for the clients* are
{code:java}
```
Tue Jun 10 21:07:39 2025
Executing: 
/home/runner/work/thrift/thrift/lib/kotlin/cross-test-client/build/install/TestClient/bin/TestClient
 --protocol=json --transport=framed --port=32919
Directory: /home/runner/work/thrift/thrift/lib/kotlin
config:delay: 15
config:timeout: 13
===============================================================================
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/apache/thrift/test/TestClientKt has been compiled by a more recent version 
of the Java Runtime (class file version 61.0), this version of the Java Runtime 
only recognizes class file versions up to 52.0
```
{code}
* This might be the clue since the server does not have the same issue:
{code:java}
Tue Jun 10 21:07:39 2025
Executing: /home/runner/work/thrift/thrift/lib/java/build/runserver 
--protocol=multij --transport=framed --port=32919
Directory: /home/runner/work/thrift/thrift/lib/java
config:delay: 15
config:timeout: 13
===============================================================================
Starting the server [multij/framed/thread-pool] on port 32919
TServerEventHandler.preServe - called only once before server starts accepting 
connections
{code}
[PR#3043|https://github.com/apache/thrift/pull/3043] did something which seems 
related, perhaps this was only done for the server and not the client.

The above logs are from the latest action on master: [Tue Jun 10 21:07:42 
2025|https://github.com/apache/thrift/actions/runs/15569308617/job/43844273840]

In unrelated work I have updated the Java version in the test stage and then 
the tests pass, but this is clearly against the spirit of the test and what 
THRIFT-5775 was about.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to