[
https://issues.apache.org/jira/browse/CAMEL-12410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417086#comment-16417086
]
Viachaslau Tsikhanovich commented on CAMEL-12410:
-------------------------------------------------
Thank you for your response. 0 was used just as an example of the issue.
Also I have doubts if firstIndex should have a default value.Seems it should be
null to avoid filtering during the first grab of events -
https://github.com/apache/camel/blob/camel-2.21.0/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/ConsulEventConsumer.java#L117
> No type converter from java.lang.String to java.math.BigInteger required for
> firstIndex
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-12410
> URL: https://issues.apache.org/jira/browse/CAMEL-12410
> Project: Camel
> Issue Type: Bug
> Components: camel-consul
> Affects Versions: 2.21.0
> Reporter: Viachaslau Tsikhanovich
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.21.1, 2.22.0
>
>
> After CAMEL-12065 fix the type of _firstIndex_ parameter became
> _java.math.BigInteger_.
> However _org.apache.camel.impl.converter.OptimisedTypeConverter_ has no
> converter from java.lang.String to java.math.BigInteger.
> As result _firstIndex_ parameter fails to be set and enpoint creation fails
> with the following exception:
> {quote}
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
> consul://event?firstIndex=0&key=EVENT_ID1&url=http%3A%2F%2Fconsul-client%3A8500
> due to: Could not find a suitable setter for property: firstIndex as there
> isn't a setter method with same type: java.lang.String nor type conversion
> possible: No type converter available to convert from type: java.lang.String
> to the required type: java.math.BigInteger with value 0
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)