Skip to content

MySQL URI Deserialization error #4

@YashKakrechaInexture

Description

@YashKakrechaInexture

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"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions