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 di...@apache.org on 2005/04/27 18:33:16 UTC

cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BeanPropertyTarget.java

dims        2005/04/27 09:33:16

  Modified:    java/src/org/apache/axis/encoding/ser
                        BeanPropertyTarget.java
  Log:
  Slightly better server-side log message...no idea why this is not being thrown back to the client.
  
  (courtesy of Guillaume)
  
  Revision  Changes    Path
  1.23      +8 -4      ws-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java
  
  Index: BeanPropertyTarget.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- BeanPropertyTarget.java	25 Feb 2004 14:02:37 -0000	1.22
  +++ BeanPropertyTarget.java	27 Apr 2005 16:33:16 -0000	1.23
  @@ -117,14 +117,18 @@
                       field += "[" + index + "]";
                   }
                   if (log.isErrorEnabled()) {
  +                    //TODO: why is this just logged on the server-side and not thrown back to the client???
                       String valueType = "null";
                       if (value != null)
                           valueType = value.getClass().getName();
                       log.error(Messages.getMessage("cantConvert02",
  -                                                   new String[] {
  -                                                       valueType,
  -                                                       field,
  -                                                       pd.getType().getName()}));
  +                            new String[]{
  +                                valueType,
  +                                field,
  +                                (index >= 0) ?
  +                                        pd.getType().getComponentType().getName() :
  +                                        pd.getType().getName()
  +                            }));
                   }
                   if(ex instanceof InvocationTargetException) {
                       Throwable t = ((InvocationTargetException)ex).getTargetException();