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

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

Faisal Feroz created UIMA-4199:
----------------------------------

             Summary: 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


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)