java.lang.IllegalStateException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.

tip

Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.


rafael

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

  • 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 at org.springframework.util.Assert.state(Assert.java:385) at org.springframework.xd.dirt.rest.XDController.enhanceWithDeployments(XDController.java:207) at org.springframework.xd.dirt.rest.XDController.listValues(XDController.java:178) at org.springframework.xd.dirt.rest.StreamsController.list(StreamsController.java:63)
    via by Sabby Anandan,
  • 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 at org.springframework.util.Assert.state(Assert.java:385) at org.springframework.xd.dirt.rest.XDController.enhanceWithDeployments(XDController.java:207) at org.springframework.xd.dirt.rest.XDController.listValues(XDController.java:178) at org.springframework.xd.dirt.rest.StreamsController.list(StreamsController.java:63)
    via by Sabby Anandan,
    • java.lang.IllegalStateException: Not all instances were looked at at org.springframework.util.Assert.state(Assert.java:385) at org.springframework.xd.dirt.rest.XDController.enhanceWithDeployments(XDController.java:207) at org.springframework.xd.dirt.rest.XDController.listValues(XDController.java:178) at org.springframework.xd.dirt.rest.StreamsController.list(StreamsController.java:63)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    62 more bugmates