[ https://issues.apache.org/jira/browse/UIMA-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239427#comment-17239427 ]
Richard Eckart de Castilho commented on UIMA-6295: -------------------------------------------------- I have enabled FS creation tracking and ran both versions of the test (XMI and COMPRESSED_FILTERED_TSI - I used TSI instead of TS). The non-XMI test fails. "create" runs just the part of the test which initialize the CAS, "save" runs the serialization and "load" the deserialization. I hope I didn't make a copy-paste mistake when putting the logs here. Enable this type of logging via {{-Duima.trace_fs_creation_and_updating=true}}. *TSI* {noformat} ----- create cr: c:1 v:base i:1 t:Sofa sofaNum:1 sofaID:_InitialView mimeType:null sofaString:Hell.World cr: c:1 v:_In.View i:8 t:Docu.ation sofa:Sofa:1 begin:0 end:11 language:x-uns.cified up: c:1 v:base i:1 t:Sofa mimeType:text cr: c:1 v:_In.View i:13 t:Cust.sTest sofa:Sofa:1 begin:0 end:11 cr: c:1 v:_In.View i:18 t:FeatureMap up: c:1 v:_In.View i:13 t:Cust.sTest features:Fe.ap:18 cr: c:1 v:_In.View i:20 t:Feat.ecord name:m1 value:0.1 ----- save CAS cr: c:1 v:_In.View i:23 t:Feat.ecord name:m2 value:0.2 cr: c:1 v:_In.View i:26 t:FSArray l:2 up: c:1 v:_In.View i:18 t:FeatureMap features:FS.ay:26 cr: c:1 v:_In.View i:30 t:FSArray l:2 ----- load CAS cr: c:1 v:base i:1 t:Sofa sofaNum:1 sofaID:_InitialView mimeType:null mimeType:text sofaArray:null sofaString:Hell.World cr: c:1 v:_In.View i:8 t:Docu.ation sofa:Sofa:1 begin:0 end:11 language:x-uns.cified cr: c:1 v:_In.View i:13 t:Cust.sTest sofa:Sofa:1 begin:0 end:11 cr: c:1 v:base i:18 t:FeatureMap features:null cr: c:1 v:base i:20 t:Feat.ecord name:m1 value:0.1 cr: c:1 v:base i:23 t:Feat.ecord name:m2 value:0.2 cr: c:1 v:base i:26 t:FSArray l:2 up: c:1 v:_In.View i:13 t:Cust.sTest features:Fe.ap:18 {noformat} *XMI* {noformat} ----- create cr: c:1 v:base i:1 t:Sofa sofaNum:1 sofaID:_InitialView mimeType:null sofaString:Hell.World cr: c:1 v:_In.View i:8 t:Docu.ation sofa:Sofa:1 begin:0 end:11 language:x-uns.cified up: c:1 v:base i:1 t:Sofa mimeType:text cr: c:1 v:_In.View i:13 t:Cust.sTest sofa:Sofa:1 begin:0 end:11 cr: c:1 v:_In.View i:18 t:FeatureMap up: c:1 v:_In.View i:13 t:Cust.sTest features:Fe.ap:18 cr: c:1 v:_In.View i:20 t:Feat.ecord name:m1 value:0.1 ----- save CAS cr: c:1 v:_In.View i:23 t:Feat.ecord name:m2 value:0.2 cr: c:1 v:_In.View i:26 t:FSArray l:2 ----- load CAS cr: c:1 v:base i:1 t:Sofa sofaNum:1 sofaID:_InitialView mimeType:text mimeType:text sofaString:Hell.World cr: c:1 v:base i:8 t:FeatureMap cr: c:1 v:base i:10 t:Feat.ord[] l:2 up: c:1 v:base i:8 t:FeatureMap features:Fe.[]:10 cr: c:1 v:base i:14 t:Feat.ecord name:m1 value:0.1 cr: c:1 v:base i:17 t:Feat.ecord name:m2 value:0.2 cr: c:1 v:_In.View i:20 t:Docu.ation sofa:Sofa:1 begin:0 end:0 language:x-uns.cified begin:0 end:11 language:x-uns.cified cr: c:1 v:_In.View i:25 t:Cust.sTest sofa:Sofa:1 begin:0 end:11 features:Fe.ap:8 {noformat} > CAS transportable Java object not serialised or deserialised with compressed > binary > ----------------------------------------------------------------------------------- > > Key: UIMA-6295 > URL: https://issues.apache.org/jira/browse/UIMA-6295 > Project: UIMA > Issue Type: Bug > Components: uimaj > Affects Versions: 3.1.1SDK > Environment: [^cas-transported-java-objects.zip] > Reporter: Mario Juric > Priority: Major > Attachments: cas-transported-java-objects.zip > > > I have been experimenting with wrapping a CAS transportable Java HashMap > inside an UIMA type, and I found that the internal UIMA FSArray is either not > stored or restored, although _save_to_cas_data and _init_from_cas_data of > UimaSerializableFSs are called during serialisation and deserialisation of a > compressed CAS binary. I have not yet been able to pinpoint where it goes > wrong, serialisation or deserialisation, but I attached a simple Maven > project with a test that reproduces the problem. Notice that the test that > uses XMI succeeds, while the one that uses > SerialFormat.COMPRESSED_FILTERED_TS fails. > [^cas-transported-java-objects.zip] -- This message was sent by Atlassian Jira (v8.3.4#803005)