Project: springxd
Issue XD-465: Shell should display error messages returned from the server
For example, using tcpdump I can see both an exception and message information: 'HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 12 Jul 2013 13:38:26 GMT Connection: close 275 [{"links":[],"logref":"MessageHandlingException","message":"org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.integration.monitor.IntegrationMBeanExporter#0#92e27d20-4c48-4131-866c-91b6cb642ca2'; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [MessageChannelMonitor: [name=nullChannel, sends=0, receives=0]] with key 'xd.tap1:type=MessageChannel,name=nullChannel,index=1,module=log'; nested exception is javax.management.InstanceAlreadyExistsException: xd.tap1:type=MessageChannel,name=nullChannel,index=1,module=log"}] However the client only shows: http://localhost:8080:>tap create --name "tap1" --definition "tap@test1.file | log" --deploy true 14:38:26,113 WARN Spring Shell client.RestTemplate:524 - POST request for "http://localhost:8080/taps" resulted in 500 (Internal Server Error); invoking error handler Error creating tap 'tap1' The error doesn't seem to be logged in the XD Admin server either, so the information is effectively lost.
Story points: 2