[ http://issues.apache.org/jira/browse/AXIS2-761?page=comments#action_12412751 ]
Chuck Williams commented on AXIS2-761: -------------------------------------- > Sadly, I can't even compile Axis2 trunk using Maven, let alone running > integration tests. (Apparently a maven repository hosted at the openejb.org > is not available or some such). Welcome to the maven abyss. It usually helps to download everything first and only once, e.g. from the trunk: maven create-lib maven -o cp target/lib/* lib/ If there are jars you just can't get, you need to find them somewhere. One possibility is to download http://ws.zones.apache.org/~chinthaka/repository.zip and unzip it into the .maven repository. If you get the jars into lib/ somehow but can't figure out where everything goes in the maven repository, you can cp lib/* target/lib/ # or vice-versa -- just make sure everything is both places maven -o -Dmaven.jar.override=on # causes build from lib instead of maven repository > By looking at the source code of the failed test cases they do not seem > dependent on SimpleHttpServer in any way. Alas, they must be, because that is the only thing that changes between the test cases succeeding and failing. If I reverse the patch, they all succeed. I was pulled onto something else for most of the day and it is late here now. Will take a look again tomorrow. Thanks to Dennis's info about target/test-reports, I do at least have the stack traces now. Most of the errors seem to be failures in expected strings in response messages. I'm wondering if there is some minor difference in formatting or some such. It would be easy to find if mevenide would cooperate so that mevenide:test-single-debug would work right. Codehaus appears to have had major site problems, so mevenide documentation for maven 1 does not seem to be available. When trying a debug-file in netbeans on the test cases, I'm getting connection refused on when mevenide tries to attach the debugger, for mevenide's default debug port (8888) and same for any port I change it to. Here are the test-reports for the 5 failing tests: Testsuite: org.apache.axis2.rpc.MultirefTest Tests run: 9, Failures: 0, Errors: 1, Time elapsed: 10.8 sec ------------- Standard Output --------------- Server started on port 5555.....[SimpleHTTPServer] Stop called Server stopped .....[SimpleHTTPServer] Stop called ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. ------------- ---------------- --------------- Testcase: testaddError(org.apache.axis2.rpc.MultirefTest): Caused an ERROR null java.lang.NullPointerException at org.apache.axis2.rpc.MultirefTest.testaddError(MultirefTest.java:300) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Testsuite: org.apache.axis2.engine.HandlerFailureTest Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 6.706 sec ------------- Standard Output --------------- Server started on port 5555.....[SimpleHTTPServer] Stop called Server stopped .....[SimpleHTTPServer] Stop called ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. ------------- ---------------- --------------- Testcase: testFailureAtServerRequestFlow(org.apache.axis2.engine.HandlerFailureTest): FAILED null junit.framework.AssertionFailedError at org.apache.axis2.engine.HandlerFailureTest.callTheService(HandlerFailureTest.java:119) at org.apache.axis2.engine.HandlerFailureTest.testFailureAtServerRequestFlow(HandlerFailureTest.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Testsuite: org.apache.axis2.engine.CallUnregisteredServiceTest Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 6.895 sec ------------- Standard Output --------------- Server started on port 5555.....[SimpleHTTPServer] Stop called Server stopped .....[SimpleHTTPServer] Stop called ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. ------------- ---------------- --------------- Testcase: testEchoXMLSync(org.apache.axis2.engine.CallUnregisteredServiceTest): FAILED null junit.framework.AssertionFailedError at org.apache.axis2.engine.CallUnregisteredServiceTest.testEchoXMLSync(CallUnregisteredServiceTest.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Testsuite: org.apache.axis2.engine.ServiceGroupContextTest Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 9.767 sec ------------- Standard Output --------------- Server started on port 5555.....[SimpleHTTPServer] Stop called Server stopped .....[SimpleHTTPServer] Stop called ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. ------------- ---------------- --------------- Testcase: testEchoXMLSync(org.apache.axis2.engine.ServiceGroupContextTest): FAILED Number of requests should be 2 expected:<2> but was:<1> junit.framework.AssertionFailedError: Number of requests should be 2 expected:<2> but was:<1> at org.apache.axis2.engine.ServiceGroupContextTest.testEchoXMLSync(ServiceGroupContextTest.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Testsuite: org.apache.axis2.engine.FaultHandlingTest Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 6.973 sec ------------- Standard Output --------------- Server started on port 5555.....[SimpleHTTPServer] Stop called Server stopped .....[SimpleHTTPServer] Stop called ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. ------------- ---------------- --------------- Testcase: testFaultHandlingWithParamsSetToMsgCtxt(org.apache.axis2.engine.FaultHandlingTest): Caused an ERROR Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:590) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399) at org.apache.axis2.engine.FaultHandlingTest.testFaultHandling(FaultHandlingTest.java:87) at org.apache.axis2.engine.FaultHandlingTest.testFaultHandlingWithParamsSetToMsgCtxt(FaultHandlingTest.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207) ... 25 more Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:120) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299) ... 26 more Testcase: testFaultHandlingWithParamsSetToAxisFault(org.apache.axis2.engine.FaultHandlingTest): Caused an ERROR Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:590) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399) at org.apache.axis2.engine.FaultHandlingTest.testFaultHandling(FaultHandlingTest.java:87) at org.apache.axis2.engine.FaultHandlingTest.testFaultHandlingWithParamsSetToAxisFault(FaultHandlingTest.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207) ... 25 more Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:120) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299) ... 26 more Testcase: testRefParamsWithFaultTo(org.apache.axis2.engine.FaultHandlingTest): Caused an ERROR Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:590) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.axis2.engine.FaultHandlingTest.getResponse(FaultHandlingTest.java:162) at org.apache.axis2.engine.FaultHandlingTest.testRefParamsWithFaultTo(FaultHandlingTest.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer; nested exception is: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207) ... 23 more Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error Message is org.apache.axis2.transport.http.server.OutputBuffer at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:120) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299) ... 24 more Testcase: testExceptionInformationExtractionFromAxisFault(org.apache.axis2.engine.FaultHandlingTest): Caused an ERROR null java.lang.NullPointerException at org.apache.axis2.engine.FaultHandlingTest.testExceptionInformationExtractionFromAxisFault(FaultHandlingTest.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) > SimpleHttpServer based on Jakarta HttpComponents HttpCore > --------------------------------------------------------- > > Key: AXIS2-761 > URL: http://issues.apache.org/jira/browse/AXIS2-761 > Project: Apache Axis 2.0 (Axis2) > Type: Improvement > Components: transports > Versions: 1.0 > Reporter: Oleg Kalnichevski > Attachments: jakarta-httpcore-4.0-20060521.jar, simplehttpserver.patch > > The following patch replaces the SimpleHttpServer implementation based on the > testing framework of Commons HttpClient 3.x with a one based on Jakarta > HttpComponents HttpCore. Compiled against Axis2 trunk and HttpCore trunk > * Removes all references to Commons HttpClient classes > * Enables streaming of schema definitions and similar content > * Improves content buffering of SOAP response > * Improves handling of fault conditions and exception handling > * Fixes a number of NPEs in AxisEngine > * Improves performance and reliability of the HTTP transport -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
