axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/i18n resource.properties
Date Wed, 30 Oct 2002 14:21:42 GMT
dims        2002/10/30 06:21:42

  Modified:    java/src/org/apache/axis/encoding/ser
                        BeanPropertyTarget.java
               java/src/org/apache/axis/i18n resource.properties
  Log:
  Fix for Bug 11513 - Return the InvocationTargetException.getTargetException()
  from sfmarco@attbi.com (Marco Ensing)
  
  Revision  Changes    Path
  1.19      +8 -1      xml-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java
  
  Index: BeanPropertyTarget.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- BeanPropertyTarget.java	24 Sep 2002 23:27:35 -0000	1.18
  +++ BeanPropertyTarget.java	30 Oct 2002 14:21:41 -0000	1.19
  @@ -169,7 +169,14 @@
                   if(ex instanceof InvocationTargetException) {
                       Throwable t = ((InvocationTargetException)ex).getTargetException();
                       if( t != null) {
  -                        throw new SAXException(t.getMessage());
  +                        String classname = this.object.getClass().getName();
  +                        //show the context where this exception occured.
  +                        throw new SAXException(Messages.getMessage("cantConvert04",
  +                                                   new String[] {
  +                                                       classname,
  +                                                       field,
  +                                                       (value==null)?null:value.toString(),
  +                                                       t.getMessage()}));
                       }
                   }
                   throw new SAXException(ex);
  
  
  
  1.24      +1 -0      xml-axis/java/src/org/apache/axis/i18n/resource.properties
  
  Index: resource.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/i18n/resource.properties,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- resource.properties	29 Oct 2002 15:52:17 -0000	1.23
  +++ resource.properties	30 Oct 2002 14:21:41 -0000	1.24
  @@ -101,6 +101,7 @@
   cantConvert01=Cannot convert form {0} to String
   cantConvert02=Could not convert {0} to bean field ''{1}'', type {2}
   cantConvert03=Could not convert value to int
  +cantConvert04=Could not set Class {0} Field {1} to value {2} - Exception {3}  
   
   cantDoNullArray00=Cannot serialize null arrays just yet...
   
  
  
  

Mime
View raw message