Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker
In directory sc8-pr-cvs1:/tmp/cvs-serv30969/src/java/org/openamf/invoker
Modified Files:
ServiceInvocationException.java
Log Message:
switched to using ExceptionUtils.getStackTrace
Index: ServiceInvocationException.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/ServiceInvocationException.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ServiceInvocationException.java 5 Aug 2003 20:56:40 -0000 1.13
--- ServiceInvocationException.java 5 Aug 2003 21:15:22 -0000 1.14
***************
*** 3,6 ****
--- 3,7 ----
import java.lang.reflect.Method;
+ import org.apache.commons.lang.exception.ExceptionUtils;
import org.apache.commons.lang.exception.NestableException;
import org.apache.commons.logging.Log;
***************
*** 47,62 ****
Throwable rootCause = getRootCause();
- StackTraceElement[] stackTrace = rootCause.getStackTrace();
- StringBuffer stackTraceBuffer = new StringBuffer();
- for (int i = 0; i < stackTrace.length; i++) {
- StackTraceElement element = stackTrace[i];
- stackTraceBuffer.append(element.toString());
- stackTraceBuffer.append('\n');
- }
amfError.setCode(getErrorValue(rootCause, "getCode", "SERVER.PROCESSING"));
amfError.setLevel(getErrorValue(rootCause, "getError", "error"));
amfError.setType(rootCause.getClass().toString());
! amfError.setDetails(stackTraceBuffer.toString());
amfError.setDescription(getErrorValue(rootCause, "getDescription", rootCause.getMessage()));
--- 48,56 ----
Throwable rootCause = getRootCause();
amfError.setCode(getErrorValue(rootCause, "getCode", "SERVER.PROCESSING"));
amfError.setLevel(getErrorValue(rootCause, "getError", "error"));
amfError.setType(rootCause.getClass().toString());
! amfError.setDetails(ExceptionUtils.getStackTrace(rootCause));
amfError.setDescription(getErrorValue(rootCause, "getDescription", rootCause.getMessage()));
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.