Examples of ExportException


Examples of java.rmi.server.ExportException

        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

Examples of java.rmi.server.ExportException

        }
        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

Examples of java.rmi.server.ExportException

        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

Examples of java.rmi.server.ExportException

     */
    private Proxy addProxy(ObjectRef ref, URI uri, Object object,
                           Class proxyClass) throws ExportException {

        if (object != ref.getObject()) {
            throw new ExportException("Cannot export object on URI=" + uri
                                      + ": object mismatch");
        }
        if (proxyClass != ref.getProxyClass()) {
            throw new ExportException("Cannot export object on URI=" + uri
                                      + ": proxy class mismatch");
        }

        accept(uri);
        return ref.addProxy(getRoute(uri));
View Full Code Here

Examples of java.rmi.server.ExportException

     */
    private Proxy addProxyTo(ObjectRef ref, URI uri, Object object,
                             Class proxyClass) throws ExportException {

        if (object != ref.getObject()) {
            throw new ExportException("Cannot export object on URI=" + uri
                                      + ": object mismatch");
        }
        if (proxyClass != ref.getProxyClass()) {
            throw new ExportException("Cannot export object on URI=" + uri
                                      + ": proxy class mismatch");
        }

        return ref.addProxy(uri);
    }
View Full Code Here

Examples of java.rmi.server.ExportException

        if (connection == null) {
            throw new IllegalArgumentException("Argument 'connection' is null");
        }
        Caller caller = orb.getCaller();
        if (caller == null) {
            throw new ExportException("Can't determine remote caller");
        }
        _uri = caller.getRemoteURI().toString();
        orb.addCallerListener(_uri, this);
        _connection = connection;
    }
View Full Code Here

Examples of java.rmi.server.ExportException

     */
    public Proxy exportObjectTo(Object object) throws ExportException,
            StubNotFoundException {
        Caller caller = (Caller) _caller.get();
        if (caller == null) {
            throw new ExportException("Cannot export - no current caller");
        }
        return doExportTo(object, caller.getLocalURI());
    }
View Full Code Here

Examples of java.rmi.server.ExportException

            // and then disposes its server proxies - the connection
            // will be prematurely closed. The connection needs to be kept
            // until the object is unexported.
            connection.close();
        } catch (ResourceException exception) {
            throw new ExportException("Failed to connect to URI: " + uri,
                    exception);
        }
        return result;
    }
View Full Code Here

Examples of java.rmi.server.ExportException

     */
    protected void accept(URI uri) throws ExportException {
        try {
            _manager.accept(uri, getProperties());
        } catch (ResourceException exception) {
            throw new ExportException("Failed to accept connections on URI: "
                    + uri, exception);
        }
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.export.ExportException

            // just for nifty debugging :)
            // handler.getTransformer().setOutputProperty(OutputKeys.INDENT,
            // "yes");
            createConfiguration(handler, fontRecords);
        } catch (TransformerConfigurationException e) {
            throw new ExportException("Failed to create FOP options", e);
        } catch (SAXException e) {
            throw new ExportException("Failed to create FOP options", e);
        } catch (UnsupportedEncodingException e) {
            throw new ExportException("Failed to create FOP options", e);
    }
        Options result;
        try {
            result = new Options(new ByteArrayInputStream(outputStream
                    .toByteArray()));
        } catch (FOPException e) {
            throw new ExportException("Failed to create FOP options", e);
        }
        return result;
    }
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.