Viachaslau Tsikhanovich reopened CAMEL-12410:

 for conversion to BigInteger doesn't work correctly. For example, for input 
string "14350442579497085228" it first will try to convert to Long and fail 
with NumberFormatException:
Caused by: java.lang.NumberFormatException: For input string: 
      at java.lang.Long.parseLong(Long.java:592)
      at java.lang.Long.valueOf(Long.java:803)

> 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

Reply via email to