camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard O'Sullivan (JIRA)" <>
Subject [jira] [Created] (CAMEL-7351) NPE in CamelInternalProcessor
Date Tue, 08 Apr 2014 14:06:21 GMT
Richard O'Sullivan created CAMEL-7351:

             Summary: NPE in CamelInternalProcessor
                 Key: CAMEL-7351
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.12.2
         Environment: CamelContext executing in
Deployed to apache-tomcat-7.0.47
Hosted on Ubuntu Linux 13.10
            Reporter: Richard O'Sullivan
            Priority: Minor

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.

public BacklogTracerAdvice
    Queue<DefaultBacklogTracerEventMessage> queue, 
    BacklogTracer backlogTracer,
    ProcessorDefinition<?> processorDefinition, 
    ProcessorDefinition<?> routeDefinition, 
    boolean first

522		String routeId = routeDefinition.getId();

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
    at o.a.c.p.CamelInternalProcessor$BacklogTracerAdvice.before(
    at o.a.c.p.CamelInternalProcessor.process(
    at o.a.c.p.FatalFallbackErrorHandler.process(
    at o.a.c.p.RedeliveryErrorHandler.deliverToFailureProcessor(
    at o.a.c.p.RedeliveryErrorHandler.process(
    at o.a.c.p.CamelInternalProcessor.process(
    at o.a.c.p.Pipeline.process(
    at o.a.c.p.Pipeline.process(
    at o.a.c.p.ChoiceProcessor.process(

This message was sent by Atlassian JIRA

View raw message