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

"Failed to access the view" error when querying a view with reduce


    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1-dp4
    • Fix Version/s: None
    • Component/s: Core
    • Security Level: Public
    • Labels:


      Attempting to make a call to CouchbaseClient.query(view, query) with a view that has a reduce (even just "_count") results in the following exception when results are returned:

      java.lang.RuntimeException: Failed to access the view
      at com.couchbase.client.CouchbaseClient.query(CouchbaseClient.java:634)

      Worth noting:

      • If the query returns no results (ViewResponse.size() returns 0), you do not get the exception...
      • If the reduce method is removed from the view, everything works fine. However, using query.setReduce(false) does not work.
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.


        ctash_jt Chris Tashjian created issue -
        daschl Michael Nitschinger made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        daschl Michael Nitschinger made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        ingenthr Matt Ingenthron made changes -
        Workflow jira [ 21845 ] Couchbase SDK Workflow [ 38440 ]


          • Assignee:
            daschl Michael Nitschinger
            ctash_jt Chris Tashjian
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes