[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/http ...

Ron Sigal ron_sigal at yahoo.com
Sun Oct 29 15:40:07 EST 2006


  User: rsigal  
  Date: 06/10/29 15:40:07

  Modified:    src/main/org/jboss/remoting/transport/http 
                        HTTPClientInvoker.java
  Log:
  JBREM-620:  Will throw original server side exception if wrapped in an InvocationResponse.
  
  Revision  Changes    Path
  1.31      +11 -1     JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HTTPClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -b -r1.30 -r1.31
  --- HTTPClientInvoker.java	21 Sep 2006 07:32:36 -0000	1.30
  +++ HTTPClientInvoker.java	29 Oct 2006 20:40:07 -0000	1.31
  @@ -24,6 +24,7 @@
   
   import org.jboss.logging.Logger;
   import org.jboss.remoting.CannotConnectException;
  +import org.jboss.remoting.Client;
   import org.jboss.remoting.ConnectionFailedException;
   import org.jboss.remoting.InvocationRequest;
   import org.jboss.remoting.InvocationResponse;
  @@ -261,7 +262,16 @@
                  }
               }
            }
  -         // if got here, wasn't configured to not throw exception, so will throw it
  +         
  +         
  +         // if got here, wasn't configured to not throw exception, so will throw it.
  +         
  +         // In this case, MicroRemoteClientInvoker will throw the exception carried by
  +         // the InvocationResponse.
  +         if (result instanceof InvocationResponse)
  +            return result;
  +         
  +         // Otherwise, create a new WebServerError.
            if(result instanceof String)
            {
               WebServerError ex = new WebServerError((String)result);
  
  
  



More information about the jboss-cvs-commits mailing list