axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ven...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis AxisFault.java
Date Wed, 06 Jul 2005 06:21:58 GMT
venkat      2005/07/05 23:21:58

  Modified:    java/src/org/apache/axis AxisFault.java
  Log:
  Partial fix for AXIS-2025 for avoiding runtime exception during construction of AxisFault
object - don't put the un-encoded invalid character again into the fault string.
  
  Revision  Changes    Path
  1.90      +5 -1      ws-axis/java/src/org/apache/axis/AxisFault.java
  
  Index: AxisFault.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/AxisFault.java,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- AxisFault.java	2 Jul 2004 17:06:24 -0000	1.89
  +++ AxisFault.java	6 Jul 2005 06:21:58 -0000	1.90
  @@ -363,7 +363,11 @@
           }
           buf.append(JavaUtils.LS);
           buf.append(" faultString: ");
  -        buf.append(XMLUtils.xmlEncodeString(faultString));
  +        try {
  +        	buf.append(XMLUtils.xmlEncodeString(faultString));
  +        } catch (RuntimeException re) {
  +        	buf.append(re.getMessage());
  +        }
           buf.append(JavaUtils.LS);
           buf.append(" faultActor: ");
           buf.append(XMLUtils.xmlEncodeString(faultActor));
  
  
  

Mime
View raw message