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

Intermittent ConcurrentModificationException during JBoss EAP startup with Keycloak adapter #21367

Open
2 tasks done
mhajas opened this issue Jun 30, 2023 · 2 comments
Open
2 tasks done

Comments

@mhajas
Copy link
Contributor

mhajas commented Jun 30, 2023

Before reporting an issue

  • I have searched existing issues
  • I have reproduced the issue with the latest release

Area

adapter/jee

Describe the bug

Already reported in Jira: https://issues.redhat.com/browse/KEYCLOAK-7254

When the Keycloak subsystem is used to configure client deployment the following exception is intermittently thrown:

(MSC service thread 1-4) MSC000001: Failed to start service org.wildfly.security.http-server-mechanism-factory."some-client.war": org.jboss.msc.service.StartException in service org.wildfly.security.http-server-mechanism-factory."some-client.war": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719)
at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:752)
at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:750)
at org.jboss.dmr.ObjectModelValue.asPropertyList(ObjectModelValue.java:161)
at org.jboss.dmr.ModelNode.asPropertyList(ModelNode.java:529)
at org.keycloak.subsystem.adapter.extension.KeycloakAdapterConfigService.setJSONValues(KeycloakAdapterConfigService.java:267)
at org.keycloak.subsystem.adapter.extension.KeycloakAdapterConfigService.getJSON(KeycloakAdapterConfigService.java:261)
at org.keycloak.subsystem.adapter.extension.KeycloakHttpAuthenticationFactoryService.start(KeycloakHttpAuthenticationFactoryService.java:50)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
... 6 more

Version

18.0.2

Expected behavior

No CME is thrown

Actual behavior

CME is intermittently thrown

How to Reproduce?

Anything else?

@mposolda
Copy link
Contributor

mposolda commented Mar 1, 2024

Considering that we are going to remove OIDC adapters (which are already deprecated), this looks like very low priority.

@keycloak-github-bot
Copy link

Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment.

If you are affected by this issue, upvote it by adding a 👍 to the description. We would also welcome a contribution to fix the issue.

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

No branches or pull requests

3 participants