camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rural Hunter <ruralhun...@gmail.com>
Subject Re: NullPointerException in FileInputStreamCache
Date Thu, 13 Feb 2014 09:09:54 GMT
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 stream overflows from memory to disk, and
> somewhere on the way the temporary file to use for disk overflow is
> null.
>
> http://camel.apache.org/stream-caching
>
>
> On Thu, Feb 13, 2014 at 9:29 AM, Rural Hunter <ruralhunter@gmail.com> wrote:
>> 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).to(INDEX_QUEUE);
>> from(UPDATE_QUEUE).wireTap(INDEX_QUEUE)
>> .unmarshal().json(JsonLibrary.Gson, IndexDoc.class)
>> .to(MY_STORE);
>> from(STORE_QUEUE).unmarshal().json(JsonLibrary.Gson,
>> IndexDoc.class).to(MY_STORE);
>>
>> 于 2014/2/13 15:36, Claus Ibsen 写道:
>>
>>> Hi
>>>
>>> Can you post your Camel route?
>>>
>>>
>
>


Mime
View raw message