I've been trying to make a POC in my own framework. To do that, I've installed keycloak (25.0.0, and then downgraded to 24.0.1 but both failed).
I've launched it first without the provider in order to setup my keycloak environment. Then, I copied the event-publisher into the providers folder, and ran bin/kc.sh build
The build ran successfully, but now everytime I run bin/kc.sh start-dev
, I get this error:
bin/kc.sh start-dev
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
Caused by: java.lang.NoSuchFieldError: Class org.keycloak.common.Profile$Feature does not have member field 'org.keycloak.common.Profile$Feature FIPS'
at org.keycloak.config.SecurityOptions.<clinit>(SecurityOptions.java:14)
at org.keycloak.config.HttpOptions.<clinit>(HttpOptions.java:88)
at org.keycloak.quarkus.runtime.configuration.mappers.HttpPropertyMappers.getHttpPropertyMappers(HttpPropertyMappers.java:31)
at org.keycloak.quarkus.runtime.configuration.mappers.PropertyMappers.<clinit>(PropertyMappers.java:30)
at org.keycloak.quarkus.runtime.cli.Picocli.addOptionsToCli(Picocli.java:578)
at org.keycloak.quarkus.runtime.cli.Picocli.addCommandOptions(Picocli.java:558)
at org.keycloak.quarkus.runtime.cli.Picocli.createCommandLine(Picocli.java:514)
at org.keycloak.quarkus.runtime.cli.Picocli.parseAndRun(Picocli.java:103)
at org.keycloak.quarkus.runtime.KeycloakMain.main(KeycloakMain.java:107)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 3 more
Maybe I did something wrong, but I can't figure out what. I've tried again several times, but it keeps failing. Also, if I remove the event-publisher from the providers folder and run bin/kc.sh build
again, it keeps failing with the same error.
java -version
java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)