Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17286

Concurrency Exception during bean configuration related to not thread safe getBeanPostProcessor access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.19
    • Fix Version/s: 5.0.10, 5.1 GA
    • Component/s: Core:DI
    • Labels:
    • Last commented by a User:
      true

      Description

      Happens during initialisation of projects using Akka actors enriched by Spring beans ex:

      Spring service -> akka actor created and autowired during postConstruct.

      Log:

      [INFO] F8: Caused by: java.util.ConcurrentModificationException: null
      [INFO] F8: 	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
      [INFO] F8: 	at java.util.ArrayList$Itr.next(ArrayList.java:859)
      [INFO] F8: 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:614)
      [INFO] F8: 	at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:555)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:432)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:395)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:389)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1002)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:345)
      [INFO] F8: 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:340)
      [INFO] F8: 	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1092)
      [INFO] F8: 	at com.asaoweb.exmessaging.server.actors.SpringActorProducer.produce(SpringActorProducer.java:36)
      [INFO] F8: 	at akka.actor.Props.newActor(Props.scala:212)
      [INFO] F8: 	at akka.actor.ActorCell.newActor(ActorCell.scala:624)
      [INFO] F8: 	at akka.actor.ActorCell.create(ActorCell.scala:650)
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              sfuchs Sebastien Fuchs
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 3 days ago