Hello,
our client receives not complette http response when the ServiceMix
cxfbc:consumer shall return soap fault message. 
*The AsyncHttpConnection was suspended*, as you can see in the ServiceMix
log. 
Why is it so?

*Details:*
We tested it with different WS-clients: SoapUI, another Servicemix, another
Java application with the same result. 
In the http log of SoapUI is the response with soap fault message and http
response code 500, but the response window is clear and SoapUI is waiting
for something (for finishing of the http connection?).

We use Apache *ServiceMix 4.5.2*.
On the apache-servicemix-4.4.1-fuse-07-11 occurs no error, the response is
correct.

*Not every fault is handled wrong:*
This error occurs only when is the cxfbc:consumer accessed by an
*unauthorised user* (username and password from the ws-security header is
correct, but his role is not authorised for any NMR AuthorizationEntry).
When the user from ws-security header doesnt exist in users.properties, the
ServiceMix returns correct soap fault message displayed in the SoapUI
response window and the http response code is 500 too.

*ServiceMix log:*

2013-09-25 11:02:07,040 | DEBUG | 4709-152 - /islA | PhaseInterceptorChain      
     
| 132 - org.apache.cxf.cxf-api - 2.6.8 | Invoking handleMessage on
interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@7e887d
2013-09-25 11:02:07,041 | INFO  | 4709-152 - /islA | IslAWebServiceSoap         
     
| 132 - org.apache.cxf.cxf-api - 2.6.8 | Outbound Message
---------------------------                                                     
                                                     
ID: 1
Response-Code: 500
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>User
not authenticated or not authorized to access any matching
endpoint.</faultstring></soap:Fault></soap:Body></soap:Envelope>                
                                                                                
                       
--------------------------------------
2013-09-25 11:02:07,041 | DEBUG | 4709-152 - /islA | JettyHTTPDestination       
     
| 132 - org.apache.cxf.cxf-api - 2.6.8 | Finished servicing http request on
thread: Thread[qtp6904709-152 -
/islA,5,spring-osgi-extender[1f74864]-threads]
2013-09-25 11:02:07,042 | DEBUG | 4709-152 - /islA | Server                     
     
| 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | RESPONSE /islA  500
2013-09-25 11:02:07,042 | DEBUG | qtp6904709-152   | AsyncHttpConnection        
     
| 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | suspended
org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection@[email protected]:8196<->127.0.0.1:42013
2013-09-25 11:02:07,042 | DEBUG | qtp6904709-152   | nio                        
     
| 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | Required scheduleWrite
[email protected][connected local=/127.0.0.1:8196
remote=/127.0.0.1:42013][o=true d=true,io=0,w=true,rb=false,wb=false]

*HTTP log with wrong/uncomplete response:*

Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "HTTP/1.1 500 Server Error[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "Content-Type:
text/xml;charset=UTF-8[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "Transfer-Encoding: chunked[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "Server:
Jetty(7.5.4.v20111024)[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "10C[\r][\n]"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>User
not authenticated or not authorized to access any matching
endpoint.</faultstring></soap:Fault></soap:Body></soap:Envelope>"
Wed Sep 25 11:02:07 CEST 2013:DEBUG:<< "[\r][\n]"

Thank you!
Radomir



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/AsyncHttpConnection-suspended-after-soap-fault-tp5717874.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to