You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2002/03/14 22:36:07 UTC

cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser BeanSerializer.java

tomj        02/03/14 13:36:07

  Modified:    java/src/org/apache/axis/encoding/ser BeanSerializer.java
  Log:
  Capture an InvocationTargetException and report
  on the target in the AxisFault generated.
  
  Revision  Changes    Path
  1.20      +5 -0      xml-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java
  
  Index: BeanSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- BeanSerializer.java	11 Mar 2002 16:25:31 -0000	1.19
  +++ BeanSerializer.java	14 Mar 2002 21:36:07 -0000	1.20
  @@ -85,6 +85,7 @@
   
   import java.io.Serializable;
   import java.lang.reflect.Method;
  +import java.lang.reflect.InvocationTargetException;
   import java.beans.IntrospectionException;
   
   import org.w3c.dom.Element;
  @@ -207,6 +208,10 @@
                       }
                   }
               }
  +        } catch (InvocationTargetException ite) {
  +            Throwable target = ite.getTargetException();
  +            log.error(JavaUtils.getMessage("exception00"), target);
  +            throw new IOException(target.toString());
           } catch (Exception e) {
               log.error(JavaUtils.getMessage("exception00"), e);
               throw new IOException(e.toString());