[
https://issues.apache.org/jira/browse/UIMA-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281641#comment-13281641
]
Michael Payne commented on UIMA-2406:
-------------------------------------
I understand we are using 2.3.1.
> 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
>
> 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