Spring Framework RemoteAccessException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RemoteAccessException class.

This code example shows how to use the following methods:
	 * 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); 
	} 
 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		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);
		} 
	} 
 
	/** 
	 * Perform a JAX-WS service invocation on the given port stub. 
	 * @param invocation the AOP method invocation 
	 * @param portStub the RMI port stub to invoke 
	 * @return the invocation result, if any 
	 * @throws Throwable in case of invocation failure 
	 * @see #getPortStub() 
	 */ 
	protected Object doInvoke(MethodInvocation invocation, Object portStub) throws Throwable {
		Method method = invocation.getMethod();
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
    public void checkForDisconnectedMonitors() { 
        try { 
            m_delegate.checkForDisconnectedMonitors(); 
        } catch (Throwable t) { 
            LOG.error("Unexpected exception thrown in remote poller backend.", t); 
            throw new RemoteAccessException("Unexpected Exception Occurred on the server.", t); 
        } 
    } 
 
    /** 
     * <p>configurationUpdated</p> 
     */ 
    @Override 
    public void configurationUpdated() { 
        try { 
            m_delegate.configurationUpdated(); 
        } catch (Throwable t) { 
            LOG.error("Unexpected exception thrown in remote poller backend.", t); 
            throw new RemoteAccessException("Unexpected Exception Occurred on the server.", t); 
        } 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        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);
        } 
    } 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java