You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2015/01/24 13:46:34 UTC

[jira] [Resolved] (UIMA-4199) AnalysisEngineFactory doesn't pass AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS parameter correctly to UIMAFactory when creating a new engine

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

Richard Eckart de Castilho resolved UIMA-4199.
----------------------------------------------
    Resolution: Not a Problem

> AnalysisEngineFactory doesn't pass AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS parameter correctly to UIMAFactory when creating a new engine
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-4199
>                 URL: https://issues.apache.org/jira/browse/UIMA-4199
>             Project: UIMA
>          Issue Type: Bug
>          Components: uimaFIT
>    Affects Versions: 2.1.0uimaFIT
>            Reporter: Faisal Feroz
>            Priority: Blocker
>
> When {{org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine(Class<? extends AnalysisComponent>, Object...)}} is called for creating a multi-threaded engine instance by passing in AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS and some integer value in configurationData. It creates AnalysisEngineDescription object from the data and calls {{org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine(AnalysisEngineDescription, Object...)}} method which passes in null in {{aAdditionalParameters}} when calling {{UIMAFramework.produceAnalysisEngine}}. The respective method looks for {{AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS}} as per the following code:
> {code:java}
> boolean multiprocessing = (aAdditionalParams != null)
>             && aAdditionalParams.containsKey(AnalysisEngine.PARAM_NUM_SIMULTANEOUS_REQUESTS);
> {code}
> which is never found and the required {{MultiprocessingAnalysisEngine_impl}} is never created.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)