Hi all,
when debugging ESB test failures, I found that soap fault thrown by axis2
client no longs has "faultstring" as axisFault.getMessage()
This cause few test cases fail which check axisFault.getMessage to test
failure scenarios
now axisFault.getMessage() always returns "Error has occurred when calling
the service, status code is 500" regardless of actual fault message.
Was there any change recently which cause this?
Respose from ESB
[2013-11-08 13:06:18,930] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,930] DEBUG - wire << "HTTP/1.1 500 Internal Server
Error[\r][\n]"
[2013-11-08 13:06:18,931] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,930] DEBUG - wire << "Host: localhost:8280[\r][\n]"
[2013-11-08 13:06:18,931] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,930] DEBUG - wire << "SOAPAction:
"urn:getQuote"[\r][\n]"
[2013-11-08 13:06:18,932] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,931] DEBUG - wire << "Content-Type: text/xml;
charset=UTF-8[\r][\n]"
[2013-11-08 13:06:18,932] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,931] DEBUG - wire << "Date: Fri, 08 Nov 2013 07:36:18
GMT[\r][\n]"
[2013-11-08 13:06:18,933] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,931] DEBUG - wire << "Server:
WSO2-PassThrough-HTTP[\r][\n]"
[2013-11-08 13:06:18,933] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,931] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2013-11-08 13:06:18,934] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,931] DEBUG - wire << "[\r][\n]"
[2013-11-08 13:06:18,950] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,941] DEBUG - wire << "14f[\r][\n]"
[2013-11-08 13:06:18,951] INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-11-08 13:06:18,942] DEBUG - wire << "<?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode
xmlns:tns="http://www.w3.org/2003/05/soap-envelope">tns:Receiver</faultcode>*<faultstring>Invalid
custom quote request</faultstring>*
</soapenv:Fault></soapenv:Body></soapenv:Envelope>[\r][\n]"
*Test framework log*
FAILED: testValidationSchema
Add a validate mediator, which validates the first element of the
SOAP body of incoming message using the schema
java.lang.AssertionError: Fault: value mismatched, should be 'Invalid
custom quote request' expected:<Invalid custom quote request> but
was:<Error has occurred when calling the service, status code is 500>
at org.testng.Assert.fail(Assert.java:89)
at org.testng.Assert.failNotEquals(Assert.java:489)
at org.testng.Assert.assertEquals(Assert.java:118)
at org.testng.Assert.assertEquals(Assert.java:171)
at
org.wso2.carbon.esb.samples.test.mediation.SchemaValidationSample7TestCase.testValidationSchema(SchemaValidationSample7TestCase.java:45)
--
Miyuru Wanninayaka
Technical Lead
WSO2 Inc. : http://wso2.com
Mobile : +94 77 209 9788
Blog : http://miyurudw.blogspot.com
Flickr : http://www.flickr.com/photos/miyuru_daminda
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev