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
    You can solve this by using an actual Service instead of an IntentService

    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