axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils resources.properties
Date Sun, 23 Dec 2001 14:52:37 GMT
rubys       01/12/23 06:52:37

  Modified:    java/src/org/apache/axis AxisEngine.java SimpleChain.java
               java/src/org/apache/axis/attachments
                        ManagedMemoryDataSource.java
               java/src/org/apache/axis/client Call.java
               java/src/org/apache/axis/encoding BeanSerializer.java
               java/src/org/apache/axis/utils resources.properties
  Log:
  NullPointerException => InternalException
  
  Revision  Changes    Path
  1.62      +2 -2      xml-axis/java/src/org/apache/axis/AxisEngine.java
  
  Index: AxisEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisEngine.java,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- AxisEngine.java	2001/12/23 12:33:31	1.61
  +++ AxisEngine.java	2001/12/23 14:52:36	1.62
  @@ -64,6 +64,7 @@
   import org.apache.axis.encoding.TypeMappingRegistry;
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.handlers.soap.SOAPService;
  +import org.apache.axis.InternalException;
   import org.apache.axis.session.Session;
   import org.apache.axis.session.SimpleSession;
   import org.apache.axis.utils.JavaUtils;
  @@ -176,8 +177,7 @@
           try {
               configProvider.configureEngine(this);
           } catch (Exception e) {
  -            e.printStackTrace();
  -            throw new NullPointerException(JavaUtils.getMessage("problemDeploying00"));
  +            throw new InternalException(e);
           }
           
           if (category.isDebugEnabled()) {
  
  
  
  1.37      +3 -2      xml-axis/java/src/org/apache/axis/SimpleChain.java
  
  Index: SimpleChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SimpleChain.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- SimpleChain.java	2001/12/21 12:13:40	1.36
  +++ SimpleChain.java	2001/12/23 14:52:36	1.37
  @@ -59,6 +59,7 @@
   import org.apache.axis.strategies.InvocationStrategy;
   import org.apache.axis.strategies.WSDLGenStrategy;
   import org.apache.axis.utils.JavaUtils;
  +import org.apache.axis.InternalException;
   import org.apache.log4j.Category;
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
  @@ -171,11 +172,11 @@
   
       public void addHandler(Handler handler) {
           if (handler == null)
  -            throw new NullPointerException(
  +            throw new InternalException(
                       JavaUtils.getMessage("nullHandler00", "SimpleChain::addHandler"));
   
           if (invoked)
  -            throw new NullPointerException(
  +            throw new InternalException(
                       JavaUtils.getMessage("addAfterInvoke00", "SimpleChain::addHandler"));
           
           if ( handlers == null ) handlers = new Vector();
  
  
  
  1.6       +2 -2      xml-axis/java/src/org/apache/axis/attachments/ManagedMemoryDataSource.java
  
  Index: ManagedMemoryDataSource.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/ManagedMemoryDataSource.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ManagedMemoryDataSource.java	2001/12/07 19:48:53	1.5
  +++ ManagedMemoryDataSource.java	2001/12/23 14:52:36	1.6
  @@ -55,8 +55,8 @@
   
   package org.apache.axis.attachments;
   import org.apache.log4j.Category;
  +import org.apache.axis.InternalException;
   
  -
   /**
    * @author Rick Rineholt 
    */
  @@ -500,7 +500,7 @@
               if(debugEnabled) category.debug(hashCode() + "read(" + off + ", " + len +")");
               if(deleted) throw new java.io.IOException("Resource has been deleted.");
               if(readClosed) throw new java.io.IOException("Stream is closed.");
  -            if (b == null) throw new NullPointerException(
  +            if (b == null) throw new InternalException(
                    "input buffer is null");
               if (off < 0)  throw new IndexOutOfBoundsException
                   ("Offset is negative: " + off);
  
  
  
  1.55      +2 -1      xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- Call.java	2001/12/23 12:33:31	1.54
  +++ Call.java	2001/12/23 14:52:37	1.55
  @@ -75,6 +75,7 @@
   import org.apache.axis.transport.http.HTTPConstants;
   import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.attachments.AttachmentPart; 
  +import org.apache.axis.InternalException;
   import javax.xml.rpc.encoding.XMLType ;
   
   import org.apache.log4j.Category;
  @@ -758,7 +759,7 @@
           if (Transport.class.isAssignableFrom(transportClass))
               transports.put(protocol, transportClass);
           else
  -            throw new NullPointerException();
  +            throw new InternalException(transportClass.toString());
       }
   
       /**
  
  
  
  1.30      +2 -3      xml-axis/java/src/org/apache/axis/encoding/BeanSerializer.java
  
  Index: BeanSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/BeanSerializer.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- BeanSerializer.java	2001/12/23 12:33:32	1.29
  +++ BeanSerializer.java	2001/12/23 14:52:37	1.30
  @@ -171,7 +171,7 @@
                  pd = processPropertyDescriptors(rawPd,cls);
               } catch (Exception e) {
                  // this should never happen
  -               throw new NullPointerException(e.toString());
  +               throw new InternalException(e);
               }
               // If this is an enumeration class, delegate all serialization to the enum
serializer
               if (isEnumClass(cls)) {
  @@ -372,8 +372,7 @@
               try {
                   bs.setValue(cls.newInstance());
               } catch (Exception e) {
  -                // I'm not allowed to throw much, so I throw what I can!
  -                throw new NullPointerException(e.toString());
  +                throw new InternalException(e);
               }
   
               return bs;
  
  
  
  1.33      +0 -1      xml-axis/java/src/org/apache/axis/utils/resources.properties
  
  Index: resources.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/resources.properties,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- resources.properties	2001/12/21 12:13:40	1.32
  +++ resources.properties	2001/12/23 14:52:37	1.33
  @@ -446,7 +446,6 @@
   password00=Password:  {0}
   perhaps00=Perhaps there will be a form for invoking the service here...
   popHandler00=Popping handler {0}
  -problemDeploying00=Problem deploying!
   process00=Processing ''{0}''
   processFile00=Processing file {0}
   pushHandler00=Pushing handler {0}
  
  
  

Mime
View raw message