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 <ruralhun...@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?