Package org.springframework.remoting

Examples of org.springframework.remoting.RemoteConnectFailureException


    if (ReflectionUtils.declaresException(method, ex.getClass())) {
      return ex;
    }
    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


    }
    catch (SOAPFaultException ex) {
      throw new JaxWsSoapFaultException(ex);
    }
    catch (ProtocolException ex) {
      throw new RemoteConnectFailureException("Could not connect to remote service [" + this.portQName + "]", ex);
    }
    catch (WebServiceException ex) {
      throw new RemoteAccessException("Could not access remote service at [" + this.portQName + "]", ex);
    }
  }
View Full Code Here

   * @param ex the exception to convert
   * @return the RemoteAccessException to throw
   */
  protected RemoteAccessException convertHessianAccessException(Throwable ex) {
    if (ex instanceof HessianConnectionException || 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

    }
    catch (SOAPFaultException ex) {
      throw new JaxWsSoapFaultException(ex);
    }
    catch (ProtocolException ex) {
      throw new RemoteConnectFailureException(
          "Could not connect to remote service [" + getEndpointAddress() + "]", ex);
    }
    catch (WebServiceException ex) {
      throw new RemoteAccessException(
          "Could not access remote service at [" + getEndpointAddress() + "]", ex);
View Full Code Here

    if (ReflectionUtils.declaresException(method, ex.getClass())) {
      return ex;
    }
    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

    }
    catch (SOAPFaultException ex) {
      throw new JaxWsSoapFaultException(ex);
    }
    catch (ProtocolException ex) {
      throw new RemoteConnectFailureException(
          "Could not connect to remote service [" + getEndpointAddress() + "]", ex);
    }
    catch (WebServiceException ex) {
      throw new RemoteAccessException(
          "Could not access remote service at [" + getEndpointAddress() + "]", ex);
View Full Code Here

   * @param ex the exception to convert
   * @return the RemoteAccessException to throw
   */
  protected RemoteAccessException convertHessianAccessException(Throwable ex) {
    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

    if (ReflectionUtils.declaresException(method, ex.getClass())) {
      return ex;
    }
    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

   * @param ex the exception to convert
   * @return the RemoteAccessException to throw
   */
  protected RemoteAccessException convertHttpInvokerAccessException(Throwable ex) {
    if (ex instanceof ConnectException) {
      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(
View Full Code Here

      // A traditional RMI service: wrap CORBA exceptions in standard RemoteExceptions.
      return new RemoteException("Failed to access CORBA service [" + getJndiName() + "]", ex);
    }
    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

TOP

Related Classes of org.springframework.remoting.RemoteConnectFailureException

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.