Importing realm ERROR

I’m getting following errors while trying to import a realm on Keycaloak 20.0.3 (baremetal installation, centos 8 stream)

2023-01-18 19:09:55,416 ERROR [org.infinispan.CLUSTER] (jgroups-18,auth-usmd01-15316) ISPN000475: Error processing response for request 54 from auth-usmd01-57032: org.infinispan.commons.marshall.MarshallingException: java.lang.NoSuchMethodException: java.lang.NoClassDefFoundError.(java.lang.String, java.lang.Throwable)
2023-01-18 19:10:10,397 ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (timeout-thread–p4-t1) ISPN000136: Error executing command PutKeyValueCommand on Cache ‘work’, writing keys [85f3792d-d264-405b-a9be-93eb90623b5f]: org.infinispan.util.concurrent.TimeoutException: ISPN000476: Timed out waiting for responses for request 54 from auth-usmd01-57032
2023-01-18 19:10:14,318 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (import_export) mode
2023-01-18 19:10:14,318 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: ISPN000476: Timed out waiting for responses for request 54 from auth-usmd01-57032
2023-01-18 19:10:14,319 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: ISPN000476: Timed out waiting for responses for request 54 from auth-usmd01-57032
2023-01-18 19:10:14,319 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main)

There were even more before I’ve added --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED to kc.sh, so I assume the problem is due to conflicts with java versions. I’ve tried importing using:

  • jdk-19-oracle-x64
  • java-11-openjdk.x86_64

No success. I’ve lost hope to be able to fix this problem myself. Help would be greatly appreciated.