Project: springxd
Issue XD-2609: Error when listing Streams in admin-ui
As a user, I'm trying to list streams (>20) in admin-ui to use the pagination; however, I ended up with blank page and the server-side errored with _java.lang.IllegalStateException_. Version: 1.1.0 SNAPSHOT (master build) Distributed: 1 admin and 2 containers *Steps to reproduce:* 1) Deploy the following streams. stream create foo1 --definition "time | log" --deploy stream create foo2 --definition "time | log" --deploy stream create foo3 --definition "time | log" --deploy stream create foo4 --definition "time | log" --deploy stream create foo5 --definition "time | log" --deploy stream create foo6 --definition "time | log" --deploy stream create foo7 --definition "time | log" --deploy stream create foo8 --definition "time | log" --deploy stream create foo9 --definition "time | log" --deploy stream create foo10 --definition "time | log" --deploy stream create foo11 --definition "time | log" --deploy stream create foo12 --definition "time | log" --deploy stream create foo13 --definition "time | log" --deploy stream create foo14 --definition "time | log" --deploy stream create foo15 --definition "time | log" --deploy stream create foo16 --definition "time | log" --deploy stream create foo17 --definition "time | log" --deploy stream create foo18 --definition "time | log" --deploy stream create foo19 --definition "time | log" --deploy stream create foo20 --definition "time | log" --deploy stream create foo21 --definition "time | log" --deploy stream create foo22 --definition "time | log" --deploy 2) Go to Streams tab in admin-ui to get a blank page and the following exception in admin logs. *Error:* 16:55:19,107 1.1.0.SNAP ERROR http-nio-9393-exec-2 rest.RestControllerAdvice - Caught exception while handling a request java.lang.IllegalStateException: Not all instances were looked at org.springframework.util.Assert.state(Assert.java:385) org.springframework.xd.dirt.rest.XDController.enhanceWithDeployments(XDController.java:207) org.springframework.xd.dirt.rest.XDController.listValues(XDController.java:178) org.springframework.xd.dirt.rest.StreamsController.list(StreamsController.java:63)
Story points: 1