Re: java.lang.NullPointerException when running fast client

2012-02-09 Thread Spico Florin
On Thu, Feb 9, 2012 at 3:41 PM, Spico Florin spicoflo...@gmail.com wrote: Hello! My UIMA AS client is using UimaAsynchronousEngine for sending messages to a UIMA pipeline. If the process of sending is fast (with 100 ms delay or without any delay) the attached

Re: java.lang.NullPointerException when running fast client

2012-02-09 Thread Jaroslaw Cwiklik
Florin, your problem is that you are using one CAS instance with asynch sendCAS(). Your main() is calling sendCAS(CAS) where the CAS is being serialized. Serialization is an expensive operation and on a slow machine may exceed your 100ms sleep. While the CAS is being serialized you calling reset()