Package org.springframework.remoting

Examples of org.springframework.remoting.RemoteAccessException


                RemoteInvocationResult result = marshaller.extractInvocationResult(response);
                return recreateRemoteInvocationResult(result);
            }
        }
        catch (JMSException ex) {
            throw new RemoteAccessException("Cannot access JMS invoker remote service at [" + getServiceUrl() + "]", ex);
        }
    }
View Full Code Here


            log.debug("template " + templ + " not found in registrar " + lus);
        }
      }
    }
    catch (RemoteException re) {
      throw new RemoteAccessException("can not find service", re);
    }
  }
View Full Code Here

    return null;
  }

  public static RuntimeException convertJiniException(Exception exception) {
    if (exception instanceof LeaseException)
      return new RemoteAccessException("Lease denied", exception);

    if (exception instanceof TransactionException)
      return new org.springframework.transaction.TransactionSystemException(exception.getMessage(),
          exception);

    if (exception instanceof RemoteException) {
      // Translate to Spring's unchecked remote access exception
      return new RemoteAccessException("RemoteException", exception);
    }
    if (exception instanceof UnusableEntryException) {
      return new RemoteAccessException("Unusable entry", exception);
    }

    if (exception instanceof RuntimeException)
      return (RuntimeException) exception;
View Full Code Here

    // if no result found try to clean up and thrown an exception
    if (result == null) {
      // TODO this is not being tested
      jsTemplate.takeIfExists(call, timeoutMillis);
      throw new RemoteAccessException("Couldn't get result for " + call);
    }
    return result;
  }
View Full Code Here

    }
    if (ReflectionUtils.declaresException(method, RemoteException.class)) {
      return new RemoteException(message, ex);
    }
    else {
      return new RemoteAccessException(message, ex);
    }
  }
View Full Code Here

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

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

   * Spring RemoteAccessException.
   * @param ex the exception to convert
   * @return the RemoteAccessException to throw
   */
  protected RemoteAccessException convertJmsInvokerAccessException(JMSException ex) {
    throw new RemoteAccessException("Could not access JMS invoker queue [" + this.queue + "]", ex);
  }
View Full Code Here

TOP

Related Classes of org.springframework.remoting.RemoteAccessException

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.