You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2019/12/17 12:40:00 UTC
[jira] [Created] (UIMA-6162) Sofa not found when deserializing CAS
Richard Eckart de Castilho created UIMA-6162:
------------------------------------------------
Summary: Sofa not found when deserializing CAS
Key: UIMA-6162
URL: https://issues.apache.org/jira/browse/UIMA-6162
Project: UIMA
Issue Type: Bug
Components: UIMA
Affects Versions: 3.1.1SDK
Reporter: Richard Eckart de Castilho
Attachments: admin.ser
I suspect there could be an issue in `BinaryCasSerDes`.
When deserializing the attached file `admin.ser`, I get this stack trace:
{noformat}
Caused by: java.lang.ClassCastException: class org.apache.uima.jcas.tcas.Annotation cannot be cast to class org.apache.uima.jcas.cas.Sofa (org.apache.uima.jcas.tcas.Annotation and org.apache.uima.jcas.cas.Sofa are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4593ff34)at org.apache.uima.cas.impl.BinaryCasSerDes.makeSofaFromHeap(BinaryCasSerDes.java:1823) ~[uimaj-core-3.1.1.jar:3.1.1]at org.apache.uima.cas.impl.BinaryCasSerDes.getSofaFromAnnotBase(BinaryCasSerDes.java:1817) ~[uimaj-core-3.1.1.jar:3.1.1]at org.apache.uima.cas.impl.BinaryCasSerDes.createFSsFromHeaps(BinaryCasSerDes.java:1701) ~[uimaj-core-3.1.1.jar:3.1.1]at org.apache.uima.cas.impl.BinaryCasSerDes.reinit(BinaryCasSerDes.java:259) ~[uimaj-core-3.1.1.jar:3.1.1]at org.apache.uima.cas.impl.BinaryCasSerDes.reinit(BinaryCasSerDes.java:328) ~[uimaj-core-3.1.1.jar:3.1.1]at org.apache.uima.cas.impl.Serialization.deserializeCASComplete(Serialization.java:129) ~[uimaj-core-3.1.1.jar:3.1.1]{noformat}
I set a breakpoint to BinaryCasSerDes:1608 which is a for loop iterating over the heap. Apparently, the first feature structure that is encountered is an annotation type which is NOT the sofa. Then in line 1700, the deserializer tries to resolve the sofa for this annotation but fails because it has not yet been deserialized.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)