【问题标题】:Eclipse is not showing exception stack trace using WAS 8Eclipse 未使用 WAS 8 显示异常堆栈跟踪
【发布时间】:2016-11-01 15:05:26
【问题描述】:

当代码引发异常时,我目前在 Eclipse 控制台选项卡中看到此消息日志。我看不出实际的异常是什么。

我正在使用 Eclipse Kepler 和 WebSphere Application Server 8.0

[1/11/16 08:44:01:962 CST] 00000025 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Error de servlet]-[Unable to show problem report: freemarker.core.ParseException: Encountered "?" at line 41, column 21.
Was expecting:
    <ID> ...
    ]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Unable to show problem report: freemarker.core.ParseException: Encountered &quot;?&quot; at line 41, column 21.
Was expecting:
    &lt;ID&gt; ...

提前致谢!

【问题讨论】:

    标签: java eclipse websphere struts


    【解决方案1】:

    我看不出异常到底是什么。

    实际的异常信息是:

    freemarker.core.ParseException: Encountered ? at line 41, column 21. 
    Was expecting:  
        ID ...
    

    您的某个 Freemarker 模板中似乎存在解析错误。

    其余的是 Websphere 说它无法在 5xx 错误页面中报告问题……可能是因为响应已经提交。

    如果您将 Websphere 日志记录级别更改为调试,您应该会获得更多线索来帮助您识别错误模板。

    有关登录 WAS 的更多信息:

    您还应该检查 Websphere 日志事件是否记录在其他地方;例如日志文件。这些日志可能有完整的堆栈跟踪。

    如果一切都失败了,您可以尝试在第 41 行第 21 列搜索任何具有问号字符的 Freemarker 模板。

    【讨论】:

    • 这个答案可以通过编辑问题或评论来添加,因为它不能解决 OP 的问题。
    猜你喜欢
    • 2017-08-09
    • 2016-01-11
    • 2010-10-16
    • 2014-01-24
    • 2011-01-05
    • 2014-04-28
    相关资源
    最近更新 更多