views:

77

answers:

0

Defined routes:

from("direct:friends").process({exchange -> exchange.'out'.body = exchange.'in'.body.profile} as Processor).splitter(body(List), true).to("activemq:profiles")

from("direct:profiles").process({exchange -> exchange.'out'.body = exchange.'in'.body.friends} as Processor).to("activemq:profiles")

Fails with some: java.lang.NullPointerException: Cannot get property 'in' on null object How could it happen that exchange is null? Or that's some Groovy problem?