Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7146

NPE in Aggregator when completionSize = 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.12.2
    • 2.12.3, 2.13.0
    • camel-core
    • Unknown

    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.

      Attachments

        1. Camel-7146-example.tgz
          4 kB
          Stefan Burkard
        2. Camel-7146-stacktrace.txt
          5 kB
          Stefan Burkard

        Activity

          People

            davsclaus Claus Ibsen
            sburkard Stefan Burkard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: