[ 
https://issues.apache.org/jira/browse/CAMEL-10192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396388#comment-15396388
 ] 

ASF GitHub Bot commented on CAMEL-10192:
----------------------------------------

GitHub user asegarra opened a pull request:

    https://github.com/apache/camel/pull/1089

    CAMEL-10192: Fix option jobFromHeader data type that was causing exception 
to be thrown if used.  

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/asegarra/camel CAMEL-10192

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1089.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1089
    
----
commit 6d70013dd12e6596eb8d315c3cc0e3ab9e4faa1d
Author: asegarra <[email protected]>
Date:   2016-07-27T21:07:31Z

    CAMEL-10192: Fix option jobFromHeader data type that was causing exception 
to be thrown if used

----


> Specifying jobFromHeader in URI option throws exception
> -------------------------------------------------------
>
>                 Key: CAMEL-10192
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10192
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-batch
>    Affects Versions: 2.17.2
>            Reporter: Angel Segarra
>
> 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://responseFileJob?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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to