Uploaded image for project: 'RH-SSO'
  1. RH-SSO
  2. RHSSO-2544

Intermittent ConcurrentModificationException during JBoss EAP startup

XMLWordPrintable

    • False
    • None
    • False

      https://github.com/keycloak/keycloak/issues/21367

      Environment:

      EAP 7.4.11
      RH SSO 7.6.2
      RH SSO 7.6.2 EAP Adapters
      Domain mode deployment

      Issue happens randomly
      Workaround exists

      Customer has ear deployed to a servergroup , war inside the ear are secured using keycloak adapters. Customer is getting intermittent ConcurrentModificationException during JBoss EAP server start

      (MSC service thread 1-4) MSC000001: Failed to start service org.wildfly.security.http-server-mechanism-factory."mensageria-core-web.war": org.jboss.msc.service.StartException in service org.wildfly.security.http-server-mechanism-factory."mensageria-core-web.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
      

      Issue looks similar to https://issues.redhat.com/browse/KEYCLOAK-7254 but there is no answer.

      Currently there is a workaround, if they restart the EAP, issue resolved but customer wants to understand why is it happening and war files associated to the error message are not even deployed to the server group.

      Customer has two server groups and both share the same profile. Each server group has different deployments.

      One more thing, I found that the do observed slowness in their environments sometimes, can this CME happen due to the slowness? I can gather thread dumps if required but they don't know when this will happen.

      If there is any issue with adapters, it might affect the elytron oidc adapters as well.

      Let me know if this is a bug, I can open a jira.

              Unassigned Unassigned
              mhajas@redhat.com Michal Hajas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: