Couchbase Java Client

paginatedQuery throws NoSuchElementException and NPE