Hi,
I tried to configure my Camel-Route with TraceInterceptor, but when I use it
I’m getting the Exception like:
java.lang.NullPointerException
at
org.apache.camel.processor.interceptor.TraceFormatter.getBreadCrumbID(TraceFormatter.java:150)
at
org.apache.camel.processor.interceptor.TraceFormatter.format(TraceFormatter.java:45)
at
org.apache.camel.processor.interceptor.TraceInterceptor.format(TraceInterceptor.java:94)
Without Tracer everything works just fine.
So I started to trace the problem myself, and found out that some Exchange
implementations like CxfExchange in it’s constructor doesn’t copy the
UnitOfWork of the previous Exchange. DefaultExchange does, for example!! I
was wondering why?? So after the (CXF)exchange comes through the pipeline it
has lost its UnitOfWork and TraceFormatter throws this NPE.
I’m using the Camel 1.5
Best regards,
Boris
--
View this message in context:
http://www.nabble.com/UnitOfWork-tp20829434s22882p20829434.html
Sent from the Camel - Users mailing list archive at Nabble.com.