I'm writing a module to display the stack trace returned from the
server in the onFailure method of an AsyncCallback.

Unfortunately, the stack trace that looks like this on the server:


com.chrysler.lrp.gxt.shared.LrpException: This is an LRP exception.
        at
com.chrysler.lrp.gxt.server.LrpAsyncCallback.LrpAsyncCallbackServiceImpl.generateException(LrpAsyncCallbackServiceImpl.java:
21)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)...


Looks like this when it reaches the client:
com.chrysler.lrp.gxt.shared.LrpException: This is an LRP exception.
        at
com.chrysler.lrp.gxt.shared.LrpException_FieldSerializer.instantiate(LrpException_FieldSerializer.java:
26)
        at
com.chrysler.lrp.gxt.shared.LrpException_FieldSerializer.create(LrpException_FieldSerializer.java:
36)
        at
com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
115)
        at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
111)...

(generateException is my server method.)

How can I get the original stack trace back to the client (and return
it to the server to add to an email) short of replacing any message
text in the exception with another copy of the stack trace (as
suggested in a post from 2009)?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to