incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: incubator-altrmi/src/test/org/apache/altrmi/test/socket CallbackEnabledCustomStreamTestCase.java
Date Thu, 20 Feb 2003 07:36:59 GMT
hammant     2003/02/19 23:36:59

  Modified:    .        default.properties
               src/java/org/apache/altrmi/client ClientMonitor.java
               src/java/org/apache/altrmi/client/impl
                        AbstractConnectionPinger.java
                        DefaultClientMonitor.java DefaultProxyHelper.java
                        DumbClientMonitor.java DynamicStub.java
                        ServerSideClassFactory.java
               src/java/org/apache/altrmi/client/impl/callback/stream
                        CallbackEnabledClientCustomStreamReadWriter.java
               src/java/org/apache/altrmi/client/impl/direct
                        AbstractDirectInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/multiple
                        RotatingMultipleInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/piped
                        AbstractPipedStreamInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/rmi
                        RmiClientInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/socket
                        AbstractSocketStreamInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/stream
                        StreamInvocationHandler.java
               src/java/org/apache/altrmi/client/impl/subscriber
                        AbstractSubscriberImpl.java
                        InterfaceLookupWrapper.java
               src/java/org/apache/altrmi/common ReplyConstants.java
               src/java/org/apache/altrmi/generator
                        BCELProxyGeneratorImpl.java ProxyGeneratorImpl.java
               src/java/org/apache/altrmi/remotable
                        RemotableExtensionManager.java
               src/java/org/apache/altrmi/server/impl
                        DefaultMethodInvocationHandler.java
                        StreamServerConnection.java
               src/java/org/apache/altrmi/server/impl/adapters
                        InvocationHandlerAdapter.java
                        PublicationAdapter.java
               src/java/org/apache/altrmi/server/impl/callback/stream
                        CallbackEnabledCustomStreamReadWriter.java
               src/java/org/apache/altrmi/server/impl/direct
                        DirectMarshalledServer.java DirectServer.java
               src/test/org/apache/altrmi/multiprocess
                        AbstractDyingServerTestCase.java
               src/test/org/apache/altrmi/test
                        BasicClientServerTestCase.java
               src/test/org/apache/altrmi/test/dynamic
                        DynamicInvokerTestCase.java
               src/test/org/apache/altrmi/test/invalidstate
                        BouncingServerTestCase.java
               src/test/org/apache/altrmi/test/socket
                        CallbackEnabledCustomStreamTestCase.java
  Added:       src/java/org/apache/altrmi/client
                        ConnectionRefusedException.java
                        InvocationException.java
                        NoSuchReferenceException.java
                        NoSuchSessionException.java
                        NotPublishedException.java
               src/java/org/apache/altrmi/common
                        InvocationExceptionReply.java
                        NoSuchSessionReply.java
  Removed:     src/java/org/apache/altrmi/common
                        ConnectionRefusedException.java
                        InvocationException.java
                        NoSuchReferenceException.java
                        NoSuchSessionException.java
                        NotPublishedException.java
  Log:
  Start of move of API elements out of common package
  
  Revision  Changes    Path
  1.2       +1 -1      incubator-altrmi/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/default.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- default.properties	16 Feb 2003 15:56:54 -0000	1.1
  +++ default.properties	20 Feb 2003 07:36:57 -0000	1.2
  @@ -8,7 +8,7 @@
   name=altrmi
   Name=AltRMI
   dir-name=altrmi
  -version=0.9.1
  +version=0.9.2
   year=2002-2003
   
   project.home=.
  
  
  
  1.3       +1 -2      incubator-altrmi/src/java/org/apache/altrmi/client/ClientMonitor.java
  
  Index: ClientMonitor.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/ClientMonitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClientMonitor.java	17 Feb 2003 20:27:39 -0000	1.2
  +++ ClientMonitor.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -55,7 +55,6 @@
   package org.apache.altrmi.client;
   
   import org.apache.altrmi.common.Request;
  -import org.apache.altrmi.common.InvocationException;
   
   import java.io.IOException;
   
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/client/ConnectionRefusedException.java
  
  Index: ConnectionRefusedException.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.client;
  
  import org.apache.altrmi.common.ConnectionException;
  
  /**
   * Class ConnectionRefusedException
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class ConnectionRefusedException extends ConnectionException
  {
  
      static final long serialVersionUID = 3196545824903033003L;
  
      /**
       * Constructor ConnectionRefusedException
       *
       *
       * @param msg message that is the cause root of the exception
       *
       */
      public ConnectionRefusedException( String msg )
      {
          super( msg );
      }
  }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/client/InvocationException.java
  
  Index: InvocationException.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.client;
  
  import java.io.Serializable;
  
  /**
   * Class InvocationException
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class InvocationException extends RuntimeException implements Serializable
  {
  
      private Throwable m_throwableCause;
  
      /**
       * Constructor InvocationException
       *
       *
       * @param msg the message that is the root cause.
       *
       */
      public InvocationException( String msg )
      {
          super( msg );
      }
  
      public InvocationException(String message, Throwable cause)
      {
          super(message);
          m_throwableCause = cause;
      }
  
      public Throwable getCause()
      {
          return m_throwableCause;
      }
  
      public String getMessage()
      {
          return super.getMessage() + (m_throwableCause != null ? " : " + m_throwableCause.getMessage() : "");
      }
  
  }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/client/NoSuchReferenceException.java
  
  Index: NoSuchReferenceException.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.client;
  
  /**
   * Class NoSuchReferenceException
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class NoSuchReferenceException extends InvocationException
  {
  
      /**
       * Constructor NoSuchReferenceException
       *
       * @param referenceID the reference id
       *
       */
      public NoSuchReferenceException( Long referenceID )
      {
          super( "There is no instance on the server mapped to referenceID " + referenceID );
      }
  }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/client/NoSuchSessionException.java
  
  Index: NoSuchSessionException.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.client;
  
  /**
   * Class NoSuchSessionException
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class NoSuchSessionException extends InvocationException
  {
  
      /**
       * Constructor NoSuchSessionException
       *
       * @param sessionID the reference id
       *
       */
      public NoSuchSessionException( Long sessionID )
      {
          super( "There is no instance on the server mapped to sessionID " + sessionID +
                  ". The server may have been bounced since the client first did a lookup.");
      }
  }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/client/NotPublishedException.java
  
  Index: NotPublishedException.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.client;
  
  
  /**
   * Class NotPublishedException
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class NotPublishedException extends InvocationException
  {
  
      /**
       * Constructor NotPublishedException
       *
       *
       * @param publishedServiceName the service name that is not published
       * @param objectName the object name within that that is not published
       *
       */
      public NotPublishedException( String publishedServiceName, String objectName )
      {
          super( "Service '" + publishedServiceName + "' object '" + objectName
                 + "' not published by server" );
      }
  }
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/AbstractConnectionPinger.java
  
  Index: AbstractConnectionPinger.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/AbstractConnectionPinger.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractConnectionPinger.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ AbstractConnectionPinger.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -57,7 +57,7 @@
   import org.apache.altrmi.client.ClientInvocationHandler;
   import org.apache.altrmi.client.ConnectionPinger;
   import org.apache.altrmi.client.ConnectionClosedException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.ThreadContext;
   
   /**
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/DefaultClientMonitor.java
  
  Index: DefaultClientMonitor.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/DefaultClientMonitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultClientMonitor.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ DefaultClientMonitor.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -56,7 +56,7 @@
   
   import org.apache.altrmi.client.ClientMonitor;
   import org.apache.altrmi.client.ConnectionClosedException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Request;
   
   import java.io.IOException;
  
  
  
  1.3       +24 -3     incubator-altrmi/src/java/org/apache/altrmi/client/impl/DefaultProxyHelper.java
  
  Index: DefaultProxyHelper.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/DefaultProxyHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultProxyHelper.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ DefaultProxyHelper.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -57,7 +57,9 @@
   import org.apache.altrmi.client.ClientInvocationHandler;
   import org.apache.altrmi.client.Proxy;
   import org.apache.altrmi.client.ProxyHelper;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
  +import org.apache.altrmi.client.NoSuchSessionException;
  +import org.apache.altrmi.client.NoSuchReferenceException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.ReplyConstants;
   import org.apache.altrmi.common.ExceptionReply;
  @@ -70,6 +72,9 @@
   import org.apache.altrmi.common.MethodReply;
   import org.apache.altrmi.common.MethodRequest;
   import org.apache.altrmi.common.RawRequest;
  +import org.apache.altrmi.common.NoSuchSessionReply;
  +import org.apache.altrmi.common.NoSuchReferenceReply;
  +import org.apache.altrmi.common.InvocationExceptionReply;
   
   import java.lang.reflect.Array;
   import java.util.Vector;
  @@ -431,6 +436,22 @@
               ExceptionReply er = (ExceptionReply)reply;
               return er.getReplyException();
           }
  +        else if( reply.getReplyCode() == ReplyConstants.NOSUCHSESSIONREPLY )
  +        {
  +            NoSuchSessionReply nssr = (NoSuchSessionReply)reply;
  +            return new NoSuchSessionException(nssr.getSessionID());
  +        }
  +        //TODO remove some of these if clover indicates they are not used?
  +        else if( reply.getReplyCode() == ReplyConstants.NOSUCHREFERENCEREPLY )
  +        {
  +            NoSuchReferenceReply nsrr = (NoSuchReferenceReply)reply;
  +            return new NoSuchReferenceException(nsrr.getReferenceID());
  +        }
  +        else if( reply.getReplyCode() == ReplyConstants.INVOCATIONEXCEPTIONREPLY )
  +        {
  +            InvocationExceptionReply ier = (InvocationExceptionReply) reply;
  +            return new InvocationException(ier.getMessage());
  +        }
           else
           {
               return new InvocationException( "Internal Error : Unknown reply type :"
  @@ -477,7 +498,7 @@
               throw (Error) t;
             } else {
               t.printStackTrace();
  -            throw new org.apache.altrmi.common.InvocationException("Should never get here: " +t.getMessage());
  +            throw new org.apache.altrmi.client.InvocationException("Should never get here: " +t.getMessage());
             }
           }
   
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/DumbClientMonitor.java
  
  Index: DumbClientMonitor.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/DumbClientMonitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DumbClientMonitor.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ DumbClientMonitor.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -56,7 +56,7 @@
   
   import org.apache.altrmi.client.ClientMonitor;
   import org.apache.altrmi.client.ConnectionClosedException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Request;
   
   import java.io.IOException;
  
  
  
  1.3       +1 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/DynamicStub.java
  
  Index: DynamicStub.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/DynamicStub.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DynamicStub.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ DynamicStub.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -133,8 +133,7 @@
               else
               {
                   t.printStackTrace();
  -                throw new org.apache.altrmi.common.
  -                        InvocationException(
  +                throw new org.apache.altrmi.client.InvocationException(
                       "Should never get here: " + t.getMessage());
               }
           }
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/ServerSideClassFactory.java
  
  Index: ServerSideClassFactory.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/ServerSideClassFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ServerSideClassFactory.java	17 Feb 2003 20:27:40 -0000	1.2
  +++ ServerSideClassFactory.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -62,7 +62,7 @@
   import org.apache.altrmi.common.ClassReply;
   import org.apache.altrmi.common.ClassRequest;
   import org.apache.altrmi.common.ClassRetrievalFailedReply;
  -import org.apache.altrmi.common.NotPublishedException;
  +import org.apache.altrmi.client.NotPublishedException;
   import org.apache.altrmi.common.RequestFailedReply;
   import org.apache.altrmi.common.ReplyConstants;
   
  
  
  
  1.3       +3 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/callback/stream/CallbackEnabledClientCustomStreamReadWriter.java
  
  Index: CallbackEnabledClientCustomStreamReadWriter.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/callback/stream/CallbackEnabledClientCustomStreamReadWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CallbackEnabledClientCustomStreamReadWriter.java	17 Feb 2003 20:27:41 -0000	1.2
  +++ CallbackEnabledClientCustomStreamReadWriter.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -65,6 +65,7 @@
   import java.net.SocketException;
   
   import org.apache.altrmi.client.impl.ClientStreamReadWriter;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.*;
   import org.apache.altrmi.server.Server;
   import org.apache.altrmi.server.PublicationException;
  @@ -252,7 +253,7 @@
                   }
                   catch (InterruptedException e)
                   {
  -                    System.out.println("--> hee");
  +                    System.out.println("--> InterrupedException ");
                       e.printStackTrace();
                   }
                   m_replyLockSyncedOn = false;
  
  
  
  1.3       +4 -4      incubator-altrmi/src/java/org/apache/altrmi/client/impl/direct/AbstractDirectInvocationHandler.java
  
  Index: AbstractDirectInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/direct/AbstractDirectInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractDirectInvocationHandler.java	17 Feb 2003 20:27:41 -0000	1.2
  +++ AbstractDirectInvocationHandler.java	20 Feb 2003 07:36:57 -0000	1.3
  @@ -57,13 +57,13 @@
   import java.io.IOException;
   import org.apache.altrmi.client.ClientMonitor;
   import org.apache.altrmi.client.impl.AbstractClientInvocationHandler;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
   import org.apache.altrmi.common.MethodRequest;
  -import org.apache.altrmi.common.NoSuchReferenceException;
  +import org.apache.altrmi.client.NoSuchReferenceException;
   import org.apache.altrmi.common.NoSuchReferenceReply;
  -import org.apache.altrmi.common.NotPublishedException;
  +import org.apache.altrmi.client.NotPublishedException;
   import org.apache.altrmi.common.NotPublishedReply;
   import org.apache.altrmi.common.PublishedNameRequest;
   import org.apache.altrmi.common.TryLaterReply;
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/multiple/RotatingMultipleInvocationHandler.java
  
  Index: RotatingMultipleInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/multiple/RotatingMultipleInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RotatingMultipleInvocationHandler.java	17 Feb 2003 20:27:42 -0000	1.2
  +++ RotatingMultipleInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -59,7 +59,7 @@
   import java.util.Iterator;
   import java.util.List;
   import org.apache.altrmi.client.ClientInvocationHandler;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
   import org.apache.altrmi.common.OpenConnectionReply;
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/piped/AbstractPipedStreamInvocationHandler.java
  
  Index: AbstractPipedStreamInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/piped/AbstractPipedStreamInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractPipedStreamInvocationHandler.java	17 Feb 2003 20:28:05 -0000	1.2
  +++ AbstractPipedStreamInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -62,7 +62,7 @@
   import org.apache.altrmi.client.impl.ClientStreamReadWriter;
   import org.apache.altrmi.client.impl.stream.StreamInvocationHandler;
   import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   
   /**
    * Class AbstractPipedStreamInvocationHandler
  
  
  
  1.3       +4 -4      incubator-altrmi/src/java/org/apache/altrmi/client/impl/rmi/RmiClientInvocationHandler.java
  
  Index: RmiClientInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/rmi/RmiClientInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RmiClientInvocationHandler.java	17 Feb 2003 20:28:05 -0000	1.2
  +++ RmiClientInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -63,13 +63,13 @@
   import org.apache.altrmi.client.ClientMonitor;
   import org.apache.altrmi.client.impl.AbstractClientInvocationHandler;
   import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
   import org.apache.altrmi.common.MethodRequest;
  -import org.apache.altrmi.common.NoSuchReferenceException;
  +import org.apache.altrmi.client.NoSuchReferenceException;
   import org.apache.altrmi.common.NoSuchReferenceReply;
  -import org.apache.altrmi.common.NotPublishedException;
  +import org.apache.altrmi.client.NotPublishedException;
   import org.apache.altrmi.common.NotPublishedReply;
   import org.apache.altrmi.common.PublishedNameRequest;
   import org.apache.altrmi.common.TryLaterReply;
  
  
  
  1.4       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/socket/AbstractSocketStreamInvocationHandler.java
  
  Index: AbstractSocketStreamInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/socket/AbstractSocketStreamInvocationHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractSocketStreamInvocationHandler.java	17 Feb 2003 20:28:05 -0000	1.3
  +++ AbstractSocketStreamInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.4
  @@ -61,7 +61,7 @@
   import org.apache.altrmi.client.impl.ClientStreamReadWriter;
   import org.apache.altrmi.client.impl.stream.StreamInvocationHandler;
   import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.ConnectionRefusedException;
  +import org.apache.altrmi.client.ConnectionRefusedException;
   import org.apache.altrmi.common.BadConnectionException;
   
   /**
  
  
  
  1.3       +11 -4     incubator-altrmi/src/java/org/apache/altrmi/client/impl/stream/StreamInvocationHandler.java
  
  Index: StreamInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/stream/StreamInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StreamInvocationHandler.java	17 Feb 2003 20:28:06 -0000	1.2
  +++ StreamInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -61,19 +61,21 @@
   import org.apache.altrmi.client.ClientMonitor;
   import org.apache.altrmi.client.impl.AbstractClientInvocationHandler;
   import org.apache.altrmi.client.impl.ClientStreamReadWriter;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
   import org.apache.altrmi.common.MethodRequest;
  -import org.apache.altrmi.common.NoSuchReferenceException;
  +import org.apache.altrmi.client.NoSuchReferenceException;
   import org.apache.altrmi.common.NoSuchReferenceReply;
  -import org.apache.altrmi.common.NotPublishedException;
  +import org.apache.altrmi.client.NotPublishedException;
  +import org.apache.altrmi.client.NoSuchSessionException;
   import org.apache.altrmi.common.NotPublishedReply;
   import org.apache.altrmi.common.PublishedNameRequest;
   import org.apache.altrmi.common.TryLaterReply;
   import org.apache.altrmi.common.RequestConstants;
   import org.apache.altrmi.common.ReplyConstants;
   import org.apache.altrmi.common.ClientInvocationAbendReply;
  +import org.apache.altrmi.common.NoSuchSessionReply;
   
   /**
    * Class StreamInvocationHandler
  @@ -205,6 +207,11 @@
                               {
                                   throw new NoSuchReferenceException( ( (NoSuchReferenceReply)reply )
                                                                       .getReferenceID() );
  +                            }
  +                            else if( reply instanceof NoSuchSessionReply )
  +                            {
  +                                throw new NoSuchSessionException( ( (NoSuchSessionReply)reply )
  +                                                                    .getSessionID() );
                               }
                               else if( reply instanceof NotPublishedReply )
                               {
  
  
  
  1.3       +1 -1      incubator-altrmi/src/java/org/apache/altrmi/client/impl/subscriber/AbstractSubscriberImpl.java
  
  Index: AbstractSubscriberImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/subscriber/AbstractSubscriberImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractSubscriberImpl.java	17 Feb 2003 20:28:06 -0000	1.2
  +++ AbstractSubscriberImpl.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -70,7 +70,7 @@
   import org.apache.altrmi.client.LookupSource;
   import org.apache.altrmi.common.Authentication;
   import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   
   /**
    * An abstract base class to be used in conjunction with <code>AbstractSubscriber</code>
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/client/impl/subscriber/InterfaceLookupWrapper.java
  
  Index: InterfaceLookupWrapper.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/client/impl/subscriber/InterfaceLookupWrapper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InterfaceLookupWrapper.java	17 Feb 2003 20:28:06 -0000	1.2
  +++ InterfaceLookupWrapper.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -61,7 +61,7 @@
   import org.apache.altrmi.client.InterfaceLookup;
   import org.apache.altrmi.common.Authentication;
   import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   
   /**
    * The <code>AbstractInterfaceLookupFactory</code> uses this class to wrap the
  
  
  
  1.3       +3 -0      incubator-altrmi/src/java/org/apache/altrmi/common/ReplyConstants.java
  
  Index: ReplyConstants.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/common/ReplyConstants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ReplyConstants.java	17 Feb 2003 20:28:36 -0000	1.2
  +++ ReplyConstants.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -150,4 +150,7 @@
   
       int CLIENTABEND = 108;
   
  +    int INVOCATIONEXCEPTIONREPLY = 109;
  +
  +    int NOSUCHSESSIONREPLY = 110;
   }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/common/InvocationExceptionReply.java
  
  Index: InvocationExceptionReply.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.common;
  
  import java.io.ObjectOutput;
  import java.io.IOException;
  import java.io.ObjectInput;
  
  /**
   * Class InvocationExceptionReply
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public class InvocationExceptionReply extends Reply {
  
  //    static final long serialVersionUID = TODO;
  
      private String m_message;
  
      public InvocationExceptionReply(String message) {
          m_message = message;
      }
  
      public String getMessage() {
          return m_message;
      }
  
      public int getReplyCode() {
          return ReplyConstants.INVOCATIONEXCEPTIONREPLY;
      }
  
      public void writeExternal( ObjectOutput out ) throws IOException
      {
          out.writeObject(m_message);
      }
  
      public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException
      {
          m_message = (String) in.readObject();
      }
  
  }
  
  
  
  1.1                  incubator-altrmi/src/java/org/apache/altrmi/common/NoSuchSessionReply.java
  
  Index: NoSuchSessionReply.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *    "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software
   *    itself, if and wherever such third-party acknowledgments
   *    normally appear.
   *
   * 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation. For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.altrmi.common;
  
  import java.io.IOException;
  import java.io.ObjectInput;
  import java.io.ObjectOutput;
  
  /**
   * Class NoSuchSessionReply
   *
   *
   * @author Paul Hammant
   * @version $Revision: 1.1 $
   */
  public final class NoSuchSessionReply extends NotPublishedReply
  {
  //    static final long serialVersionUID = TODO;
  
      private Long m_sessionID;
  
      /**
       * Constructor NoSuchSessionReply
       *
       */
      public NoSuchSessionReply()
      {
      }
  
      /**
       * Constructor NoSuchSessionReply
       *
       *
       * @param sessionID the reference identifier
       *
       */
      public NoSuchSessionReply( Long sessionID )
      {
          m_sessionID = sessionID;
      }
  
      /**
       * Gets number that represents type for this class.
       * This is quicker than instanceof for type checking.
       *
       * @return the representative code
       * @see ReplyConstants
       *
       */
      public int getReplyCode()
      {
          return ReplyConstants.NOSUCHSESSIONREPLY;
      }
  
      /**
       * Get the session ID.
       *
       *
       * @return the session id
       *
       */
      public Long getSessionID()
      {
          return m_sessionID;
      }
  
      public void writeExternal( ObjectOutput out ) throws IOException
      {
          super.writeExternal( out );
          out.writeObject( m_sessionID );
      }
  
      public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException
      {
  
          super.readExternal( in );
  
          m_sessionID = (Long)in.readObject();
      }
  }
  
  
  
  1.3       +4 -4      incubator-altrmi/src/java/org/apache/altrmi/generator/BCELProxyGeneratorImpl.java
  
  Index: BCELProxyGeneratorImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/generator/BCELProxyGeneratorImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BCELProxyGeneratorImpl.java	17 Feb 2003 20:28:38 -0000	1.2
  +++ BCELProxyGeneratorImpl.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -484,7 +484,7 @@
                *      } else
                *         {
                *                t.printStackTrace();
  -             *                 throw new org.apache.altrmi.common.
  +             *                 throw new org.apache.altrmi.client.
                                  InvocationException("Should never get here:" +t.getMessage());
                *      }
                *     }
  @@ -675,7 +675,7 @@
                   Constants.INVOKEVIRTUAL));
           il.append(
               m_factory.createNew(
  -                "org.apache.altrmi.common.InvocationException"));
  +                "org.apache.altrmi.client.InvocationException"));
           il.append(InstructionConstants.DUP);
           il.append(m_factory.createNew("java.lang.StringBuffer"));
           il.append(InstructionConstants.DUP);
  @@ -711,7 +711,7 @@
                   Constants.INVOKEVIRTUAL));
           il.append(
               m_factory.createInvoke(
  -                "org.apache.altrmi.common.InvocationException",
  +                "org.apache.altrmi.client.InvocationException",
                   "<init>",
                   Type.VOID,
                   new Type[] { Type.STRING },
  
  
  
  1.3       +4 -4      incubator-altrmi/src/java/org/apache/altrmi/generator/ProxyGeneratorImpl.java
  
  Index: ProxyGeneratorImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/generator/ProxyGeneratorImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProxyGeneratorImpl.java	17 Feb 2003 20:28:38 -0000	1.2
  +++ ProxyGeneratorImpl.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -406,7 +406,7 @@
           classSource.println( "      } else { " );
           classSource.println( "        t.printStackTrace(); " );
           classSource.println(
  -            "        throw new org.apache.altrmi.common."
  +            "        throw new org.apache.altrmi.client."
               + "InvocationException(\"Should never get here: \" +t.getMessage());");
           classSource.println( "      }" );
           classSource.println( "    }" );
  @@ -445,7 +445,7 @@
           classSource.println( "      } else { " );
           classSource.println( "        t.printStackTrace(); " );
           classSource.println(
  -            "        throw new org.apache.altrmi.common."
  +            "        throw new org.apache.altrmi.client."
               + "InvocationException(\"Should never get here: \" +t.getMessage());");
           classSource.println( "      }" );
           classSource.println( "    } finally { " );
  @@ -472,7 +472,7 @@
           classSource.println( "      } else { " );
           classSource.println( "        t.printStackTrace(); " );
           classSource.println(
  -            "        throw new org.apache.altrmi.common."
  +            "        throw new org.apache.altrmi.client."
               + "InvocationException(\"Should never get here: \" +t.getMessage());");
           classSource.println( "      }" );
           classSource.println( "    }" );
  
  
  
  1.3       +1 -1      incubator-altrmi/src/java/org/apache/altrmi/remotable/RemotableExtensionManager.java
  
  Index: RemotableExtensionManager.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/remotable/RemotableExtensionManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RemotableExtensionManager.java	17 Feb 2003 20:28:38 -0000	1.2
  +++ RemotableExtensionManager.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -429,7 +429,7 @@
               m_classpath += File.pathSeparator
                   + getClassLocation(
                       Class.forName(
  -                        "org.apache.altrmi.common.InvocationException"));
  +                        "org.apache.altrmi.client.InvocationException"));
   
           }
           catch (ClassNotFoundException e)
  
  
  
  1.3       +5 -16     incubator-altrmi/src/java/org/apache/altrmi/server/impl/DefaultMethodInvocationHandler.java
  
  Index: DefaultMethodInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/DefaultMethodInvocationHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultMethodInvocationHandler.java	17 Feb 2003 20:29:01 -0000	1.2
  +++ DefaultMethodInvocationHandler.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -62,13 +62,7 @@
   import java.util.WeakHashMap;
   import java.text.MessageFormat;
   
  -import org.apache.altrmi.common.InvocationException;
  -import org.apache.altrmi.common.Reply;
  -import org.apache.altrmi.common.ExceptionReply;
  -import org.apache.altrmi.common.FacadeRefHolder;
  -import org.apache.altrmi.common.MethodReply;
  -import org.apache.altrmi.common.MethodRequest;
  -import org.apache.altrmi.common.NoSuchReferenceReply;
  +import org.apache.altrmi.common.*;
   import org.apache.altrmi.server.Publisher;
   import org.apache.altrmi.server.MethodInvocationHandler;
   import org.apache.altrmi.server.PublicationDescription;
  @@ -244,8 +238,7 @@
           {
   
               m_methodInvocationMonitor.missingMethod(methodSignature, connectionDetails);
  -            return new ExceptionReply(
  -                new InvocationException( "Method '"+ methodSignature +"' not present in impl" ) );
  +            return new InvocationExceptionReply("Method '"+ methodSignature +"' not present in impl");
           }
   
           Method method = (Method) m_methodMap.get( methodSignature );
  @@ -290,18 +283,14 @@
               }
               else
               {
  -                return new ExceptionReply(
  -                    new InvocationException(
  -                        "Exception was not serializable :" + t.getClass().getName() ) );
  +                return new InvocationExceptionReply("Exception was not serializable :" + t.getClass().getName());
               }
           }
           catch( Throwable t )
           {
               m_methodInvocationMonitor.invocationException(beanImpl == null ? null : beanImpl.getClass(),
                       methodSignature, t, connectionDetails);
  -            return new ExceptionReply(
  -                new InvocationException(
  -                    "Some ServerSide exception problem :" + t.getMessage() ) );
  +            return new InvocationExceptionReply("Some ServerSide exception problem :" + t.getMessage());
           }
       }
   
  
  
  
  1.3       +3 -9      incubator-altrmi/src/java/org/apache/altrmi/server/impl/StreamServerConnection.java
  
  Index: StreamServerConnection.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/StreamServerConnection.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StreamServerConnection.java	17 Feb 2003 20:29:01 -0000	1.2
  +++ StreamServerConnection.java	20 Feb 2003 07:36:58 -0000	1.3
  @@ -59,13 +59,7 @@
   import java.io.InterruptedIOException;
   import java.net.SocketException;
   
  -import org.apache.altrmi.common.Reply;
  -import org.apache.altrmi.common.Request;
  -import org.apache.altrmi.common.EndConnectionReply;
  -import org.apache.altrmi.common.ConnectionException;
  -import org.apache.altrmi.common.BadConnectionException;
  -import org.apache.altrmi.common.ExceptionReply;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.common.*;
   import org.apache.altrmi.server.ServerConnection;
   import org.apache.altrmi.server.ServerMonitor;
   
  @@ -196,7 +190,7 @@
                   catch (NullPointerException npe)
                   {
                       m_serverMonitor.unexpectedException(this.getClass(), "StreamServerConnection.run(): Unexpected NPE", npe);
  -                    reply = new ExceptionReply(new InvocationException("NullPointerException on server: " + npe.getMessage()));
  +                    reply = new InvocationExceptionReply("NullPointerException on server: " + npe.getMessage());
                   }
               }
           }
  
  
  
  1.3       +43 -42    incubator-altrmi/src/java/org/apache/altrmi/server/impl/adapters/InvocationHandlerAdapter.java
  
  Index: InvocationHandlerAdapter.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/adapters/InvocationHandlerAdapter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InvocationHandlerAdapter.java	17 Feb 2003 20:29:02 -0000	1.2
  +++ InvocationHandlerAdapter.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -59,39 +59,7 @@
   import java.util.Iterator;
   import java.util.Vector;
   
  -import org.apache.altrmi.common.AuthenticationException;
  -import org.apache.altrmi.common.InvocationException;
  -import org.apache.altrmi.common.Reply;
  -import org.apache.altrmi.common.ReplyConstants;
  -import org.apache.altrmi.common.Request;
  -import org.apache.altrmi.common.RequestConstants;
  -import org.apache.altrmi.common.ClassReply;
  -import org.apache.altrmi.common.ClassRequest;
  -import org.apache.altrmi.common.ClassRetrievalFailedReply;
  -import org.apache.altrmi.common.ExceptionReply;
  -import org.apache.altrmi.common.GarbageCollectionReply;
  -import org.apache.altrmi.common.GarbageCollectionRequest;
  -import org.apache.altrmi.common.ListMethodsReply;
  -import org.apache.altrmi.common.ListMethodsRequest;
  -import org.apache.altrmi.common.ListReply;
  -import org.apache.altrmi.common.LookupReply;
  -import org.apache.altrmi.common.LookupRequest;
  -import org.apache.altrmi.common.MethodFacadeArrayReply;
  -import org.apache.altrmi.common.MethodFacadeReply;
  -import org.apache.altrmi.common.MethodFacadeRequest;
  -import org.apache.altrmi.common.MethodReply;
  -import org.apache.altrmi.common.MethodRequest;
  -import org.apache.altrmi.common.NotPublishedReply;
  -import org.apache.altrmi.common.OpenConnectionReply;
  -import org.apache.altrmi.common.OpenConnectionRequest;
  -import org.apache.altrmi.common.PingReply;
  -import org.apache.altrmi.common.RequestFailedReply;
  -import org.apache.altrmi.common.SameVMReply;
  -import org.apache.altrmi.common.SuspendedReply;
  -import org.apache.altrmi.common.MethodNameHelper;
  -import org.apache.altrmi.common.MethodAsyncRequest;
  -import org.apache.altrmi.common.RawRequest;
  -import org.apache.altrmi.common.NoSuchSessionException;
  +
   import org.apache.altrmi.server.Authenticator;
   import org.apache.altrmi.server.ClassRetrievalException;
   import org.apache.altrmi.server.ClassRetriever;
  @@ -101,6 +69,41 @@
   import org.apache.altrmi.server.impl.DefaultAuthenticator;
   import org.apache.altrmi.server.impl.DefaultMethodInvocationHandler;
   import org.apache.altrmi.server.impl.classretrievers.NoClassRetriever;
  +import org.apache.altrmi.common.Reply;
  +import org.apache.altrmi.common.Request;
  +import org.apache.altrmi.common.SuspendedReply;
  +import org.apache.altrmi.common.RequestConstants;
  +import org.apache.altrmi.common.MethodAsyncRequest;
  +import org.apache.altrmi.common.OpenConnectionRequest;
  +import org.apache.altrmi.common.PingReply;
  +import org.apache.altrmi.common.RequestFailedReply;
  +import org.apache.altrmi.common.MethodRequest;
  +import org.apache.altrmi.common.MethodFacadeRequest;
  +import org.apache.altrmi.common.ExceptionReply;
  +import org.apache.altrmi.common.NotPublishedReply;
  +import org.apache.altrmi.common.ReplyConstants;
  +import org.apache.altrmi.common.MethodReply;
  +import org.apache.altrmi.common.MethodFacadeReply;
  +import org.apache.altrmi.common.MethodNameHelper;
  +import org.apache.altrmi.common.MethodFacadeArrayReply;
  +import org.apache.altrmi.common.RawRequest;
  +import org.apache.altrmi.common.AuthenticationException;
  +import org.apache.altrmi.common.LookupReply;
  +import org.apache.altrmi.common.ClassRequest;
  +import org.apache.altrmi.common.ClassReply;
  +import org.apache.altrmi.common.ClassRetrievalFailedReply;
  +import org.apache.altrmi.common.SameVMReply;
  +import org.apache.altrmi.common.OpenConnectionReply;
  +import org.apache.altrmi.common.ListReply;
  +import org.apache.altrmi.common.GarbageCollectionRequest;
  +import org.apache.altrmi.common.InvocationExceptionReply;
  +import org.apache.altrmi.common.GarbageCollectionReply;
  +import org.apache.altrmi.common.ListMethodsRequest;
  +import org.apache.altrmi.common.ListMethodsReply;
  +import org.apache.altrmi.common.LookupRequest;
  +import org.apache.altrmi.common.NoSuchSessionReply;
  +
  +import javax.swing.*;
   
   /**
    * Class InvocationHandlerAdapter
  @@ -243,7 +246,7 @@
   
           if (!sessionExists(facadeRequest.getSession()))
           {
  -            return new ExceptionReply(new NoSuchSessionException(facadeRequest.getSession()));
  +            return new NoSuchSessionReply(facadeRequest.getSession());
           }
   
           String publishedThing = facadeRequest.getPublishedServiceName() + "_"
  @@ -312,7 +315,7 @@
   
           if (!sessionExists(methodFacadeRequest.getSession()))
           {
  -            return new ExceptionReply(new NoSuchSessionException(methodFacadeRequest.getSession()));
  +            return new NoSuchSessionReply(methodFacadeRequest.getSession());
           }
   
           for( int i = 0; i < beanImpls.length; i++ )
  @@ -365,7 +368,7 @@
   
           if (!sessionExists(methodFacadeRequest.getSession()))
           {
  -            return new ExceptionReply(new NoSuchSessionException(methodFacadeRequest.getSession()));
  +            return new NoSuchSessionReply(methodFacadeRequest.getSession());
           }
   
           MethodInvocationHandler mainMethodInvocationHandler = getMethodInvocationHandler(
  @@ -411,7 +414,7 @@
   
           if (!sessionExists(methodRequest.getSession()))
           {
  -            return new ExceptionReply(new NoSuchSessionException(methodRequest.getSession()));
  +            return new NoSuchSessionReply(methodRequest.getSession());
           }
   
           String publishedThing = methodRequest.getPublishedServiceName() + "_" + methodRequest.getObjectName();
  @@ -432,10 +435,9 @@
   
           if (!sessionExists(methodRequest.getSession()))
           {
  -            return new ExceptionReply(new NoSuchSessionException(methodRequest.getSession()));
  +            return new NoSuchSessionReply(methodRequest.getSession());
           }
   
  -
           String publishedThing = methodRequest.getPublishedServiceName() + "_" + methodRequest.getObjectName();
   
           if( !isPublished( publishedThing ) )
  @@ -574,8 +576,7 @@
           Long session = gcr.getSession();
           if( !sessionExists( session ) )
           {
  -            return new ExceptionReply(
  -                new InvocationException( "TODO - you dirty rat/hacker" ) );
  +            return new InvocationExceptionReply("TODO - you dirty rat/hacker");
           }
   
           Session sess = (Session) m_sessions.get( session );
  
  
  
  1.3       +2 -2      incubator-altrmi/src/java/org/apache/altrmi/server/impl/adapters/PublicationAdapter.java
  
  Index: PublicationAdapter.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/adapters/PublicationAdapter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PublicationAdapter.java	17 Feb 2003 20:29:02 -0000	1.2
  +++ PublicationAdapter.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -76,7 +76,7 @@
       /**
        * A map of published objects.
        */
  -    private HashMap m_publishedObjects = new HashMap();
  +    protected HashMap m_publishedObjects = new HashMap();
   
       /**
        * Is the object published
  
  
  
  1.3       +3 -4      incubator-altrmi/src/java/org/apache/altrmi/server/impl/callback/stream/CallbackEnabledCustomStreamReadWriter.java
  
  Index: CallbackEnabledCustomStreamReadWriter.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/callback/stream/CallbackEnabledCustomStreamReadWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CallbackEnabledCustomStreamReadWriter.java	17 Feb 2003 20:29:03 -0000	1.2
  +++ CallbackEnabledCustomStreamReadWriter.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -69,9 +69,8 @@
   import org.apache.altrmi.common.SerializationHelper;
   import org.apache.altrmi.common.ThreadContext;
   import org.apache.altrmi.common.ReqRepBytes;
  -import org.apache.altrmi.common.ExceptionReply;
  -import org.apache.altrmi.common.InvocationException;
   import org.apache.altrmi.common.ConnectionException;
  +import org.apache.altrmi.common.InvocationExceptionReply;
   import org.apache.altrmi.server.impl.AbstractServerStreamReadWriter;
   import org.apache.altrmi.server.impl.callback.CallbackHostContext;
   import org.apache.altrmi.server.impl.callback.CallbackServerClassFactory;
  @@ -198,7 +197,7 @@
                   catch (ClassNotFoundException e)
                   {
                       m_serverMonitor.classNotFound(this.getClass(), e);
  -                    m_reply = new ExceptionReply(new InvocationException("ClassNotFoundException", e));
  +                    m_reply = new InvocationExceptionReply("ClassNotFoundException " + e.getMessage());
                   }
   
                   synchronized (m_replyLock)
  
  
  
  1.4       +3 -3      incubator-altrmi/src/java/org/apache/altrmi/server/impl/direct/DirectMarshalledServer.java
  
  Index: DirectMarshalledServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/direct/DirectMarshalledServer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DirectMarshalledServer.java	17 Feb 2003 20:29:03 -0000	1.3
  +++ DirectMarshalledServer.java	20 Feb 2003 07:36:59 -0000	1.4
  @@ -54,9 +54,9 @@
    */
   package org.apache.altrmi.server.impl.direct;
   
  -import org.apache.altrmi.common.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
  +import org.apache.altrmi.common.InvocationExceptionReply;
   import org.apache.altrmi.server.impl.AbstractServer;
   import org.apache.altrmi.server.impl.adapters.InvocationHandlerAdapter;
   import org.apache.altrmi.server.impl.adapters.MarshalledInvocationHandlerAdapter;
  @@ -171,7 +171,7 @@
           }
           else
           {
  -            throw new InvocationException( "Service is not started" );
  +            return new InvocationExceptionReply( "Service is not started" );
           }
       }
   }
  
  
  
  1.4       +3 -3      incubator-altrmi/src/java/org/apache/altrmi/server/impl/direct/DirectServer.java
  
  Index: DirectServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/direct/DirectServer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DirectServer.java	17 Feb 2003 20:29:03 -0000	1.3
  +++ DirectServer.java	20 Feb 2003 07:36:59 -0000	1.4
  @@ -54,9 +54,9 @@
    */
   package org.apache.altrmi.server.impl.direct;
   
  -import org.apache.altrmi.common.InvocationException;
   import org.apache.altrmi.common.Reply;
   import org.apache.altrmi.common.Request;
  +import org.apache.altrmi.common.InvocationExceptionReply;
   import org.apache.altrmi.server.impl.AbstractServer;
   import org.apache.altrmi.server.impl.adapters.InvocationHandlerAdapter;
   
  @@ -133,7 +133,7 @@
           }
           else
           {
  -            throw new InvocationException( "Service is not started" );
  +            return new InvocationExceptionReply( "Service is not started" );
           }
       }
   }
  
  
  
  1.3       +2 -2      incubator-altrmi/src/test/org/apache/altrmi/multiprocess/AbstractDyingServerTestCase.java
  
  Index: AbstractDyingServerTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/multiprocess/AbstractDyingServerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractDyingServerTestCase.java	17 Feb 2003 20:29:06 -0000	1.2
  +++ AbstractDyingServerTestCase.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -61,7 +61,7 @@
   import org.apache.altrmi.client.HostContext;
   import org.apache.altrmi.test.TestInterface;
   import org.apache.altrmi.common.Request;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.ConnectionException;
   
   import java.io.IOException;
  
  
  
  1.3       +1 -1      incubator-altrmi/src/test/org/apache/altrmi/test/BasicClientServerTestCase.java
  
  Index: BasicClientServerTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/BasicClientServerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicClientServerTestCase.java	17 Feb 2003 20:29:25 -0000	1.2
  +++ BasicClientServerTestCase.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -58,7 +58,7 @@
   import org.apache.altrmi.client.impl.socket.SocketObjectStreamHostContext;
   import org.apache.altrmi.client.impl.ClientSideClassFactory;
   import org.apache.altrmi.client.impl.rmi.RmiHostContext;
  -import org.apache.altrmi.common.ConnectionRefusedException;
  +import org.apache.altrmi.client.ConnectionRefusedException;
   import org.apache.altrmi.common.BadConnectionException;
   import org.apache.altrmi.server.impl.socket.CompleteSocketCustomStreamServer;
   import org.apache.altrmi.server.impl.socket.CompleteSocketObjectStreamServer;
  
  
  
  1.3       +2 -2      incubator-altrmi/src/test/org/apache/altrmi/test/dynamic/DynamicInvokerTestCase.java
  
  Index: DynamicInvokerTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/dynamic/DynamicInvokerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DynamicInvokerTestCase.java	17 Feb 2003 20:29:26 -0000	1.2
  +++ DynamicInvokerTestCase.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -74,7 +74,7 @@
   import org.apache.altrmi.test.TestInterface2;
   import org.apache.altrmi.test.TestInterface3;
   import org.apache.altrmi.test.TestInterfaceImpl;
  -import org.apache.altrmi.common.NotPublishedException;
  +import org.apache.altrmi.client.NotPublishedException;
   import org.apache.altrmi.common.ConnectionException;
   
   /**
  @@ -180,7 +180,7 @@
           // Invoke on a  non-existent remote object
           try
           {
  -            dynamicInvoker.invoke("Helloooo", "some method", null, null);
  +            dynamicInvoker.invoke("Hellooo?", "some method", null, null);
               fail("Dynamic Invoker should have failed");
           }
           catch (NotPublishedException e)
  
  
  
  1.3       +1 -1      incubator-altrmi/src/test/org/apache/altrmi/test/invalidstate/BouncingServerTestCase.java
  
  Index: BouncingServerTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/invalidstate/BouncingServerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BouncingServerTestCase.java	17 Feb 2003 20:29:27 -0000	1.2
  +++ BouncingServerTestCase.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -69,7 +69,7 @@
   import org.apache.altrmi.client.impl.socket.SocketCustomStreamHostContext;
   import org.apache.altrmi.client.HostContext;
   import org.apache.altrmi.client.ClientInvocationHandler;
  -import org.apache.altrmi.common.NoSuchSessionException;
  +import org.apache.altrmi.client.NoSuchSessionException;
   
   
   /**
  
  
  
  1.3       +1 -1      incubator-altrmi/src/test/org/apache/altrmi/test/socket/CallbackEnabledCustomStreamTestCase.java
  
  Index: CallbackEnabledCustomStreamTestCase.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/socket/CallbackEnabledCustomStreamTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CallbackEnabledCustomStreamTestCase.java	17 Feb 2003 20:29:27 -0000	1.2
  +++ CallbackEnabledCustomStreamTestCase.java	20 Feb 2003 07:36:59 -0000	1.3
  @@ -59,7 +59,7 @@
   import org.apache.altrmi.client.HostContext;
   import org.apache.altrmi.client.impl.ClientSideClassFactory;
   import org.apache.altrmi.client.impl.callback.socket.CallbackEnabledSocketCustomStreamHostContext;
  -import org.apache.altrmi.common.InvocationException;
  +import org.apache.altrmi.client.InvocationException;
   import org.apache.altrmi.common.Request;
   import org.apache.altrmi.server.PublicationDescription;
   import org.apache.altrmi.server.impl.NullServerMonitor;
  
  
  

Mime
View raw message