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

2017-02-09 Thread Marshall Schor
one thing that would help track this down is a small isolated test case. Do you think uima-as is needed? I'm wondering if a simple test case which generated 17 views and then tried to serialize would show the failure... If you could supply a small test case that showed the failure so we could rep

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

2017-02-09 Thread Marshall Schor
The line throwing the null pointer exception is : cas.getView(sofaNum).getSofaRef() So the NPE is either the cas is null, or the getView(sofaNum) is returning null. I'm not sure what the best way is to debug this... -Marshall On 2/9/2017 12:42 PM, nelson rivera wrote: > I have a aggregate

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

2017-02-09 Thread nelson rivera
I have a aggregate service uima-as, at the end of aggregate the cas to return is composed of as many views as the number of input files, each view with annotations of processing. With a number of input documents less than 15 the processing is successful always, but if the number of documents is gre