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

Burn Lewis resolved UIMA-5058.
------------------------------
    Resolution: Fixed
      Assignee: Burn Lewis

Check that each new Type/TypePriority/FsIndex already exists in the 
already-committed typesystem.  Include the "name" of the first failing item 
found in the error msg. e.g. JUnit tests report:

Expected exception: org.apache.uima.UIMARuntimeException: Illegal adding of 
additional MetaData after CASes have been defined.
  Type: 
TestType2@file:/home/burn/Apache/uimaj/uimaj-core/target/test-classes/org/apache/uima/resource/metadata/impl/TypeSystemImportedByName2.xml
  Likely cause is the reuse of a Resource Manager object for a different 
pipeline, after it has already been initialized.

Expected exception: org.apache.uima.UIMARuntimeException: Illegal adding of 
additional MetaData after CASes have been defined.
  TypePriority: [TestType2, 
NamedEntity]@file:/home/burn/Apache/uimaj/uimaj-core/target/test-classes/TextAnalysisEngineImplTest/MultipleAeTest3.xml
  Likely cause is the reuse of a Resource Manager object for a different 
pipeline, after it has already been initialized.

Expected exception: org.apache.uima.UIMARuntimeException: Illegal adding of 
additional MetaData after CASes have been defined.
  FsIndex: 
AnnotationSetIndex@file:/home/burn/Apache/uimaj/uimaj-core/target/test-classes/TextAnalysisEngineImplTest/MultipleAeTest4.xml
  Likely cause is the reuse of a Resource Manager object for a different 
pipeline, after it has already been initialized.

> Scaled out pipelines can falsely trigger the error: Illegal adding of 
> additional MetaData after CASes have been defined
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-5058
>                 URL: https://issues.apache.org/jira/browse/UIMA-5058
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.8.1SDK
>            Reporter: Burn Lewis
>            Assignee: Burn Lewis
>             Fix For: 2.9.0SDK
>
>
> When UIMA-AS scales out a synchronous UIMA pipeline it sequentially creates 
> separate AEs in separate threads, sharing the resource manager.  Creation of 
> the 2nd (identical) AE will fail with "Illegal adding of additional MetaData 
> after CASes have been defined" if a descriptor imports 2 type-system files, 
> one of which is included in the other.  The check fails to recognize that the 
> types loaded by the 2nd AE are already in the resource manager because of the 
> way type-systems are cached.



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

Reply via email to