Examples of RemoteAccessException


Examples of org.springframework.remoting.RemoteAccessException

    else {
      if (isConnectFailure) {
        return new RemoteConnectFailureException("Could not connect to remote service [" + serviceName + "]", ex);
      }
      else {
        return new RemoteAccessException("Could not access remote service [" + serviceName + "]", ex);
      }
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    else {
      if (isConnectFailure(ex)) {
        return new RemoteConnectFailureException("Could not connect to CORBA service [" + getJndiName() + "]", ex);
      }
      else {
        return new RemoteAccessException("Could not access CORBA service [" + getJndiName() + "]", ex);
      }
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    if (ex instanceof ConnectException) {
      throw new RemoteConnectFailureException(
          "Cannot connect to HTTP invoker remote service at [" + getServiceUrl() + "]", ex);
    }
    else if (ex instanceof ClassNotFoundException) {
      throw new RemoteAccessException(
          "Cannot deserialize result from HTTP invoker remote service [" + getServiceUrl() + "]", ex);
    }
    else {
      throw new RemoteAccessException(
          "Cannot access HTTP invoker remote service at [" + getServiceUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    RemoteInvocationResult result = null;
    try {
      result = executeRequest(invocation);
    }
    catch (JMSException ex) {
      throw new RemoteAccessException("Cannot access JMS invoker queue [" + this.queue + "]", ex);
    }
    return recreateRemoteInvocationResult(result);
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

      throw new RemoteConnectFailureException(
          "Could not connect to HTTP invoker remote service at [" + getServiceUrl() + "]", ex);
    }
    else if (ex instanceof ClassNotFoundException || ex instanceof NoClassDefFoundError ||
        ex instanceof InvalidClassException) {
      throw new RemoteAccessException(
          "Could not deserialize result from HTTP invoker remote service [" + getServiceUrl() + "]", ex);
    }
    else {
      throw new RemoteAccessException(
          "Could not access HTTP invoker remote service at [" + getServiceUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    else {
      if (isConnectFailure(ex)) {
        return new RemoteConnectFailureException("Could not connect to CORBA service [" + getJndiName() + "]", ex);
      }
      else {
        return new RemoteAccessException("Could not access CORBA service [" + getJndiName() + "]", ex);
      }
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    else {
      if (isConnectFailure(ex)) {
        return new RemoteConnectFailureException("Could not connect to CORBA service [" + getJndiName() + "]", ex);
      }
      else {
        return new RemoteAccessException("Could not access CORBA service [" + getJndiName() + "]", ex);
      }
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    if (ex instanceof ConnectException) {
      return new RemoteConnectFailureException(
          "Cannot connect to Hessian remote service at [" + getServiceUrl() + "]", ex);
    }
    else {
      return new RemoteAccessException(
          "Cannot access Hessian remote service at [" + getServiceUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    if (ex instanceof ConnectException) {
      return new RemoteConnectFailureException(
          "Cannot connect to Burlap remote service at [" + getServiceUrl() + "]", ex);
    }
    else {
      return new RemoteAccessException(
          "Cannot access Burlap remote service at [" + getServiceUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.remoting.RemoteAccessException

    if (SecurityUtils.getSubject().isAuthenticated()){
      return method.invoke(copperMonitoringService, args);
    } else {
      final String text = "user not authenticated: "+SecurityUtils.getSubject().getPrincipal()+" session:"+SecurityUtils.getSubject().getSession().getHost();
      logger.warn(text);
      throw new RemoteAccessException(text);
    }
  }
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.