Why is Tomcat unable to show the actual stack trace?

后端 未结 3 1789
迷失自我
迷失自我 2020-12-18 09:36

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

3条回答
  •  醉话见心
    2020-12-18 09:54

    This works as expected, because the optimaziation will remove the method and class names.

    You can compile as PRETTY or DETAILED, to get better readable Stacktraces.

    There is also the posibility to emulate Stacktraces.

     
    
     
    

    This is a bad idea for production use, because it will increase the size of your javascript.

    update: I see a Exception_FieldSerializer Exception.

    Do you try to serialize something, which is not serializable?

    Classes, without a default constructor are not serializable, Classes which aren't within your client or shared package. If you try to serialize an Exception this can be the problem.

提交回复
热议问题