解决 HTTP Status 500 - Unable to show problem report: freemarker.core.InvalidReferenceException:
2024-08-24 16:57:50
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" /> 这只能让你看到你在什么地方出错,具体的错误得你自己解决。
最新文章
- Sql Server函数全解(二)数学函数
- js中replace的回调函数使用。
- 算法入门笔记------------Day1
- DES加密 java与.net可以相互加密解密的方法
- Eclipse启动Tomcat时45秒超时的解决方法
- iOS系统自带正则表达式简单运用
- prtg
- C#加密解密算法汇总(转)
- JS代码检查工具ESLint
- .NET--------枚举扩展方法(枚举转list,获取枚举描述)
- iptables和netfilter
- C#爬虫----Fiddler 插件开发 自动生成代码
- 二.css介绍
- Wordpress显示文章摘要
- Python 面向对象编程(进阶部分)
- android( java) 处理 null 和 预防空指针异常(NullPointerException) 的一些经验。
- Ubuntu下环境变量的设置
- ubunut下安装ibus_pinyin中文输入法
- Serial,Parallel,CMS,G1四大GC收集器特点小结
- ubuntu -- 不输入密码执行sudo