Hi Devs,

I'm attempting to figure out the problems in our existing NHTTP tests. NHTTP tests are based on the Axis2 transports test kit. According to my observations following tests are failing consistently (out of 77 test cases). Relevant exceptions are also shown below.

0009:test=AsyncXML,data=Latin1,messageType=POX,client=java.net,endpoint=axis (org.apache.axis2.transport.testkit.tests.async.XMLAsyncMessageTestCase)

java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8280/services/TestService-9568a692-c528-48d2-ba67-0061c33b25a5
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
at org.apache.axis2.transport.testkit.http.JavaNetClient.sendMessage(JavaNetClient.java:57)
at org.apache.axis2.transport.testkit.http.JavaNetClient.sendMessage(JavaNetClient.java:36)
at org.apache.axis2.transport.testkit.client.AsyncTestClientAdapter.sendMessage(AsyncTestClientAdapter.java:45)
at org.apache.axis2.transport.testkit.tests.async.AsyncMessageTestCase.doRunTest(AsyncMessageTestCase.java:50)
at org.apache.axis2.transport.testkit.tests.MessageTestCase.runTest(MessageTestCase.java:62)
at org.apache.axis2.transport.testkit.ManagedTestSuite.run(ManagedTestSuite.java:118)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)


0020:test=AsyncXML,data=Latin1,messageType=POX,forceHTTP10=false,client=axis,endpoint=axis (org.apache.axis2.transport.testkit.tests.async.XMLAsyncMessageTestCase)

junit.framework.AssertionFailedError: Failed to get message
at org.apache.axis2.transport.testkit.tests.async.AsyncMessageTestCase.doRunTest(AsyncMessageTestCase.java:53)
at org.apache.axis2.transport.testkit.tests.MessageTestCase.runTest(MessageTestCase.java:62)
at org.apache.axis2.transport.testkit.ManagedTestSuite.run(ManagedTestSuite.java:118)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

0042:test=AsyncXML,data=Latin1,messageType=POX,forceHTTP10=true,client=axis,endpoint=axis (org.apache.axis2.transport.testkit.tests.async.XMLAsyncMessageTestCase)

junit.framework.AssertionFailedError: Failed to get message
at org.apache.axis2.transport.testkit.tests.async.AsyncMessageTestCase.doRunTest(AsyncMessageTestCase.java:53)
at org.apache.axis2.transport.testkit.tests.MessageTestCase.runTest(MessageTestCase.java:62)
at org.apache.axis2.transport.testkit.ManagedTestSuite.run(ManagedTestSuite.java:118)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)


It seems all the failures are associated with POX+Latin1 test cases. But not all of them fail either. Only the above mentioned tests are failing. Can somebody please help me figure out what's going on? When I exclude Latin1 tests from the suite everything works fine.

Thanks
--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com