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

adviceWith() just needs to start the route when the camel context is started

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.5, 2.10.3
    • 2.9.6, 2.10.4, 2.11.0
    • camel-core
    • None
    • Unknown

    Description

      An user complains the adviceWith doesn't work well with the camel-http4 component[1].
      After digging the code a while, I found the NPE is thrown because the camel-http4 endpoint is created before camel-http4 component is started. It is caused by the adviceWith() try to start the route after it finished the work.

      We need to make sure the adviceWith doesn't start the route when the camel context is not started yet to avoid the NPE.

      [1]http://camel.465427.n5.nabble.com/Test-Intercept-with-adviceWith-and-http-td5723473.html

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: