Viachaslau Tsikhanovich created CAMEL-12410:
-----------------------------------------------
Summary: 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
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)