public abstract class

RemoteInvocationUtils

extends Object
java.lang.Object
   ↳ org.springframework.remoting.support.RemoteInvocationUtils

Class Overview

General utilities for handling remote invocations.

Mainly intended for use within the remoting framework.

Summary

Public Constructors
RemoteInvocationUtils()
Public Methods
static void fillInClientStackTraceIfPossible(Throwable ex)
Fill the current client-side stack trace into the given exception.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RemoteInvocationUtils ()

Public Methods

public static void fillInClientStackTraceIfPossible (Throwable ex)

Fill the current client-side stack trace into the given exception.

The given exception is typically thrown on the server and serialized as-is, with the client wanting it to contain the client-side portion of the stack trace as well. What we can do here is to update the StackTraceElement array with the current client-side stack trace, provided that we run on JDK 1.4+.

Parameters
ex the exception to update