Override the doUnexpectedFailure(Throwable t)  method in your RPC Servlet.
This method gets called whenever an exception escapes your method. You can
log the stacktrace/message in this method.


--Sri


2009/9/22 tieTYT <[email protected]>

>
> When I'm in hosted mode, if my client code throws a runtime exception,
> it seems to be swallowed and not reported.  For example, if I put a
> "throw new NullPointerException()" at the end of a method.  I can use
> the debugger to find the exact line that's throwing the exception but
> when it occurs it just fails silently.  There's no info in the Shell
> or on the console and the app doesn't even necessarily act like there
> was an error.
>
> I'm not very familiar with our code or GWT so I have to ask: is this
> normal, expected GWT behavior or is our code failing to print a stack
> trace?
>
> If this is GWT's fault, what's the work around?  Someone on the irc
> channel suggested I wrap all my client code around a try/catch but
> that seems a little inconvenient and messy.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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