Package java.rmi

Examples of java.rmi.NoSuchObjectException


            logInfoDiscard("\ndiscard: ",registrationID);
            RegistrationInfo regInfo
                   = (RegistrationInfo)(registrationByID.get(registrationID));
            if(regInfo == null) {
                throw new ThrowThis
                            (new NoSuchObjectException("Invalid registration "
                                                       +"ID on call to "
                                                       +"discard() method"));
            }//endif
            if(registrar == null) {
                throw new NullPointerException(" on call to discard() "
View Full Code Here


       // create owners for testing bad object exceptions

       // 01) any instance of a NoSuchObjectException
       badObjException01 =
     new NoSuchObjectException("LeaseExpirationTest");
       badObjOwner01 =
     new FailingOpCountingOwner(badObjException01, 0, renewGrant);

       /* 02) any instance of a java.rmi.ServerError in which the value
    of the exception's detail field is a bad object exception */
 
View Full Code Here

          "getServiceRegistration", regID);
  }
        ServiceRegistration reg = (ServiceRegistration)regByID.get(regID);
  if(reg == null) { // either expired or never existed
      throw new ThrowThis(
    new NoSuchObjectException("Not managing requested " +
              "registration object"));
  } else if(!ensureCurrent(reg)) { // check validity
      throw new ThrowThis(
    new NoSuchObjectException("Requested registration object" +
        "has expired"));
  }
  // Must be a valid registration at this point
        if (operationsLogger.isLoggable(Level.FINER)) {
      operationsLogger.exiting(mailboxSourceClass,
View Full Code Here

     */
    protected Throwable[] createExceptionArray() {

       Throwable[] throwArray = new Throwable[4];
       throwArray[3] =
     new NoSuchObjectException("NoSuchObjectException");
       throwArray[2] =
     new ConnectIOException("ConnectIOException");
       throwArray[1] =
     new RemoteException("RemoteException");
       throwArray[0] =
View Full Code Here

     */
    public void destroy() {
  iteratorLogger.entering("OutriggerServerImpl", "destroy");

  serverGate.rejectCalls(
      new NoSuchObjectException("Service is destroyed"));
  (new DestroyThread()).start();
  lifecycleLogger.log(Level.INFO,
      "Outrigger server destroy thread started: {0}", this);
    }
View Full Code Here

    /** Log and throw new NoSuchObjectException with a nested exception */
    private NoSuchObjectException throwNewNoSuchObjectException(
      String msg, Throwable t, Logger logger)
  throws NoSuchObjectException
    {
  final NoSuchObjectException nsoe = new NoSuchObjectException(msg);
  nsoe.initCause(t);
  logger.log(Levels.FAILED, msg, nsoe);
  throw nsoe;
    }
View Full Code Here

    }

    public Object invoke(Object proxy, Method method, Object... args) throws Throwable {
        if (isInvalidReference.get()) {
            if (remote || java.rmi.Remote.class.isAssignableFrom(method.getDeclaringClass())){
                throw new NoSuchObjectException("reference is invalid");
            } else {
                throw new NoSuchEJBException("reference is invalid");
            }
        }
View Full Code Here

                throw new SystemException("Unexpected load exception", e);
            }

            // Did we find the instance?
            if (instance == null) {
                throw new InvalidateReferenceException(new NoSuchObjectException("Not Found"));
            }

            // remember instance until it is returned to the cache
            checkedOutInstances.put(primaryKey, instance);
        }
View Full Code Here

                    throw new SystemException("Unexpected load exception", e);
                }

                // Did we find the instance?
                if (instance == null) {
                    throw new InvalidateReferenceException(new NoSuchObjectException("Not Found"));
                }

               
                // remember instance until it is returned to the cache               
                checkedOutInstances.put(primaryKey, instance);
View Full Code Here

  } catch (ConnectException e) {
      throw new ConnectException("activation failed", e);
  } catch (RemoteException e) {
      throw new ConnectIOException("activation failed", e);
  } catch (UnknownObjectException e) {
      throw new NoSuchObjectException("object not registered");
  } catch (ActivationException e) {
      throw new ActivateFailedException("activation failed", e);
  }
    }
View Full Code Here

TOP

Related Classes of java.rmi.NoSuchObjectException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.