【问题标题】:Spring Boot Data Flow : Page Size must not be less than oneSpring Boot 数据流:页面大小不得小于一
【发布时间】:2017-06-26 07:03:00
【问题描述】:

我正在尝试将 App 注册到 Spring Boot Data Flow 本地服务器。但我收到以下错误:在仪表板上。

页面大小不得小于一

如何解决这个问题?我是否缺少任何依赖项?但是,该应用程序已从 Data Flow Shell 成功注册。但是,它仍然无法从仪表板中获得。请参阅下面的屏幕截图和堆栈跟踪。

2017-06-26 12:45:42.314 ERROR 5444 --- [nio-9393-exec-6] o.s.c.d.s.c.RestControllerAdvice         : Caught exception while handling a request

java.lang.IllegalArgumentException: Page size must not be less than one!
    at org.springframework.data.domain.AbstractPageRequest.<init>(AbstractPageRequest.java:47) ~[spring-data-commons-1.13.4.RELEASE.jar:na]
    at org.springframework.data.domain.PageRequest.<init>(PageRequest.java:63) ~[spring-data-commons-1.13.4.RELEASE.jar:na]
    at org.springframework.data.web.PagedResourcesAssembler.addPaginationLinks(PagedResourcesAssembler.java:222) ~[spring-data-commons-1.13.4.RELEASE.jar:na]
    at org.springframework.data.web.PagedResourcesAssembler.createResource(PagedResourcesAssembler.java:205) ~[spring-data-commons-1.13.4.RELEASE.jar:na]
    at org.springframework.data.web.PagedResourcesAssembler.toResource(PagedResourcesAssembler.java:115) ~[spring-data-commons-1.13.4.RELEASE.jar:na]
    at org.springframework.cloud.dataflow.server.controller.AppRegistryController.list(AppRegistryController.java:119) ~[spring-cloud-dataflow-server-core-1.2.0.RELEASE.jar:1.2.0.RELEASE]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) ~[spring-w

【问题讨论】:

  • 为什么要投反对票? :(

标签: java spring spring-boot spring-cloud-dataflow


【解决方案1】:

这是通过spring-cloud/spring-cloud-dataflow#1545 解决的。该修复将包含在即将发布的1.2.2.RELEASE 中。

与此同时,请拉取 PR 并在本地构建它以供您测试。

【讨论】:

    猜你喜欢
    • 2019-10-01
    • 2019-07-25
    • 2021-03-13
    • 2019-06-09
    • 2016-06-15
    • 2010-10-10
    • 2020-06-01
    • 2015-02-28
    相关资源
    最近更新 更多