java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null]

Spring JIRA | srikanth Hugar | 3 years ago
  1. 0

    spring-data-couchbase error while finding all documents with PageRequest

    Stack Overflow | 2 years ago | Joaquin Perez Fuentes
    java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null]
  2. 0

    Trying to query all documents with Page request and facing the problem below mentioned: ############################################################## Exception in thread "main" java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null] at org.springframework.data.couchbase.repository.query.ViewBasedCouchbaseQuery.execute(ViewBasedCouchbaseQuery.java:47) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:337) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:80) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at $Proxy14.findAll(Unknown Source) at com.polycom.cloudAxis.proxymanagement.model.Main.main(Main.java:41) #################################### public interface EulaDao extends PagingAndSortingRepository<Eula, String> Page<Eula> eulaResult = repo.findAll(new PageRequest(1, 20)); ###################### What could be the problem?

    Spring JIRA | 3 years ago | srikanth Hugar
    java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null]
  3. 0

    Trying to query all documents with Page request and facing the problem below mentioned: ############################################################## Exception in thread "main" java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null] at org.springframework.data.couchbase.repository.query.ViewBasedCouchbaseQuery.execute(ViewBasedCouchbaseQuery.java:47) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:337) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:80) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at $Proxy14.findAll(Unknown Source) at com.polycom.cloudAxis.proxymanagement.model.Main.main(Main.java:41) #################################### public interface EulaDao extends PagingAndSortingRepository<Eula, String> Page<Eula> eulaResult = repo.findAll(new PageRequest(1, 20)); ###################### What could be the problem?

    Spring JIRA | 3 years ago | srikanth Hugar
    java.lang.IllegalStateException: Unknown query param: Page request [number: 1, size 20, sort: null]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 10#231680877

    GitHub | 5 months ago | marcingrzejszczak
    java.lang.IllegalStateException: Parsed JSON <{"content":[{"id":"article_accurest::1","title":"test title","lead":"test lead","leadPhoto":{"url":"http://grey.png","alt":"Sasha photo","title":"Sasha Grey"},"content":"test content","tags":["tag1","tag2","tag3"],"createdDate":null,"createdBy":null,"modifiedDate":"2016-07-06T08:10:22.433Z","modifiedBy":"accurest_editor","publishDate":"2018-05-17T12:32:28Z","status":"DRAFT","bioId":"test-bio-id"},{"id":"article_accurest::3","title":"test game","lead":"test lead","leadPhoto":{"url":"http://grey.png","alt":"Sasha photo","title":"Sasha Grey"},"content":"test content","tags":["tag1","tag2","tag3"],"createdDate":null,"createdBy":null,"modifiedDate":"2016-07-06T08:10:22.451Z","modifiedBy":"accurest_editor","publishDate":"2018-05-17T12:32:28Z","status":"DRAFT","bioId":"test-bio-id"}],"totalPages":1,"totalElements":2,"last":true,"size":20,"number":0,"sort":null,"numberOfElements":2,"first":true}> doesn't have the size <3> for JSON path <$.content[*].tags[*]>. The size is <6>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unknown query param: Page request [number: 1, size 20, sort: null]

      at org.springframework.data.couchbase.repository.query.ViewBasedCouchbaseQuery.execute()
    2. Spring Data Couchbase
      ViewBasedCouchbaseQuery.execute
      1. org.springframework.data.couchbase.repository.query.ViewBasedCouchbaseQuery.execute(ViewBasedCouchbaseQuery.java:47)
      1 frame
    3. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:337)
      1 frame
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    5. Spring Data Couchbase
      ViewPostProcessor$ViewInterceptor.invoke
      1. org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:80)
      1 frame
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      4 frames
    7. Unknown
      $Proxy14.findAll
      1. $Proxy14.findAll(Unknown Source)
      1 frame
    8. com.polycom.cloudAxis
      Main.main
      1. com.polycom.cloudAxis.proxymanagement.model.Main.main(Main.java:41)
      1 frame