简体   繁体   English

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

[英]Eclipse is not showing exception stack trace using WAS 8

I'm currently seeing this message log in the Eclipse console tab when the code throws an exception. 当前,当代码引发异常时,我在Eclipse控制台选项卡中看到此消息日志。 I can't see what the exception actually is. 我看不出异常是什么。

I'm using Eclipse Kepler and WebSphere Application Server 8.0 我正在使用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; ...

Thanks in advance! 提前致谢!

I can't see what the exception actually is. 我看不出异常是什么。

The actual exception message is: 实际的异常消息是:

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

It looks like there is a parse error in one of your Freemarker templates. 您的Freemarker模板之一似乎出现解析错误。

The rest is Websphere saying that it cannot report the problem in a 5xx error page ... probably because the response had already committed. 其余的人是Websphere,说它无法在5xx错误页面中报告问题……可能是因为响应已经提交。

If you change the Websphere logging level to debug, you should get more clues that will help you to identify the faulty template. 如果将Websphere日志记录级别更改为调试级别,则应该获得更多线索,以帮助您确定有故障的模板。

For more info about logging on WAS: 有关登录WAS的更多信息:

You should also check to see if Websphere log events are being logged somewhere else; 您还应该检查一下是否在其他地方记录了Websphere日志事件。 eg log files. 例如日志文件。 Those logs could have full stacktraces. 这些日志可能具有完整的堆栈跟踪。

If all else fails, you could try searching for any Freemarker template that has a question-mark character at line 41, column 21. 如果其他所有方法均失败,则可以尝试在第41行第21列中搜索任何带有问号字符的Freemarker模板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM