You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/04/10 09:16:16 UTC
[jira] [Updated] (CAMEL-7351) NPE in CamelInternalProcessor
[ https://issues.apache.org/jira/browse/CAMEL-7351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-7351:
-------------------------------
Fix Version/s: 2.14.0
2.13.1
2.12.4
> 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)