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

Marshall Schor resolved UIMA-2406.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.1SDK
         Assignee: Marshall Schor
    
> CasToInlineXml.generateXML throws ClassCastException when JCas is initialized 
> in CAS
> ------------------------------------------------------------------------------------
>
>                 Key: UIMA-2406
>                 URL: https://issues.apache.org/jira/browse/UIMA-2406
>             Project: UIMA
>          Issue Type: Bug
>    Affects Versions: 2.3.1AS
>            Reporter: Michael Payne
>            Assignee: Marshall Schor
>             Fix For: 2.4.1SDK
>
>
> I get the following exception when calling getJCas() on a CAS and passing the 
> CAS to CasToInlineXml.generateXML().  If I pass in a CAS before calling 
> getJCas() it works fine.
> ..java.lang.ClassCastException: org.apache.uima.jcas.cas.StringArray 
> incompatible with org.apache.uima.cas.impl.StringArrayFSImpl
>       at 
> org.apache.uima.util.CasToInlineXml.getFeatureAttributes(CasToInlineXml.java:251)
>       at 
> org.apache.uima.util.CasToInlineXml.generateXML(CasToInlineXml.java:159)
>       at 
> org.apache.uima.util.CasToInlineXml.generateXML(CasToInlineXml.java:95)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to