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

Spring JIRA | srikanth Hugar | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    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