if (cause instanceof InvocationFailureException) { InvocationFailureException exep = (InvocationFailureException) cause; if (exep.getCause() instanceof IOException) { if (exep.getCause().getMessage().startsWith("Field hash null is not available on current") || exep.getCause().getMessage().endsWith("end of file")) { addMessage = "Probably the server version is not compatible with the client. ";
public InvocationFailureException(String message, Exception e) { super(message); initCause(e); } }
protected Object handleException(Exception ex, SocketWrapper socketWrapper) throws ClassNotFoundException, InvocationFailureException { if (ex instanceof ClassNotFoundException) { //TODO: -TME Add better exception handling for class not found exception log.debug("Error loading classes from remote call result.", ex); throw (ClassNotFoundException)ex; } if (ex instanceof CannotConnectException) { log.debug(this, ex); throw (CannotConnectException) ex; } throw new InvocationFailureException("Unable to perform invocation", ex); }
public InvocationFailureException(Exception e) { super(); initCause(e); }
protected Object handleException(Exception ex, SocketWrapper socketWrapper) throws ClassNotFoundException, InvocationFailureException, CannotConnectException { if (ex instanceof ClassNotFoundException) { //TODO: -TME Add better exception handling for class not found exception log.debug("Error loading classes from remote call result.", ex); throw (ClassNotFoundException) ex; } if (ex instanceof CannotConnectException) { log.debug(this, ex); throw (CannotConnectException) ex; } if (ex instanceof SocketTimeoutException) { log.debug("Got SocketTimeoutException, exiting", ex); String message = "Socket timed out. Waited " + socketWrapper.getTimeout() + " milliseconds for response while calling on " + getLocator(); throw new InvocationFailureException(message, ex); } throw new InvocationFailureException("Unable to perform invocation", ex); }