tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Husarik, Branko" <>
Subject Tomcat doesn't process error messages
Date Wed, 02 Jan 2013 14:33:48 GMT

I am a bit desperate thanks to my issue with Tomcat, which seems to be like common matter.
I am using Tomcat 6.0.35 as a proxy between Oracle and Web service. Tomcat is running on AIX
Version 6.1. There is send request http message from Oracle to the Proxy and message is forwarded
to the Web service as https. Web services responses https message to Proxy and it is send
back to Oracle as http.

When Web service responds HTTP/1.1 200 OK, everything works well and the Soap Message is correctly
forwarded back to Oracle.
When Web service responds HTTP/1.1 500 Internal Server Error, proxy fails during getInputStream()
There is thrown IOException and Soap message is not forwarded back. Error message is "Server
returned HTTP response code: 500 for URL:" and cause is null.
I tried to add getErrorStream() executing in case getInputStream() is not working, but the
result is null. Please do you know some way, how to process incoming "Error messages"? Is
it caused by bad setup of configuration?

Thank you very much.

I am attaching both responses from web service:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Content-Length: 878
Date: Wed, 02 Jan 2013 13:15:24 GMT

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=""><SOAP-ENV:Body><ns0:ActivateServiceRes
xmlns:ns1="" xmlns:xsd=""
xmlns:env="" xmlns:xsi=""><ns0:userName>sa</ns0:userName></ns0:ServiceHeader><ns0:OmsStatus><ns0:orderStatus>IN-PROCESS</ns0:orderStatus></ns0:OmsStatus></ns0:data></ns0:ActivateServiceRes></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Content-Length: 1407
Date: Wed, 02 Jan 2013 13:28:33 GMT
Connection: close

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=""><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
xmlns="">SOAP-ENV:Server</faultcode><faultstring xmlns="">This is an operation
implementation generated fault</faultstring><faultactor xmlns=""/><detail xmlns=""><ns:BusinessServiceException
xmlns:xs="" xmlns:xsi=""
xmlns:ns="" xmlns:ns0=""><ns0:eiMessageContext
xmlns:ns1="">Validation error</ns1:furtherInfo><ns:breData
xmlns:ns0=""><ns1:reason xmlns:ns1="">NOT_PROPER_TARIFF</ns1:reason><ns1:textInfo

Best Regards


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message