Project: talendesb
Issue TESB-3650: tRESTRequest - Wrong call handling
The handling of 'Wrong Call' does not work correctly. For a simple tRESTRequest with one get "/" uri it not works correctly to do the Wrong call response. In the log you can see that two wrong request arrived with www|404| uuuu|404| but the tRESTResponse didn't send it back. Starting job CustomerService at 12:38 26/10/2011. [statistics] connecting to socket on port 3434 [statistics] connected 26.10.2011 12:38:08 org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be http://localhost:8088/ 2011-10-26 12:38:08.454:INFO:oejs.Server:jetty-7.5.1.v20110908 2011-10-26 12:38:08.501:INFO:oejs.AbstractConnector:Started SelectChannelConnector@localhost:8088 STARTING 2011-10-26 12:38:08.517:INFO:oejsh.ContextHandler:started o.e.j.s.h.ContextHandler{,null} rest service [endpoint: http://localhost:8088/] published 26.10.2011 12:38:16 org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod WARNUNG: No operation matching request path "/uuuu" is found, Relative Path: /uuuu, HTTP Method: GET, ContentType: */*, Accept: text/html,application/xhtml+xml,*/*,. Please enable FINE/TRACE log level for more details. 26.10.2011 12:38:16 org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse WARNUNG: WebApplicationException has been caught : no cause is available wrong call [uri: uuuu ; status: 404 ; error: null] uuuu|404| 26.10.2011 12:38:30 org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod WARNUNG: No operation matching request path "/www" is found, Relative Path: /www, HTTP Method: GET, ContentType: */*, Accept: text/html,application/xhtml+xml,*/*,. Please enable FINE/TRACE log level for more details. 26.10.2011 12:38:30 org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse WARNUNG: WebApplicationException has been caught : no cause is available wrong call [uri: www ; status: 404 ; error: null] java.lang.RuntimeException: java.lang.Exception: java.util.concurrent.TimeoutException demo.customerservice_0_1.CustomerService$QueuedMessageHandlerImpl.sendResponse(CustomerService.java:397) demo.customerservice_0_1.CustomerService.tRESTRequest_1Process(CustomerService.java:2611) demo.customerservice_0_1.CustomerService.runJobInTOS(CustomerService.java:3136) demo.customerservice_0_1.CustomerService.main(CustomerService.java:3004) Caused by: java.lang.Exception: java.util.concurrent.TimeoutException demo.customerservice_0_1.CustomerService$QueuedExchangeContextImpl.release(CustomerService.java:293) demo.customerservice_0_1.CustomerService$QueuedMessageHandlerImpl.sendResponse(CustomerService.java:395)	... 3 more Caused by: java.util.concurrent.TimeoutException java.util.concurrent.Exchanger.exchange(Unknown Source) demo.customerservice_0_1.CustomerService$QueuedExchangeContextImpl.release(CustomerService.java:288)	... 4 more www|404| Job CustomerService ended at 12:39 26/10/2011. [exit code=0]
Story points: 1