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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.23.0
    • 2.23.1, 2.24.0
    • camel-jbpm
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: