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

AbstractCamelWorkItemHandler init fails when WIH is loaded before CamelContext is created.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.23.0
    • Fix Version/s: 2.23.1, 2.24.0
    • Component/s: camel-jbpm
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When the AbstractCamelWorkItemHandler is created before the referenced CamelContext is created and registered, deployment of a KJAR fails with an IllegalArgumentException.

      This can happen when the deployment uses a combination of a Singleton RuntimeStrategy and a Deployment-scoped CamelContext. This is due to the fact that the jBPM KIE-Server extension runs after the jBPM extension.

      In such a situation we need to defer the creation of the ProducerTemplate until the first call to WIH.execute.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                ddoyle Duncan Doyle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: