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

Posted blog_xiao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 HTTP Status 500 - Unable to show problem report: freemarker.core.InvalidReferenceException:相关的知识,希望对你有一定的参考价值。

    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:的主要内容,如果未能解决你的问题,请参考以下文章

HTTP Status 500 怎么解决?

HTTP Status 500 -

HTTP Status 500错误怎么解决

问题解决 —— Http Status 500

解决思路HTTP Status 500 Type Exception ReportMessage Request processing failed; 已解决

访问jsp报HTTP Status 500 - java.lang.NullPointerException的解决方法