Hi,
I need help in reproducing this.
I added a test case that set the document text before serialization to a text
string, before serializing. I then did a serialize / deserialize, and checked
the getDocumentText returned the right string.
In the original CAS, I did:
casSrc.setDocumentText("some test text");
In your failing case, did you set up the CAS with a document text, and if so,
how?
-Marshall
On 7/4/2013 4:20 PM, Richard Eckart de Castilho wrote:
> Hi Marshall,
>
> I'd like to try out the new CAS (de)serialization stuff you did recently.
>
> I try serialization with three approaches:
>
> case 0: Serialization.serializeCAS(aJCas.getCas(), docOS); break;
> case 4: Serialization.serializeWithCompression(aJCas.getCas(), docOS); break;
> case 6: Serialization.serializeWithCompression(aJCas.getCas(), docOS,
> aJCas.getTypeSystem()); break;
>
> Then I try to load the data back into a CAS (within a reader component) using
>
> Serialization.deserializeCAS(aCAS, is);
>
> For cases 0 and 4, this appears to work. But in case 6, the document text is
> <null> after
> deserializing.
>
> Apparently, I'm doing something wrong - but I have no idea what. Can you give
> me a hint?
>
> -- Richard
>
>
>