Re: Many views in the cas to serialize cause java.lang.NullPointerException in service uima-as

2017-02-10 Thread Jaroslaw Cwiklik
Just a bit more evidence. The caller of the gerSofaAddr() public void writeViewsCommons() throws Exception { // Get indexes for each SofaFS in the CAS int numViews = cas.getBaseSofaCount(); for (int sofaNum = 1; sofaNum <= numViews; sofaNum++) { FSIndexRepositoryImpl

Re: Many views in the cas to serialize cause java.lang.NullPointerException in service uima-as

2017-02-10 Thread Jaroslaw Cwiklik
Is this a primitive (single-threaded) aggregate or async (multi-threaded)? If async, try to simplify and run primitive aggregate with scaleout=1. The CAS does not seem to be null in this case. The caller of the getSerializedCas() checks for null. The code dies here: Caused by: java.lang.NullPoint

Re: Many views in the cas to serialize cause java.lang.NullPointerException in service uima-as

2017-02-10 Thread nelson rivera
Hi, The first thing I did was these tests,i made a simple test case that create a Cas with 17 views and then serialize using XmiCasSerializer.serialize(newJCas.getCas(), fis) and serializes correctly. Also i made other test, initialize the same AE but of local way with UIMA API and process the sam