[
https://issues.apache.org/jira/browse/CAMEL-7146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Burkard updated CAMEL-7146:
----------------------------------
Component/s: (was: camel-leveldb)
camel-core
Description:
A Camel aggregator with persistence repository cannot have a completionSize of
1. If this is configured, every message produces a NPE with the attached
stacktrace.
I have also attached a small example project that shows the Exception. As soon
as the completionSize is > 1, it runs fine.
This is just a minor flaw, since I cannot think about a really useful case with
completionSize 1, but it worked with earlier versions of Camel.
As an alternative (if completionSize 1 should not be used), Camel could throw
an error during Context startup when completionSize < 2.
was:
A Camel aggregator with persistence repository of type LevelDB cannot have a
completionSize of 1. If this is configured, every message produces a NPE with
the attached stacktrace.
I have also attached a small example project that shows the Exception. As soon
as the completionSize is > 1, it runs fine.
This is just a minor flaw, since I cannot think about a really useful case with
completionSize 1, but it technically works with other repository types.
As an alternative (if completionSize 1 should not be used), Camel could throw
an error during Context startup when completionSize < 2.
Summary: NPE in Aggregator when completionSize = 1 (was: NPE in
LevelDB component when aggregator completionSize = 1)
> NPE in Aggregator when completionSize = 1
> -----------------------------------------
>
> Key: CAMEL-7146
> URL: https://issues.apache.org/jira/browse/CAMEL-7146
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.12.2
> Reporter: Stefan Burkard
> Priority: Trivial
> Labels: aggregator
> Attachments: Camel-7146-example.tgz, Camel-7146-stacktrace.txt
>
>
> A Camel aggregator with persistence repository cannot have a completionSize
> of 1. If this is configured, every message produces a NPE with the attached
> stacktrace.
> I have also attached a small example project that shows the Exception. As
> soon as the completionSize is > 1, it runs fine.
> This is just a minor flaw, since I cannot think about a really useful case
> with completionSize 1, but it worked with earlier versions of Camel.
> As an alternative (if completionSize 1 should not be used), Camel could throw
> an error during Context startup when completionSize < 2.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)