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

Marshall Schor resolved UIMA-2419.
----------------------------------

    Resolution: Won't Fix

For reasons discussed in the comments.  
                
> Initial view for sofa unaware components not automatically created
> ------------------------------------------------------------------
>
>                 Key: UIMA-2419
>                 URL: https://issues.apache.org/jira/browse/UIMA-2419
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.4.0SDK
>            Reporter: Richard Eckart de Castilho
>              Labels: patch
>         Attachments: UIMA-2419-REC-20120609.patch
>
>
> When running a sofa-unaware component in an aggregate analysis engine, the 
> initial view for the component to operate on is not automatically created if 
> it does not exist. This causes a CASRuntimeException, here "No sofaFS with 
> name A found.".
> {noformat}
> org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator 
> processing failed.    
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:394)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:298)
>       at 
> org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:568)
>       at 
> org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:410)
>       at 
> org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:343)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:265)
>       at 
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.processAndOutputNewCASes(AnalysisEngineImplBase.java:340)
>          ...
> Caused by: org.apache.uima.cas.CASRuntimeException: No sofaFS with name A 
> found.
>       at org.apache.uima.cas.impl.CASImpl.getSofa(CASImpl.java:661)
>       at org.apache.uima.cas.impl.CASImpl.getView(CASImpl.java:2658)
>       at org.apache.uima.impl.Util.getStartingView(Util.java:46)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:349)
>       ... 31 more
> {noformat}
> I'd consider this a bug, because a sofa-unaware component cannot be expected 
> to create a view itself. If the sofa-unaware component is the first one in an 
> aggregate, e.g. acting as a reader, then there is also no other component to 
> create the view before.
> If the initial view of a component it is mapped to does not exist, it should 
> be the task of the UIMA framework to create this view. 
> See also CPE ArtifactProducer:481 (UIMA 2.4.0).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to