Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karate does not work with Java 22 (?) => OK with Java 21 #2542

Closed
ecidou opened this issue Apr 3, 2024 · 7 comments
Closed

Karate does not work with Java 22 (?) => OK with Java 21 #2542

ecidou opened this issue Apr 3, 2024 · 7 comments
Assignees
Milestone

Comments

@ecidou
Copy link

ecidou commented Apr 3, 2024

Hello,
I'm new to Karate and I tried the simple the standalone JAR with the very simple test : httpbin.feature
I've lost few hours fighting against Java 22 (from https://www.oracle.com/fr/java/technologies/downloads/#java22)
Nothing happens, except this:

java.exe -jar karate.jar httpbin.feature
10:00:42.716 [main]  INFO  com.intuit.karate - Karate version: 1.4.1

(none report, except karate.log)
But everything is OK with the previous version : Java 21

(From Windows 10 and Powershell)
Regards

@ptrthomas
Copy link
Member

tagging as help wanted for now. would @ecidou be interested in contributing a PR

@a11970
Copy link

a11970 commented Apr 5, 2024

I think I'm facing the same problem with Java 22. None of mine tests can be run. Tests executed with Runner are getting stuck infinitely on 'CompletableFuture.allof()' (at Suite.java, lines 246, 248, karate-core:1.4.1)

@ptrthomas
Copy link
Member

@a11970 thanks for this - I think I'll prioritize this, will take a look and revert

ptrthomas added a commit that referenced this issue Apr 5, 2024
ptrthomas added a commit that referenced this issue Apr 5, 2024
@ptrthomas ptrthomas self-assigned this Apr 5, 2024
@ptrthomas ptrthomas added this to the 1.5.0 milestone Apr 5, 2024
@ptrthomas
Copy link
Member

this is fixed but we are unable to make a maven release which happens occasionally when the server is under high load. we can try again next week

the problem was graal was not compatible with java 22 and had to be upgraded. we also set our "compatibility" build to use Java 23 (early access) so we are in a better place that way

meanwhile you can build from source: https://github.com/karatelabs/karate/wiki/Developer-Guide

@a11970
Copy link

a11970 commented Apr 8, 2024

I can confirm that a locally build from the source with graal upgraded fixed the problem. So now I'm just waiting for a new release from you.

Thank you for your help.

ptrthomas added a commit that referenced this issue Apr 11, 2024
@ptrthomas
Copy link
Member

@ecidou @a11970 @edwardsph 1.5.0.RC4 is now available https://central.sonatype.com/artifact/io.karatelabs/karate-core

@ptrthomas
Copy link
Member

1.5.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants