Eclipse没有使用WAS 8显示异常堆栈跟踪

时间:2016-11-01 15:05:27

标签: java eclipse websphere struts

当代码抛出异常时,我当前在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; ...

提前致谢!

1 个答案:

答案 0 :(得分:0)

  

我看不出实际上是什么异常。

实际的异常消息是:

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

看起来你的一个Freemarker模板中存在解析错误。

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

如果将Websphere日志记录级别更改为debug,则应获得更多有助于识别故障模板的线索。

有关登录WAS的更多信息:

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

如果所有其他方法都失败了,您可以尝试在第41行第21行搜索任何带有问号字符的Freemarker模板。

相关问题