Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-933

IronJacamarResourceCreator Throws ConcurrentModificationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 1.0.13.Final
    • 1.0.12.Final
    • None
    • None

      I am deploying three RARs in the same EAR and regularly get the exception shown below.

      14:56:41,913 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.EAR:main" from Service Module Loader
      14:56:42,018 INFO [org.jboss.as.osgi] (MSC service thread 1-8) JBAS011907: Register module: Module "deployment.EAR.XXX.rar:main" from Service Module Loader
      14:56:42,037 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-7) JBAS010406: Registered connection factory java:/eis/XXX
      14:56:42,045 INFO [com.xxx.XXXResourceAdapter] (MSC service thread 1-7) #start
      14:56:42,047 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) IJ020002: Deployed: XXX
      14:56:42,055 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/eis/XXX]
      14:56:42,057 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.EAR.YYY.rar:main" from Service Module Loader
      14:56:42,071 INFO [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011907: Register module: Module "deployment.EAR.ZZZ.rar:main" from Service Module Loader
      14:56:42,148 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-8) JBAS010406: Registered connection factory java:/eis/ZZZ
      14:56:42,150 INFO [com.yyy.YYYResourceAdapter] (MSC service thread 1-8) #start
      14:56:42,161 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-8) IJ020002: Deployed: ZZZ
      14:56:42,167 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/eis/ZZZ]
      14:56:42,173 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-6) JBAS010406: Registered connection factory java:/eis/YYY
      14:56:42,176 INFO [com.zzz.ZZZResourceAdapter] (MSC service thread 1-6) #start
      14:56:42,177 ERROR [org.jboss.msc.service] (MSC service thread 1-7) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor$1@21641d7d" failed: java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894) [rt.jar:1.7.0_09]
      at java.util.HashMap$KeyIterator.next(HashMap.java:928) [rt.jar:1.7.0_09]
      at org.jboss.as.connector.subsystems.resourceadapters.IronJacamarResourceCreator.getIronJacamarResource(IronJacamarResourceCreator.java:268) [jboss-as-connector-7.1.3.Final.jar:7.1.3.Final]
      at org.jboss.as.connector.subsystems.resourceadapters.IronJacamarResourceCreator.execute(IronJacamarResourceCreator.java:283) [jboss-as-connector-7.1.3.Final.jar:7.1.3.Final]
      at org.jboss.as.connector.deployers.ra.processors.ParsedRaDeploymentProcessor$1.registerIronjacamar(ParsedRaDeploymentProcessor.java:160) [jboss-as-connector-7.1.3.Final.jar:7.1.3.Final]
      at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceListener.java:153) [jboss-as-connector-7.1.3.Final.jar:7.1.3.Final]
      at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
      14:56:42,182 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-6) IJ020002: Deployed: YYY
      14:56:42,190 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/eis/YYY]

      I've replaced the real names of my components with XXX, YYY and ZZZ in a consistent way above. The problem seems to be during the interleaving of YYY and ZZZ.

              jpederse@redhat.com Jesper Pedersen
              jim_b_o_rh James Olsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: