Resolve HTTP Status 500-unable to show problem report:freemarker.core.InvalidReferenceException:

Source: Internet
Author: User

HTTP Status 500-unable to show problem Report:freemarker.core.InvalidReferenceException:The following have evaluated to Null or missing: ==> msg [in template ' Org/apache/struts2/dispatcher/error.ftl ' at line, column] Tip:if the FAI Ling expression is known to being 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)!myde Fault, (Myoptionvar.foo)?? The failing instruction: ==> ${msg[0]} [in template ' Org/apache/struts2/dispatcher/error.ftl ' at line, column] Cl Ass:freemarker.core.InvalidReferenceException File:InvalidReferenceException.java method:getinstance line:98- Freemarker/core/invalidreferenceexception.java:98:-1

Workaround: The struts.xml will <constant name= "Struts.devmode" value= "true"/>

Change to <constant name= "Struts.devmode" value= "false"/> This will only let you see where you went wrong, the specific mistake you have to solve yourself.

Resolve HTTP Status 500-unable to show problem report:freemarker.core.InvalidReferenceException:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.