Example usage for org.springframework.remoting RemoteLookupFailureException getMessage

List of usage examples for org.springframework.remoting RemoteLookupFailureException getMessage

Introduction

In this page you can find the example usage for org.springframework.remoting RemoteLookupFailureException getMessage.

Prototype

@Override
@Nullable
public String getMessage() 

Source Link

Document

Return the detail message, including the message from the nested exception if there is one.

Usage

From source file:org.javassonne.networking.impl.ClientResolver.java

public static RemoteClient attemptToResolveClient(String clientURI) {
    RemoteClient rc = null;//from  w ww.java  2  s .  c o  m
    try {
        rc = (RemoteClient) RemotingUtils.lookupRMIService(clientURI, RemoteClient.class);
    } catch (RemoteLookupFailureException e) {

        LogSender.sendInfo("ClientResolver could not resolve client at uri: " + clientURI);
        return null;

    } catch (RuntimeException e) {
        String err = "LocalHostImpl - A RuntimeException occurred while adding " + "a client at URI: "
                + clientURI;
        err += "\n" + e.getMessage();
        err += "\nStack Trace: \n";
        for (int i = 0; i < e.getStackTrace().length; i++)
            err += e.getStackTrace()[i] + "\n";

        LogSender.sendErr(err);

        return null;
    }
    return rc;
}