You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/03/28 08:25:00 UTC

[jira] [Commented] (CAMEL-12410) No type converter from java.lang.String to java.math.BigInteger required for firstIndex

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

Claus Ibsen commented on CAMEL-12410:
-------------------------------------

The firstIndex is 0 by default, so you dont need to set it to 0 as well. But yeah if you set it to some other value then there is no type converter.

 

> 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)