Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:38:42+00:00 2026-06-14T05:38:42+00:00

We are trying to send uncaught GWT exceptions (we are using GWT 2.5 rc1)

  • 0

We are trying to send uncaught GWT exceptions (we are using GWT 2.5 rc1) to our server for logging and debugging purposes. We want to deobfuscate the exception stack traces, otherwise it would be pretty much useless.

After some investigations, I found 7 Tips for Exception Handling in GWT and WebModeExceptions that contained valuable information.

So we created a GWT UncaughtExceptionHandler that uses a custom RPC service to transfer the exceptions with their stack traces. That works fine.

As described in WebModeExceptions deobfuscation section, we enabled stacktrace emulation with this in our GWT module :

<set-property name="compiler.stackMode" value="emulated" />
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers"
    value="true" />

Now our stacktraces look like this :

com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot call method 'pp' of null
    Unknown.aT(Unknown Source:174)
    Unknown.AVa(Unknown Source:501)
    Unknown.YF(Unknown Source:29)
    Unknown.Lqb(Unknown Source:138)
    ...

It seems ok to me because it contains the obfuscated method name and the line number which seems to be what is needed as described in WebModeExceptions deobfuscation section.

Then we compile our GWT modules with the -extra parameter to get the symbolmaps.

Our custom log service uses the symbolMaps directory to invoke com.google.gwt.logging.server.StackTraceDeobfuscator. We use X-GWT-Permutation http header to invoke the deobfuscator. I stepped in the deobfuscate method to make sure it could load the symbol map. It could. I validated that the symbolMap file name used was matching the *.cache.js file name of the GWT module. It does match.

So basically, the service does this:

// Create the deobfuscator
String dir = getSymbolMapsDirPath();
StackTraceDeobfuscator deobfuscator = new StackTraceDeobfuscator(dir);

// request is the HttpServletRequest
String strongName = request.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER);

// Deobfuscate the stack trace
exception.setStackTrace(
    deobfuscator.deobfuscateStackTrace(exception.getStackTrace(), strongName));

// Log the exception
logger.severe("Uncaught GWT exception", exception);

The end result is that the stack traces don’t get deobfuscated. Sometimes, some lines would get deobufscated with the wrong class and method name but nothing more. When looking at the symbolMap file, the actual symbols in the stack trace don’t match to any of the symbols in the symbolMap file.

Any idea what we are doing wrong here?

EDIT: I tried RemoteLoggingServiceImpl and I get the same results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:38:43+00:00Added an answer on June 14, 2026 at 5:38 am

    After further investigation it seems that the new GWT compiler option -XenableClosureCompiler that we were using generates code that is not outputting stack traces that uses the symbol maps generated by the compiler. After removing that option, the stack traces can be deobfuscated successfully.

    As a side note, the compiler and GWT module options required to enabled stack trace deobfuscation (the ones described in my question and removing the closure compiler option) make our final js files twice as big as before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

am trying send an array to php file using $_POST ,still always getting an
I am trying to send emails from smtps (secure smtp) using Indy and the
Having big problems trying to get my php script to send email. Using this
Trying to send POST request on click event using jQuery with no luck. Here
im trying to send a unix command from a client to a server, wait
I`m trying to send binary file using socket. FILE *file; char *file_data; file =
I am trying to send an email using default method eml.setType(message/rfc822); startActivityForResult(Intent.createChooser(eml, Choose an
Have been trying on these codes and I want to send a email which
I am trying send the emails using the lotus notes using TNMSMTP component. What
I'm trying to send json object to server. But I received an error and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.