Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1479

ConcurrentModificationException in CreationalContextImpl.destroyDependentInstance

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.3.Final
    • 2.0.4.Final, 2.1.0.Alpha1
    • None
    • None

    Description

      CreationalContextImpl uses Collections.synchronizedList, but doesn't synchronize on the list when iterating over it, as required by the synchronizedList javadoc.

      06:38:09,549 ERROR [io.undertow.request] (default task-57) Servlet request failed HttpServerExchange{ GET /bb364d30-f0e4-477e-b69d-e78f7fd6d9ed//bar}: java.util.ConcurrentModificationException
      	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) [rt.jar:1.7.0_25]
      	at java.util.ArrayList$Itr.remove(ArrayList.java:805) [rt.jar:1.7.0_25]
      	at org.jboss.weld.context.CreationalContextImpl.destroyDependentInstance(CreationalContextImpl.java:191) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.bean.builtin.InstanceImpl.destroy(InstanceImpl.java:164) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.conversation.ConversationImpl$ActiveConversationContextProxy.destroy(ConversationImpl.java:254) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.conversation.ConversationImpl$ActiveConversationContextProxy.isContextActive(ConversationImpl.java:208) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.conversation.ConversationImpl.verifyConversationContextActive(ConversationImpl.java:185) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.conversation.ConversationImpl.touch(ConversationImpl.java:149) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.conversation.ConversationImpl.<init>(ConversationImpl.java:71) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.AbstractConversationContext.associateRequest(AbstractConversationContext.java:183) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:229) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.servlet.ConversationContextActivator.activateConversationContext(ConversationContextActivator.java:90) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.servlet.HttpContextLifecycle.requestInitialized(HttpContextLifecycle.java:157) [weld-core-impl.jar:2013-08-08 06:32]
      	at org.jboss.weld.servlet.WeldInitialListener.requestInitialized(WeldInitialListener.java:108) [weld-core-impl.jar:2013-08-08 06:32]
      	at io.undertow.servlet.core.ApplicationListeners.requestInitialized(ApplicationListeners.java:193) [undertow-servlet-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:184) [undertow-servlet-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:172) [undertow-servlet-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:56) [undertow-servlet-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:107) [undertow-servlet-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36) [undertow-core-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:629) [undertow-core-1.0.0.Beta3.jar:1.0.0.Beta3]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      

      Attachments

        Activity

          People

            marko.luksa@gmail.com Marko Luksa (Inactive)
            marko.luksa@gmail.com Marko Luksa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: