Package java.rmi.server

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


  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

  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

                  (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

                // 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

                                      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

            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

        URI parsed = null;
        try {
            parsed = URIHelper.parse(uri);
        } catch (InvalidURIException exception) {
            throw new ExportException(exception.getMessage(), exception);
        }

        Proxy proxy = null;
        ObjectRef ref = (ObjectRef) _objectMap.get(object);
        if (ref != null) {
View Full Code Here

        }
        URI parsed = null;
        try {
            parsed = URIHelper.parse(uri);
        } catch (InvalidURIException exception) {
            throw new ExportException(exception.getMessage(), exception);

        }
        Proxy proxy = null;
        ObjectRef ref = (ObjectRef) _objectMap.get(object);
        if (ref != null) {
View Full Code Here

        URI remoteURI = null;
        URI localURI = null;
        try {
            remoteURI = URIHelper.parse(uri);
        } catch (InvalidURIException exception) {
            throw new ExportException(exception.getMessage(), exception);
        }

        localURI = connect(remoteURI, principal, credentials);

        return doExportTo(object, localURI);
View Full Code Here

TOP

Related Classes of java.rmi.server.ExportException

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.