axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Date Mon, 25 Oct 2004 14:32:21 GMT
dims        2004/10/25 07:32:21

  Modified:    java/src/org/apache/axis/i18n resource.properties
               java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
  Log:
  Fix for AXIS-1617 - WSDL2Java throw NullPointerException instead of useful error message
when doesn't find Part
  from Sébastien Tardif
  
  Revision  Changes    Path
  1.94      +3 -1      ws-axis/java/src/org/apache/axis/i18n/resource.properties
  
  Index: resource.properties
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/i18n/resource.properties,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- resource.properties	27 Sep 2004 05:12:38 -0000	1.93
  +++ resource.properties	25 Oct 2004 14:32:21 -0000	1.94
  @@ -1245,4 +1245,6 @@
   
   indexOutOfBoundsException00=IndexOutOfBoundsException:
   
  -saxToDomFailed00=Exception caught while converting attributes from SAX to DOM
  \ No newline at end of file
  +saxToDomFailed00=Exception caught while converting attributes from SAX to DOM
  +
  +cannotFindPartForOperation00=Cannot find part [{0}] for operation [{1}] using MIMEContent
type [{2}] 
  \ No newline at end of file
  
  
  
  1.108     +4 -0      ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- SymbolTable.java	20 Oct 2004 13:49:35 -0000	1.107
  +++ SymbolTable.java	25 Oct 2004 14:32:21 -0000	1.108
  @@ -2879,6 +2879,10 @@
                   if (obj instanceof MIMEContent) {
                       MIMEContent content = (MIMEContent) obj;
                       TypeEntry typeEntry = findPart(op, content.getPart());
  +                    if (typeEntry == null) {
  +                        throw new RuntimeException(Messages.getMessage("cannotFindPartForOperation00",
content.getPart(),
  +                                op.getName(), content.getType()));
  +                    }
                       String dims = typeEntry.getDimensions();
   
                       if ((dims.length() <= 0)
  
  
  

Mime
View raw message