Examples of ExportException


Examples of java.rmi.server.ExportException

      /*
       * Complain if the underlying proxy has a non-public class and
       * implements non-public interfaces.
       */
      if (checkPublic && !Modifier.isPublic(intf.getModifiers())) {
    throw new ExportException(
        "proxy implements non-public interface");
      }
     
      /*
       * Don't add ProxyTrust remote interface to list of proxy
View Full Code Here

Examples of java.rmi.server.ExportException

      throw new NullPointerException("impl is null");
  }
  try {
      return Util.getRemoteInterfaces(impl.getClass());
  } catch (IllegalArgumentException e) {
      throw new ExportException("cannot get proxy interfaces", e);
  }
    }
View Full Code Here

Examples of java.rmi.server.ExportException

  try {
      proxy = (Remote) Proxy.newProxyInstance(proxyLoader,
                interfaces,
                handler);
  } catch (IllegalArgumentException e) {
      throw new ExportException("unable to create proxy", e);
  }
  InvocationDispatcher dispatcher =
      createInvocationDispatcher(getInvocationDispatcherMethods(impl),
               impl, caps);
  return new Instances(proxy, dispatcher);
View Full Code Here

Examples of java.rmi.server.ExportException

      LC listenContext = new LC();
      try {
    endpoint =
        serverEndpoint.enumerateListenEndpoints(listenContext);
      } catch (IOException e) {
    throw new ExportException("listen failed", e);
      } finally {
    bindings = listenContext.getFinalBindings();
      }

      RequestDispatcher[] requestDispatchers =
View Full Code Here

Examples of java.rmi.server.ExportException

  void put(Target target) throws ExportException {
      synchronized (idTable) {
    Uuid id = target.getObjectIdentifier();
    if (id.equals(Jeri.DGC_ID)) {
        throw new ExportException(
      "object identifier reserved for DGC");
    }
    if (idTable.containsKey(id)) {
        throw new ExportException(
      "object identifier already in use");
    }
    idTable.put(id, target);
    if (target.getEnableDGC()) {
        dgcEnabledCount++;
View Full Code Here

Examples of java.rmi.server.ExportException

  public synchronized Remote export(Remote impl) throws ExportException {
      this.impl = impl;
      try {
    return RemoteObject.toStub(impl);
      } catch (NoSuchObjectException e) {
    throw new ExportException("no stub found", e);
      }
  }
View Full Code Here

Examples of java.rmi.server.ExportException

                  (Exporter)thisConfig.getEntry(COMPONENT_NAME,
                                                "eventListenerExporter",
                                                Exporter.class,
                                                defaultExporter );
            } catch(ConfigurationException e) {// exception, use default
                ExportException e1 = new ExportException
                                            ("Configuration exception while "
                                             +"retrieving exporter for "
                                             +"cache's remote event listener",
                                             e);
                throw e1;
View Full Code Here

Examples of java.rmi.server.ExportException

                // start listening thread
                mgr = ServerConnectionManager.getMgr(ep);
            }
        } catch (BindException be) {
            // rmi.63=Unable to export object: port {0} already in use
            throw new ExportException(Messages.getString("rmi.63", //$NON-NLS-1$
                    ep.getPort()), be);
        } catch (Exception ex) {
            // rmi.64=Unable to export object on port {0}
            throw new ExportException(Messages.getString("rmi.64", //$NON-NLS-1$
                    ep.getPort()), ex);
        }
        return stub;
    }
View Full Code Here

Examples of java.rmi.server.ExportException

                                      boolean startListen,
                                      boolean isSystem)
            throws RemoteException {
        if (isExported(obj)) {
            // rmi.7B=Object {0} has already been exported.
            throw new ExportException(Messages.getString("rmi.7B", obj)); //$NON-NLS-1$
        }
        Remote stub = sref.exportObject(obj, null, useProxyStubs, startListen,
                isSystem);
        RMIReference rref = new RMIReference(obj, dgcQueue);
        RMIObjectInfo info = new RMIObjectInfo(
View Full Code Here

Examples of java.rmi.server.ExportException

            Constructor constructor = _proxyClass.getConstructor(PROXY_ARGS);
            proxy = (Proxy) constructor.newInstance(new Object[]{delegate});
        } catch (InvocationTargetException exception) {
            if (exception.getTargetException() instanceof Exception) {
                Exception nested = (Exception) exception.getTargetException();
                throw new ExportException(nested.getMessage(), nested);
            } else {
                throw new ExportException(exception.getMessage(), exception);
            }
        } catch (Exception exception) {
            throw new ExportException(exception.getMessage(), exception);
        }
        _proxies.put(uri, proxy);
        return proxy;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.