Feature Requests item #500727, was opened at 2002-01-07 21:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=500727&group_id=22866

Category: JBossServer
Group: v2.4.x
Status: Open
Priority: 5
Submitted By: Richard Kilgore (richard-kilgore)
Assigned to: Nobody/Anonymous (nobody)
Summary: preserve exception backtrace for client

Initial Comment:
I would like to add the functionality to wrap an
exception (well, a Throwable I guess) thrown by
a user application on the server, and save the
exception's stack trace to a string before it is
marshalled and sent back to the client.

The server-side part of this could be an Interceptor
that can be loaded or not.  The client side is tricky,
though.  I could of course just throw a wrapper class
derived from RemoteException and the printStackTrace()
method could be overridden to print a composite
message that includes the original stack trace.

But if I want to provide normal J2EE behavior, I
think I want to throw the same type of exception
that was thrown on the server, right?  If that is the
case, I might be able to use introspection to set the
private backtrace object to an appropriate object.
But this will require a little bit of code to be added
to the RMI proxy object, which is less clean than
the modular, easily (de)selectable Interceptor used
on the server.

Does anyone have any suggestions?


Also, I need to have my changes work with version
2.4.3, because my clients at work are stuck on a
2.2 JVM (WebSphere 3.5).  But should any patches I
create for use by the community be against 2.4.4 or
3.0?

    - rick


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=500727&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to