karatelabs / karate

Test Automation Made Simple

Home Page:https://karatelabs.github.io/karate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ecidou opened this issue · comments

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

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

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)

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

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

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.