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

Restlet contract for RestConsumerFactory does not start the Endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.19.0
    • None
    • camel-restlet
    • None
    • Unknown

    Description

      As uncovered in CAMEL-10935 the change introduced in CAMEL-10928 failed two tests.

      The root cause for the test failure was that the Endpoint created at RestletComponent::createConsumer is not started, which leads to NullPointerException at RestletConsumer:65 as the restletBinding of the RestletEndpoint is created on Endpoint start.

      The reason tests originally passed is because both RestletConsumer and RestletProducer used the same Endpoint originally created and started by the RestletProducer.

      CAMEL-10928 changed the Endpoint parameter restletMethods to restletMethod for the RestletProducer whilst the RestletConsumer is using restletMethods, this results in differing Endpoint URIs which results in not getting the same Endpoint in the RestletConsumer as in RestletProduicer.

      Attachments

        Issue Links

          Activity

            People

              zregvart Zoran Regvart
              zregvart Zoran Regvart
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: