Monday, May 6, 2013

Re: Emulated stack mode not resolving symbols

Hi!

Using emulated stack traces won't deofuscate the callstack it just makes it available on more browsers (see https://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Example_Production_Mode_stack_traces_without_emulation). If you wan't to have readable callstack you need to deobfuscate it first. Thats where the source/symbol maps come into play. They are genereated during GWT compile and placed into war/WEB-INF/deploy/module_name/symbolMaps for each permutation. You can use StackTraceDebfuscator or your own implementation or you can also just do the text search in the symbol map file, this will point you to fully qualified name of the method. Another solution (which generates a lot bigger JS files) is to use pretty or detailed compile mode.

Honza

On Thursday, April 25, 2013 10:53:53 AM UTC+2, DaveC wrote:
Hi,

I'm trying to get some useful stack trace from the client side but all I get is:

java.lang.Throwable: Exception caught: Exception caught: For input string: "59909596809"
at Unknown.jk(Unknown Source)
at Unknown.gi(Unknown Source)
at Unknown.Wu(Unknown Source)
at Unknown.Zu(Unknown Source)
... etc, etc.

In the gwt.xml file I've got:

        <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />
    <set-property name="compiler.stackMode" value="strip,emulated" />
    <set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true"/> 

I've also got my own implementation of RemoteLoggingServiceImpl which sets the location of the symbol maps directory to: 

         /WEB-INF/debug/symbolMaps

(In the index.html file I switch between the two stack modes using <meta name="gwt:property" content="compiler.stackMode=strip" />

Can anyone see what I'm doing wrong?

Cheers,
Dave

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment