[ 
https://issues.apache.org/jira/browse/CAMEL-7351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14012020#comment-14012020
 ] 

Niels Bertram commented on CAMEL-7351:
--------------------------------------

It also throws that exception when one configures a route with any of the 
interceptors, e.g.:

{code:java}
interceptFrom("direct:start")
  .process(new SomeProcessor());

from("direct:start")
  .routeId("some-route")
  .transacted("PROPAGATION_REQUIRED")
  .to("log:me")
{code}

> NPE in CamelInternalProcessor
> -----------------------------
>
>                 Key: CAMEL-7351
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7351
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.2
>         Environment: CamelContext executing in 
> https://github.com/hawtio/hawtio-camel-wiki
> Deployed to apache-tomcat-7.0.47
> Hosted on Ubuntu Linux 13.10
>            Reporter: Richard O'Sullivan
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.4, 2.13.1, 2.14.0
>
>
> Using Trace mode in Hawtio throws NPE when route uses <onException> to handle 
> a business exception. Trace mode is successful (no NPE) when the route does 
> not throw a business exception (i.e. route is successful).
> I suspect that the value of routeDefinition in BacklogTracerAdvice is null 
> when <onException> handles an exception.
> {code:java|title=CamelInternalProcessor$BacklogTracerAdvice}
> public BacklogTracerAdvice
> (
>     Queue<DefaultBacklogTracerEventMessage> queue, 
>     BacklogTracer backlogTracer,
>     ProcessorDefinition<?> processorDefinition, 
>     ProcessorDefinition<?> routeDefinition, 
>     boolean first
> )
> {code}
> {code:none}
> org.apache.camel.processor.CamelInternalProcessor
> 522           String routeId = routeDefinition.getId();
> {code}
> {code:none}
> 2014-04-08 09:15:24,036 ERROR {qtp1100200721-83}    
> [o.a.c.p.FatalFallbackErrorHandler]  \--> New exception on exchangeId: 
> ID-RICHAOSU-ULX1310-54949-1396894883751-56-12
> java.lang.NullPointerException
>     at 
> o.a.c.p.CamelInternalProcessor$BacklogTracerAdvice.before(CamelInternalProcessor.java:522)
>     at o.a.c.p.CamelInternalProcessor.process(CamelInternalProcessor.java:139)
>     at 
> o.a.c.p.FatalFallbackErrorHandler.process(FatalFallbackErrorHandler.java:42)
>     at 
> o.a.c.p.RedeliveryErrorHandler.deliverToFailureProcessor(RedeliveryErrorHandler.java:839)
>     at o.a.c.p.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:337)
>     at o.a.c.p.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
>     at o.a.c.p.Pipeline.process(Pipeline.java:118)
>     at o.a.c.p.Pipeline.process(Pipeline.java:80)
>     at o.a.c.p.ChoiceProcessor.process(ChoiceProcessor.java:111)
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to