Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12410

No type converter from java.lang.String to java.math.BigInteger required for firstIndex

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.21.0
    • Fix Version/s: 2.21.3, 2.22.1, 2.23.0
    • Component/s: camel-consul
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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:

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                Viachaslau.Tsikhanovich Viachaslau Tsikhanovich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: