Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-250

ClassCast Exception when using durability against memcached bucket

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.1.7
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      Apparently trying to use these operations:
      CouchbaseClient.add(String key, int exp, String value, PersistTo req, ReplicateTo rep)

      Against a memcached bucket causes an exception even if "req" and "rep" are set to 0. From the user's perspective, they expect this to work. Is it a major undertaking to make the classes compatible from the client side, independent of the bucket types and then let the operation succeed/fail when it can or can't?

      java.lang.ClassCastException: com.couchbase.client.CouchbaseMemcachedConnection cannot be cast to com.couchbase.client.CouchbaseConnection
      at com.couchbase.client.CouchbaseClient.observePoll(CouchbaseClient.java:1708)
      at com.couchbase.client.CouchbaseClient.add(CouchbaseClient.java:1293)

      1. 1.1.6-sdk.log
        17 kB
        Deepti Dawar
      2. 1.1.5-sdk.log
        14 kB
        Deepti Dawar
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        pvkarthik Karthik PV added a comment -

        HI Michael. We are using 1.1.6 java client. Still it works with 2.2 and not with 2.1?

        Show
        pvkarthik Karthik PV added a comment - HI Michael. We are using 1.1.6 java client. Still it works with 2.2 and not with 2.1?
        Hide
        daschl Michael Nitschinger added a comment -

        No, this should not be the problem here, something else is going on.

        You need to upgrade to 1.1.7 to have this fixed!

        Although I'd recommend you to go straight to 1.2.2. which will be released this week.

        Show
        daschl Michael Nitschinger added a comment - No, this should not be the problem here, something else is going on. You need to upgrade to 1.1.7 to have this fixed! Although I'd recommend you to go straight to 1.2.2. which will be released this week.
        Hide
        pvkarthik Karthik PV added a comment -

        What's the latest stable version? Have a Go-Live this week and this is a potential SHOW-Stopper

        Show
        pvkarthik Karthik PV added a comment - What's the latest stable version? Have a Go-Live this week and this is a potential SHOW-Stopper
        Hide
        daschl Michael Nitschinger added a comment -

        as of now the latest stable is 1.2.1, but we'll release 1.2.2 this week.

        If you just want to fix this one issue go to 1.1.7

        Show
        daschl Michael Nitschinger added a comment - as of now the latest stable is 1.2.1, but we'll release 1.2.2 this week. If you just want to fix this one issue go to 1.1.7
        Hide
        pvkarthik Karthik PV added a comment -

        Thanks a lot Michael for the help and the super-quick response!

        Show
        pvkarthik Karthik PV added a comment - Thanks a lot Michael for the help and the super-quick response!

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes