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

Specifying jobFromHeader in URI option throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.0
    • 2.18.0
    • camel-spring-batch
    • None
    • Patch Available
    • Unknown

    Description

      Setting the jobFromHeader option in the URI throws exception.

      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: spring-batch://myJob?jobFromHeader= due to: Failed to resolve endpoint: spring-batch://myJob?jobFromHeader= due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[

      {jobFromHeader=}

      ]
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219) ~[camel-core-2.17.1.jar:2.17.1]
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069) ~[camel-core-2.17.1.jar:2.17.1]
      ... 31 common frames omitted

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              asegarra Angel Segarra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: