camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-993) NPE in TraceFormatter
Date Tue, 09 Jun 2009 06:18:35 GMT

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

Claus Ibsen commented on CAMEL-993:
-----------------------------------

Thanks Robert for reporting. I have fixed the NPE in 1.x. Will be in the next Camel release
1.6.2

> NPE in TraceFormatter
> ---------------------
>
>                 Key: CAMEL-993
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-993
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Vadim Chekan
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.5.0, 1.6.2
>
>
> This configuration causes NPE:
> {code}
> 		from("timer://kickoff_5?period=10000").
> 		setHeader("a").constant("aa").setBody().constant("a b c a_1 b_1").
> 		splitter(body().tokenize(" ")).
> 		setHeader("aggreagation_header").body().
> 		aggregator(header("aggreagation_header")).
> 		to("mock:out");
> {code}
> {code}
> 2008-10-17 07:47:11,321 [ Polling Thread] DEBUG DefaultAggregationCollection   - put
exchange:Exchange[Message: null] for key:null
> 2008-10-17 07:47:12,237 [ Polling Thread] ERROR Aggregator                     - 
> 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)
> 	at org.apache.camel.processor.Logger.logMessage(Logger.java:219)
> 	at org.apache.camel.processor.Logger.process(Logger.java:124)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.logException(TraceInterceptor.java:119)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:87)
> 	at org.apache.camel.processor.BatchProcessor.processExchange(BatchProcessor.java:190)
> 	at org.apache.camel.processor.BatchProcessor.processBatch(BatchProcessor.java:168)
> 	at org.apache.camel.processor.BatchProcessor.run(BatchProcessor.java:68)
> 	at java.lang.Thread.run(Thread.java:619)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message