Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring引导数据流:页面大小不得小于1_Java_Spring_Spring Boot_Spring Cloud Dataflow - Fatal编程技术网

Java Spring引导数据流:页面大小不得小于1

Java Spring引导数据流:页面大小不得小于1,java,spring,spring-boot,spring-cloud-dataflow,Java,Spring,Spring Boot,Spring Cloud Dataflow,我正在尝试将应用程序注册到Spring引导数据流本地服务器。但我得到了以下错误:在仪表板上 页面大小不得小于1 如何解决这个问题?我缺少依赖吗?但是,应用程序已从Data Flow Shell成功注册。但是,它仍然无法从仪表板上获得。请参见下面的屏幕截图和堆栈跟踪 2017-06-26 12:45:42.314错误5444---[nio-9393-exec-6]o.s.c.d.s.c.RestControllerAdvice:处理请求时捕获异常 java.lang.IllegalArgume

我正在尝试将应用程序注册到Spring引导数据流本地服务器。但我得到了以下错误:在仪表板上

页面大小不得小于1

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

2017-06-26 12:45:42.314错误5444---[nio-9393-exec-6]o.s.c.d.s.c.RestControllerAdvice:处理请求时捕获异常
java.lang.IllegalArgumentException:页面大小不得小于一!
在org.springframework.data.domain.AbstractPageRequest.(AbstractPageRequest.java:47)~[spring-data-commons-1.13.4.RELEASE.jar:na]
在org.springframework.data.domain.PageRequest.(PageRequest.java:63)~[spring-data-commons-1.13.4.RELEASE.jar:na]
在org.springframework.data.web.pagedresourcessembler.addPaginationLinks(pagedresourcessembler.java:222)~[spring-data-commons-1.13.4.RELEASE.jar:na]
在org.springframework.data.web.pagedresourcessembler.createResource(pagedresourcessembler.java:205)~[spring-data-commons-1.13.4.RELEASE.jar:na]
在org.springframework.data.web.pagedresourcessembler.toResource(pagedresourcessembler.java:115)~[spring-data-commons-1.13.4.RELEASE.jar:na]
在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]
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.8.0_121]
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0121]
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0121]
在java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0_121]
在org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
在org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)~[spring-w

正在通过解决此问题。该修复程序将包含在即将发布的版本中


同时,请提取PR并在本地构建它以供测试。

为什么要投否决票(
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