java.lang.IllegalArgumentException

Page index must not be less than zero!

Solutions on the web20810

  • via Spring JIRA by Shelley J. Baker, 1 year ago
    Page index must not be less than zero!
  • via Spring JIRA by Shelley J. Baker, 1 year ago
    Page index must not be less than zero!
  • Page size must not be less than one!
  • Stack trace

    • java.lang.IllegalArgumentException: Page index must not be less than zero! at org.springframework.data.domain.AbstractPageRequest.<init>(AbstractPageRequest.java:43)[spring-data-commons-1.10.0.RELEASE.jar:na] at org.springframework.data.domain.PageRequest.<init>(PageRequest.java:63)[spring-data-commons-1.10.0.RELEASE.jar:na] at org.springframework.data.web.PageableHandlerMethodArgumentResolver.resolveArgument(PageableHandlerMethodArgumentResolver.java:253)[spring-data-commons-1.10.0.RELEASE.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.