Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <set-property name="compiler.stackMode" value="emulated" />
  2. <set-configuration-property name="compiler.emulatedStack.recordLineNumbers"
  3. value="true" />
  4.  
  5. com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot call method 'pp' of null
  6. Unknown.aT(Unknown Source:174)
  7. Unknown.AVa(Unknown Source:501)
  8. Unknown.YF(Unknown Source:29)
  9. Unknown.Lqb(Unknown Source:138)
  10. ...
  11.  
  12. // Create the deobfuscator
  13. String dir = getSymbolMapsDirPath();
  14. StackTraceDeobfuscator deobfuscator = new StackTraceDeobfuscator(dir);
  15.  
  16. // request is the HttpServletRequest
  17. String strongName = request.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER);
  18.  
  19. // Deobfuscate the stack trace
  20. exception.setStackTrace(
  21. deobfuscator.deobfuscateStackTrace(exception.getStackTrace(), strongName));
  22.  
  23. // Log the exception
  24. logger.severe("Uncaught GWT exception", exception);
  25.  
  26. import com.google.gwt.core.server.StackTraceDeobfuscator;
  27. import com.google.gwt.user.client.rpc.RpcRequestBuilder;
  28.  
  29. String path = getServletConfig().getServletContext().getRealPath("/WEB-INF/deploy/<your module name>/symbolMaps/");
  30. StackTraceDeobfuscator deobfuscator = StackTraceDeobfuscator.fromFileSystem(path);
  31. String strongName = getThreadLocalRequest().getHeader(RpcRequestBuilder.STRONG_NAME_HEADER);
  32.  
  33. // Do the magic
  34. deobfuscator.deobfuscateStackTrace(exception, strongName);
  35.  
  36. // Log it
  37. logger.severe("Uncaught GWT exception", exception);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement