I've got a bit more information (but still no answers) from looking into the CharactersetEncodingTest failures:
- The failure is intermittent; sometimes (rarely) all tests pass, sometimes (usually ) one to four or more tests fail.
- Which tests fail is inconsistent
- The failure is caused by a ConnectException when the client tries to open the connection to the server
- I thought at first this was just a case of the server not being up before the client sent the request.  However I put sleeps in the test after the server is started and it didn't seem to make any difference.  I also put debug into org.apache.axis2.transport.http.server.SimpleHttpServer.run() before and after the listener.accept() call and even in the failing case the call to accept() is being made by the server before the open connection request is sent by the client.
- This is on Windows XP; I still get errors even with all the various firewalls disabled.
- I was able to get the log output to STDOUT for the test and the runtime by putting the following in the testcase: org.apache.log4j.BasicConfigurator.configure();  I'm sure that's not the actual fix :-).

Any insights appreciated!

Thanks,
Jeff

IBM Software Group - WebSphere Web Services Development
Phone: 512-838-4587 or Tie Line 678-4587
Internet e-mail and Sametime ID: [EMAIL PROTECTED]



Jeff Barrett/Austin/[EMAIL PROTECTED]

04/13/2006 12:24 PM

Please respond to
[email protected]

To
[email protected]
cc
Subject
[axis2] test failurs and log4j warnings in modules/Integration; where do log messages go?






I am having some failures in the Integration module tests from the code I extracted today (Revision: 393790):

   [junit] [ERROR] Test org.apache.axis2.engine.CharactersetEncodingTest FAILED

   [junit] [ERROR] Test org.apache.axis2.engine.CommonsHTTPEchoRawXMLTest FAILED

   [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLMultipleTest FAILED

   [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLTest FAILED

   [junit] [ERROR] Test org.apache.axis2.engine.FaultHandlingTest FAILED

   [junit] [ERROR] Test org.apache.axis2.engine.SOAPversionTest FAILED

   [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMFileCacheTest FAILED

   [junit] [ERROR] Test org.apache.axis2.rpc.MultirefTest FAILED

   [junit] [ERROR] Test org.apache.axis2.rpc.RPCCallTest FAILED


While trying to look into why the tests are failing, I noticed that all of the test output files (except TEST-org.apache.axis2.integration.EchoTest.txt) have the following message:


------------- 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.

------------- ---------------- ---------------


My questions are:

1) Where is the output from log.error( ... ) when called from the test cases supposed to go?  I believe I am hitting those calls prior to the asserts failing, but I don't see any output.


2) Is the lack of log ouptut related to the log4j:WARN messages above?


3) Is anyone else seeing the test failures above?


Thanks in advance for any insights!
Jeff

IBM Software Group - WebSphere Web Services Development
Phone: 512-838-4587 or Tie Line 678-4587
Internet e-mail and Sametime ID: [EMAIL PROTECTED]

Reply via email to