码迷,mamicode.com
首页 > Web开发 > 详细

解决 HTTP Status 500 - Unable to show problem report: freemarker.core.InvalidReferenceException:

时间:2017-04-22 12:28:04      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:marker   dispatch   core   cti   epo   free   lua   exp   eval   

    HTTP Status 500 - Unable to show problem report: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> msg [in template "org/apache/struts2/dispatcher/error.ftl" at line 68, column 31] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction: ==> ${msg[0]} [in template "org/apache/struts2/dispatcher/error.ftl" at line 68, column 29] Class: freemarker.core.InvalidReferenceException File: InvalidReferenceException.java Method: getInstance Line: 98 - freemarker/core/InvalidReferenceException.java:98:-1

解决办法:在struts.xml 将<constant name="struts.devMode" value="true" />

改为<constant name="struts.devMode" value="false" />  这只能让你看到你在什么地方出错,具体的错误得你自己解决。

 

解决 HTTP Status 500 - Unable to show problem report: freemarker.core.InvalidReferenceException:

标签:marker   dispatch   core   cti   epo   free   lua   exp   eval   

原文地址:http://www.cnblogs.com/blogxiao/p/6747337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!