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

  • Home
  • SEARCH
  • 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 8305841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:12:32+00:00 2026-06-08T18:12:32+00:00

Using GWT , I have deployed my server into Tomcat . This works fine,

  • 0

Using GWT, I have deployed my server into Tomcat. This works fine, but when GWT throws an exception, a Popup shows the client the stack trace of the exception.

In dev mode, this works fine. In Tomcat, I get the below stack trace.

Why and how do you fix this?

Unknown.Le(StackTraceCreator.java:168)
Unknown.Jd(StackTraceCreator.java:421)
Unknown.NT(Exception_FieldSerializer.java:16)
Unknown.g1(SerializerBase.java:55)
Unknown.b1(SerializerBase.java:112)
Unknown.D$(AbstractSerializationStreamReader.java:119)
Unknown.uAc(CustomException_FieldSerializer.java:39)
Unknown.uBc(ServerSideException_FieldSerializer.java:12)
Unknown.f1(SerializerBase.java:46)
Unknown._0(SerializerBase.java:92)
Unknown.D$(AbstractSerializationStreamReader.java:119)
Unknown.B_(RequestCallbackAdapter.java:216)
Unknown._o(Request.java:287)

After using @Christian Kuetbach’s answer, here is what I get now:

Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorEmulated_2Ljava_lang_Throwable_2V(StackTraceCreator.java:168)
Unknown.java_lang_Throwable_Throwable__Ljava_lang_String_2Ljava_lang_Throwable_2V(StackTraceCreator.java:421)
Unknown.com_google_gwt_user_client_rpc_StatusCodeException_StatusCodeException__ILjava_lang_String_2V(StatusCodeException.java:35)
Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(RequestCallbackAdapter.java:209)
Unknown.com_google_gwt_http_client_Request_$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Request.java:287)
Unknown.com_google_gwt_http_client_RequestBuilder$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(RequestBuilder.java:395) Unknown.anonymous(XMLHttpRequest.java:287)

Please Help!

  • 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-08T18:12:33+00:00Added an answer on June 8, 2026 at 6:12 pm

    It’s a bit difficult to find all the information in the GWT docs, which you need to setup de-obfuscated logging, so here’s the short version:

    In your module file (.gwt.xml), add:

    <inherits name="com.google.gwt.logging.Logging"/>
    <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />
    <set-property name="compiler.stackMode" value="emulated" />
    <set-configuration-property name="compiler.emulatedStack.recordLineNumbers" 
         value="true" />
    

    On the client side, use something like

    import java.util.logging.Logger;
    
    private static Logger rootLogger = Logger.getLogger("");
    ...
    rootLogger.log(Level.SEVERE, "My message", e);
    

    You don’t have to create a RemoteLoggingServiceAsync instance on the client side – it’s used automatically by the logger, because we specified <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />.

    On the server side, configure the RemoteLoggingServiceImpl. You will have to tell it, where it finds the symbolMaps, which will be generated when compiling with the GWT compiler argument -extra /path/to/myExtraDir. I personally use the approach to override RemoteLoggingServiceImpl, to allow specifying the directory from web.xml’s <init-param>s [*]

    package mypackage.server;
    
    public class ConfigurableRemoteLoggingServiceImpl extends RemoteLoggingServiceImpl {
    
      @Override
      public void init(final ServletConfig config) throws ServletException {
        super.init(config);
    
        final String symbolMapsDirectory = 
            config.getInitParameter("symbolMapsDirectory");
        setSymbolMapsDirectory(symbolMapsDirectory);
      }
    }
    

    In web.xml, register it like

    <servlet>
        <servlet-name>remoteLogging</servlet-name>
        <servlet-class>mypackage.server.ConfigurableRemoteLoggingServiceImpl</servlet-class>
    
      <init-param>
        <param-name>symbolMapsDirectory</param-name>
        <param-value>/path/to/myExtraDir/mymodulename/symbolMaps</param-value>
      </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>remoteLogging</servlet-name>
        <url-pattern>/mymodulename/remote_logging</url-pattern>
    </servlet-mapping>
    

    Replace /path/to/myExtraDir, mymodulename and mypackage with your own values, and don’t forget to call the GWT compiler with the -extra argument (Note that you you don’t have to use -style PRETTY or DETAILED, it also works with OBF). Keep all generated symbolMaps: Without them, deobfuscation will not work. As every new version gets a unique name automatically, you can collect them all in a safe central place when building.

    [*] And I really, really wonder, why RemoteLoggingServiceImpl doesn’t implement that itself!

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

Sidebar

Related Questions

I am using GWT. i have deployed .war in tomcat. now i would like
I'am using GWT 2.4 with Hibernate and RequestFactory and I have queries like this
We are using GWT and take advantage of History framework. Everything works fine in
I'm using GWT (2.4) with Spring integrated as in this article . I have
i have a gwt project and using method GWT.create(SomeClass.class) throw exception. The exception is
We have a GWT based application deployed on Tomcat. Every other day the application
I have deployed our Restlet services to a Jetty Java Application server using the
I'm using GWT(2.0)+EJB(3.x)+JPA deployed in GlassFish and using Eclipse Helios J2EE. I have two
We have a web application written in gwt and deployed in tomcat. The tomcat
I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring

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.