-
Notifications
You must be signed in to change notification settings - Fork 192
Spring Data Couchbase with @Query and Pageable / Sort throwing ArrayIndexOutOfBoundsException - PagingAndSortingRepository, CouchbaseRepository #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
StringBasedN1qlQueryParser needs to also include Pageable and Sort as parameters (the iterator only provides bindable parameters).
The execution of pageable string-n1ql queries needs additional work. |
Same issue exists for ReactiveSortingRepository (tested with Couchbase) . The Issue did not exist until I upgraded spring libraries to work with Couchbase SDK 3 (Spring Data Couchbase 4). Upon upgrade existing code stopped working. |
…#1197) Closes #1155. Co-authored-by: mikereiche <[email protected]>
I am trying to execute custom query with @query annotation which is connecting to couchbase and I am expecting paging response.
I am facing this issue in my project, I have only provided a sample application code
Controller
Repository
Get Call
I am getting
And I am able to get response for this method call
So problem comes when I have @query annotated with pageable like below
This issue is occurs with Sort as well.
Class ExtensionAwareQueryMethodEvaluationContextProvider Method collectVariables
My dependency tree
Is this an issue or am I missing something here ?
Stack overflow
https://stackoverflow.com/questions/68284671/couchbase-spring-jpa-with-query-and-pageable-throwing-arrayindexoutofboundsexce
https://stackoverflow.com/questions/66151373/spring-data-couchbase-getting-java-lang-arrayindexoutofboundsexception-index
Thanks.
The text was updated successfully, but these errors were encountered: