Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6372

ResourceAdaptersService.ModifiableResourceAdaptors is not properly synchronized

XMLWordPrintable

      If multiple resource adaptor services start at the same time adding to the ArrayList can fail:

       
      16:57:48,126 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.resourceadapters.ra."old-dd-whitebox-notx.rar": org.jboss.msc.service.StartException in service jboss.resourceadapters.ra."old-dd-whitebox-notx.rar": Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]
      	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 7
      	at java.util.ArrayList.add(ArrayList.java:352) [classes.jar:1.6.0_37]
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdaptersService$ModifiableResourceAdaptors.addResourceAdapter(ResourceAdaptersService.java:79)
      	at org.jboss.as.connector.subsystems.resourceadapters.ResourceAdapterService.start(ResourceAdapterService.java:59)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]
      	... 3 more
      
      

              smaestri@redhat.com Stefano Maestri
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: