axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Davis" <...@us.ibm.com>
Subject Re: Warning regarding debugging levels
Date Fri, 17 Aug 2001 16:10:28 GMT
Yup - that debug section was there in sort of a "I'm messed up and
all I want is the stuff from the wire printed to the screen".
That will probably be removed pretty soon since we're supposed to
switch to JLog pretty soon.
-Dug


"Frederic Desjarlais" <frederic@enjiva.com> on 08/17/2001 11:59:04 AM

Please respond to axis-dev@xml.apache.org

To:   <axis-user@xml.apache.org>, <axis-dev@xml.apache.org>
cc:
Subject:  Warning regarding debugging levels




It would probably make more sense to wait until more people join the
axis-user list to mention this, but I thought I'd point it out now anyway.

I was writing a SOAP Client using Axis, and decided to bring the debugging
level to something 'high' -- so I chose 10:

e.g.) org.apache.axis.utils.Debug.setDebugLevel(10);

However, this caused more headaches than it should have.  Specifically, in
org.apache.axis.transport.http.HTTPSender (around line 306), we've got:

if ( b != -1 && Debug.getDebugLevel() > 8 ) {
     // Special case - if the debug level is this high then something
     // really bad must be going on - so just dump the input stream
     // to stdout.
     while ( (b = (byte) inp.read()) != -1 )
          System.err.print((char)b);
     System.err.println("");
}

if ( b != -1 ) {
     ...<snip>

I figured out the problem after quite a bit of grepping and runtime
debugging.  Maybe it should be placed in the FAQ (for the alpha release),
and/or fixed up for in the main development tree so that others don't try
to
bring the debugging level higher than 8.

Without this, I was getting the following AxisFault on invocation of the
service:
AxisFault
  faultCode: http://xml.apache.org/axis/:Server.generalException
  faultString: java.lang.Exception: Null response message!
  faultActor: null
  faultDetails: [[stackTrace: null]]


Thanks!
Frederic








Mime
View raw message