Re: NullPointerException in FileInputStreamCache

2014-02-13 Thread Franz Paul Forsthofer
Hi, this is a known issue see https://issues.apache.org/jira/browse/CAMEL-7055 and is fixed in 2.12.3 Regards Franz On Thu, Feb 13, 2014 at 5:03 AM, Rural Hunter wrote: > Hi, > > I'm using Camel 2.12.2 and enabled stream caching with this code: > context.setStreamCaching(true); > > Sometimes I

Re: NullPointerException in FileInputStreamCache

2014-02-13 Thread Aki Yoshida
it looks life the stream has been closed and thus destroyed but it was re-used. For the dev community, I think camel's CachedOutputStream is hard to use as it targets for a single owner usage compared to cxf's one which does reference counting for opened connections to support multiple threads rea

Re: NullPointerException in FileInputStreamCache

2014-02-13 Thread Rural Hunter
The message is quite big comparing with others not causing problem. 于 2014/2/13 17:00, Claus Ibsen 写道: btw any idea of the size of the message when you hit that NPE? Are the message big, or small? Mind the stream cache has a overflow to disk for bigger messages. I suspect the NPE is when a stre

Re: NullPointerException in FileInputStreamCache

2014-02-13 Thread Claus Ibsen
btw any idea of the size of the message when you hit that NPE? Are the message big, or small? Mind the stream cache has a overflow to disk for bigger messages. I suspect the NPE is when a stream overflows from memory to disk, and somewhere on the way the temporary file to use for disk overflow is

Re: NullPointerException in FileInputStreamCache

2014-02-13 Thread Rural Hunter
It's like this: from(NEW_QUEUE).unmarshal().json(JsonLibrary.Gson, IndexDoc.class) .process(new Processor1()) .process(new Processor2()) .process(new Processor3()) .process(new Processor4()) .process(new Processor5()) .process(new Processor6()).wireTap(MY_STORE) .marshal().json(JsonLibrary.Gson).t

Re: NullPointerException in FileInputStreamCache

2014-02-12 Thread Claus Ibsen
Hi Can you post your Camel route? On Thu, Feb 13, 2014 at 5:03 AM, Rural Hunter wrote: > Hi, > > I'm using Camel 2.12.2 and enabled stream caching with this code: > context.setStreamCaching(true); > > Sometimes I got NullPointerException related to stream cache: > > Stacktrace >