Package java.rmi.activation

Examples of java.rmi.activation.ActivationException


      if (ex instanceof RemoteException) {
    throw (RemoteException) ex;
      } else if (ex instanceof ActivationException) {
    throw (ActivationException) ex;
      } else {
    throw new ActivationException("unexpected failure", ex);
      }
  }
    }
View Full Code Here


      try {
    Object proxy ;
    if (impl instanceof ProxyAccessor) {
        proxy = ((ProxyAccessor) impl).getProxy();
        if (proxy == null) {
      throw new ActivationException(
          "ProxyAccessor.getProxy returned null");
        }
    } else {
        proxy = impl;
    }
    this.mobj = new MarshalledObject(proxy);
      } catch (IOException e) {
    throw new ActivationException(
        "failed to marshal remote object", e);
      }
  }
View Full Code Here

    {
  String className = desc.getClassName();
  if (className == null ||
      !isAssignableFrom(className, desc.getLocation()))
  {
      throw new ActivationException("group class not subclass");
  }
  currGroup = (ActivationGroup)
      java.rmi.activation.ActivationGroup.createGroup(id, desc,
                  incarnation);
  return currGroup;
View Full Code Here

        }
      });
      return ActivationGroup.class.isAssignableFrom(cl);

  } catch (PrivilegedActionException e) {
      throw new ActivationException("unable to load group class",
            e.getException());
  }
    }
View Full Code Here

  ActivationGroup group;
  synchronized (ActivationGroup.class) {
      group = currGroup;
  }
  if (group == null) {
      throw new ActivationException("group is not active");
  }
  return group.inactiveObject(id, exporter);
    }
View Full Code Here

      if (exportType.equals("basic")) {
    return createSecureProxy(id, desc);
      } else if (exportType.equals("jrmp")) {
    return createProxy(id, desc);
      } else {
    throw new ActivationException("unknown exportType");
      }
  }
    }
View Full Code Here

          throws ActivationException
  {
      try {
    this.exportType = (String) mobj.get();
      } catch (Exception e) {
    throw new ActivationException(
      "MarshalledObject.get failed", e);
      }
 
      this.impl = impl;
      this.id = id;
View Full Code Here

    (ProxyPreparer) Config.getNonNullEntry(config,
        START_PACKAGE, "activationSystemPreparer",
        ProxyPreparer.class, new BasicProxyPreparer());
      sys = (ActivationSystem) activationSystemPreparer.prepareProxy(sys);
  } catch (Exception e) {
      throw new ActivationException(
          "ActivationSystem @ " + host + ":" + port +
    " could not be obtained", e);
  }
        return sys;
    }
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationException

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.