Project: springxd
Issue XD-2983: Blank Container Screen from Admin UI w/ message rates
With message rates enabled and container management enabled, if you deploy a streaming module, the container page may be blank. Because the streaming module builds the channels outside the spring context (spark receiver is ran in the spark cluster not in xd) there is no need to setup the input and/or output channels. When these channels aren't defined the rest call from admin UI will fail because it will not find the message rates returned in the JSON from the JMX call. {code} Advice - Caught exception while handling a request org.codehaus.jettison.json.JSONException: JSONObject["value"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getJSONObject(JSONObject.java:454) at org.springframework.xd.dirt.rest.ContainersController.getMessageRate(ContainersController.java:146) at org.springframework.xd.dirt.rest.ContainersController.list(ContainersController.java:121) {code} As a work around, I have included the input and output channels for a spark streaming processor which is not used anywhere. This gives a bad side affect of looking like the module isn't processing with message rates of 0, but everything else is now shown.
Story points: 3