[ 
https://issues.apache.org/jira/browse/UIMA-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerry Cwiklik closed UIMA-1630.
-------------------------------

    Resolution: Fixed

synchronized access to the childControllerList to prevent concurrency problems 
that may lead to IndexOutOfBoundsException

> Fix IndexOutOfBounds exception in BaseAnalysisEngineController
> --------------------------------------------------------------
>
>                 Key: UIMA-1630
>                 URL: https://issues.apache.org/jira/browse/UIMA-1630
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> There seems to be a synchronization problem in BaseAnalysisEngineController 
> leading to the exception like this:
> Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
>   at java.util.ArrayList.RangeCheck(ArrayList.java:547)
>   at java.util.ArrayList.get(ArrayList.java:322)
>   at 
> org.apache.uima.aae.controller.BaseAnalysisEngineController.stop(BaseAnalysisEngineController.java:1741)
>   at 
> org.apache.uima.aae.controller.BaseAnalysisEngineController.stop(BaseAnalysisEngineController.java:1707)
>   at 
> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.stop(AggregateAnalysisEngineController_impl.java:2753)
>   at 
> org.apache.uima.aae.controller.BaseAnalysisEngineController.terminate(BaseAnalysisEngineController.java:1967)
>   at 
> org.apache.uima.aae.controller.BaseAnalysisEngineController.terminate(BaseAnalysisEngineController.java:1940)
>   at 
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.initializeContainer(SpringContainerDeployer.java:313)
>   at 
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy(SpringContainerDeployer.java:390)
>   ... 7 more
> The aggregate controller attempts to stop its colocated delegates and fails 
> with IndexOutOfBounds. It looks like one thread is trying to stop, while 
> another is cleaning up a HashMap. Need to synchronize these activities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to