Uploaded image for project: 'Kotlin Couchbase Client'
  1. Kotlin Couchbase Client
  2. KCBC-138

MismatchedInputException error while handling query results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 0

    Description

      There's a FIT test that's regularly, possibly always, failing against Kotlin, and against multiple cluster versions (has been seen for sure against 6.6 and 7.0).

      On the driver side we see the performer or SDK has hit a MismatchedInputException, rather than returning the single result expected:

      Wanted results to contain only meta().id: 8860d900-44d3-4b6b-97b8-4390bee5e686
      results:
      exception {
        couchbase {
          name: "MapperException"
          cause {
            other {
              name: "MismatchedInputException"
              serialized: "com.couchbase.client.core.deps.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.LinkedHashMap` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (\'{\"id\":\"json\"}\')\n at [Source: (byte[])\"\"{\\\"id\\\":\\\"json\\\"}\"\"; line: 1, column: 1]"
            }
          }
          serialized: "com.couchbase.client.core.json.MapperException: Could not decode from JSON: \"{\\\"id\\\":\\\"json\\\"}\""
        }
      }
      

      The test is com.couchbase.client.query.QueryOptionTest.performsNonAdhocQuery. I've been unable to reproduce this locally though, including when using a 6.6 cluster. I also can't see anything pertinent in the performer logs on CI.

      A recent CI failure is here.

      Attachments

        Issue Links

          For Gerrit Dashboard: KCBC-138
          # Subject Branch Project Status CR V

          Activity

            People

              david.nault David Nault
              graham.pople Graham Pople
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty