avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl DefaultMethodInvocationHandler.java
Date Sun, 07 Apr 2002 09:21:33 GMT
hammant     02/04/07 01:21:33

  Modified:    altrmi/src/java/org/apache/excalibur/altrmi/server/impl
                        DefaultMethodInvocationHandler.java
  Log:
  a debug tap for troublesome code
  
  Revision  Changes    Path
  1.2       +5 -2      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/DefaultMethodInvocationHandler.java
  
  Index: DefaultMethodInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/DefaultMethodInvocationHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultMethodInvocationHandler.java	3 Apr 2002 11:29:55 -0000	1.1
  +++ DefaultMethodInvocationHandler.java	7 Apr 2002 09:21:33 -0000	1.2
  @@ -41,7 +41,7 @@
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
    * @author Vinay Chandrasekharan <a href="mailto:vinay_chandran@users.sourceforge.net">vinay_chandran@users.sourceforge.net</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class DefaultMethodInvocationHandler implements MethodInvocationHandler {
   
  @@ -169,10 +169,13 @@
   
           try {
               WeakReference wr = (WeakReference) mRefBeans.get(request.getReferenceID());
  +            if (wr == null) {
  +                System.out.println("missing weak reference for referenceID - " + request.getReferenceID());
  +            }
               Object beanImpl = wr.get();
   
               if (beanImpl == null) {
  -                System.out.println("Missin for " + request.getReferenceID());
  +                System.out.println("Missin beanImpl for " + request.getReferenceID());
   
                   return new NoSuchReferenceReply(request.getReferenceID());
               }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message