-
Feature
-
Resolution: Done
-
Minor
-
jboss-fuse-6.1
-
0
-
0%
-
Todo
I created a rest child container using the rest quickstart. And then in the swagger ui, eg click on the APIs tab in hawtio in fabric.
Then there is a getCustomer using GET you can use. Type in 123 to get a customer reponse.
Type in any other number and it fails with a stracktrace
On the server we get this logged
JBossFuse:admin@myrest> log:tail 2014-04-28 12:09:05,129 | INFO | tp1344871121-159 | LoggingInInterceptor | eptor.AbstractLoggingInterceptor 234 | 104 - org.apache.cxf.cxf-api - 2.7.0.redhat-610379 | Inbound Message ---------------------------- ID: 10 Address: http://192.168.1.5:8182/cxf/crm/customerservice/customers/123444 Http-Method: GET Content-Type: Headers: {Accept=[application/json, text/plain, */*], accept-encoding=[gzip,deflate,sdch], Accept-Language=[en-US,en;q=0.8,da;q=0.6,sv;q=0.4], connection=[keep-alive], Content-Type=[null], Cookie=[JSESSIONID=beclq0vvf8y0g4jr0ubsiuqv], Host=[192.168.1.5:8182], Referer=[http://localhost:8181/hawtio/index.html], User-Agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36]} -------------------------------------- 2014-04-28 12:09:05,130 | INFO | tp1344871121-159 | CustomerService | starts.fuse.rest.CustomerService 87 | 173 - org.jboss.quickstarts.fuse.rest - 6.1.0.redhat-SNAPSHOT | Invoking getCustomer, Customer id is: 123444 2014-04-28 12:09:05,131 | INFO | tp1344871121-159 | LoggingOutInterceptor | eptor.AbstractLoggingInterceptor 234 | 104 - org.apache.cxf.cxf-api - 2.7.0.redhat-610379 | Outbound Message --------------------------- ID: 10 Response-Code: 204 Content-Type: Headers: {Date=[Mon, 28 Apr 2014 10:09:05 GMT], Content-Length=[0]} --------------------------------------
Notice the response code is 204.
which is no content.
Bit what we see in the UI is, see screenshot