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

MySQL URI Deserialization error #4

Open
YashKakrechaInexture opened this issue Mar 19, 2024 · 0 comments
Open

MySQL URI Deserialization error #4

YashKakrechaInexture opened this issue Mar 19, 2024 · 0 comments

Comments

@YashKakrechaInexture
Copy link

YashKakrechaInexture commented Mar 19, 2024

I am using keycloak version 19.0.3 and i have added the above jar with dependancy as below (without this it was not starting the keycloak server) :
**compileOnly** group: 'org.keycloak', name: 'keycloak-core', version: '10.0.0'
**compileOnly** group: 'org.keycloak', name: 'keycloak-server-spi', version: '10.0.0'
**compileOnly** group: 'org.keycloak', name: 'keycloak-adapter-spi', version: '10.0.0'
And added the jar file in keycloak-19.0.3/provides folder.

I was able to see the new button in user federation, but when I create the federation with my URI and data,
Keycloak giving deserialization error as below :

ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-4) Uncaught server error: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of java.util.ArrayList (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('jdbc:mysql://localhost:3306/redisclusterdemo?user=root&password=pass')
at [Source: (io.quarkus.vertx.http.runtime.VertxInputStream); line: 1, column: 39] (through reference chain: org.keycloak.representations.idm.ComponentRepresentation["config"]->org.keycloak.common.util.MultivaluedHashMap["mysql"])

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

No branches or pull requests

1 participant