BeeInventor / keycloak-cognito-migration

A Keycloak UserStorageProvider for migrating users from AWS Cognito
MIT License
19 stars 5 forks source link

Broken tool when synch users? #4

Open neogeogre opened 2 years ago

neogeogre commented 2 years ago

I did the setup in keycloak, entered the aws credentials of a user pool but when clicking synch users I got the following error logs:

12:12:29,446 INFO  [stdout] (default task-1717) src/haxe/com/beeinventor/keycloak/Cognito.hx:52: paginationToken, null
12:12:29,446 INFO  [stdout] (default task-1717) src/haxe/com/beeinventor/keycloak/Cognito.hx:57: got 2 users
12:12:29,446 INFO  [stdout] (default task-1717) src/haxe/com/beeinventor/keycloak/CognitoMigrationUserStorageProvider.hx:145: createUsersIfNotExist 2
12:12:29,446 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1717) Uncaught server error: java.lang.NoSuchMethodError: 'java.util.stream.Stream org.keycloak.storage.user.UserQueryProvider.searchForUserByUserAttributeStream(org.keycloak.models.RealmModel, java.lang.String, java.lang.String)'
    at deployment.keycloak-cognito-migration-1.5.1.jar//com.beeinventor.keycloak.CognitoMigrationUserStorageProvider.createUsersIfNotExist(src/haxe/com/beeinventor/keycloak/CognitoMigrationUserStorageProvider.hx:151)
    at deployment.keycloak-cognito-migration-1.5.1.jar//com.beeinventor.keycloak.CognitoMigrationUserStorageProviderFactory$Closure_sync_0.invoke(src/haxe/com/beeinventor/keycloak/CognitoMigrationUserStorageProviderFactory.hx:229)

Any ideas about what can be wrong with the NoSuchMethodError searchForUserByUserAttributeStream ?

JasonLKelly commented 2 years ago

I'm also seeing this in Keycloak 12.0.4. Any suggestions? Thanks