Describe the bug
The export functionality is not working for Keycloak X 15.1.0. A ClassCastException occurs.
Version
15.1.0
Expected behavior
The export should work (and a ClassCastException should never occur).
Actual behavior
Export fails with following stacktrace:
java.lang.ClassCastException: class picocli.CommandLine$2 cannot be cast to class org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler (picocli.CommandLine$2 and org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler are in unnamed module of loader io.quarkus.bootstrap.runner.RunnerClassLoader @4141d797)
at org.keycloak.quarkus.runtime.cli.command.AbstractStartCommand.run(AbstractStartCommand.java:34)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.keycloak.quarkus.runtime.cli.command.AbstractExportImportCommand.run(AbstractExportImportCommand.java:72)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.keycloak.quarkus.runtime.cli.Picocli.parseAndRun(Picocli.java:88)
at org.keycloak.quarkus.runtime.KeycloakMain.main(KeycloakMain.java:78)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:53)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:28)
How to Reproduce?
docker run quay.io/keycloak/keycloak-x:15.1.0 export --dir /tmp/export
Anything else?
I think this might be related to 9a4ab82
I assume import is also impacted, but I don't have a realm file ready for testing.
Describe the bug
The export functionality is not working for Keycloak X 15.1.0. A ClassCastException occurs.
Version
15.1.0
Expected behavior
The export should work (and a ClassCastException should never occur).
Actual behavior
Export fails with following stacktrace:
How to Reproduce?
docker run quay.io/keycloak/keycloak-x:15.1.0 export --dir /tmp/exportAnything else?
I think this might be related to 9a4ab82
I assume import is also impacted, but I don't have a realm file ready for testing.