freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> bean[colName] [in template "front.ftl" at line 46, column 35] Tip: It's the final [] step that caused this error, not those before it. Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? FTL stack trace ("~" means nesting-related): - Failed at: ${bean[colName]} [in template "front.ftl" at line 46, column 33] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by murdoc1871
, 1 year ago
The following has evaluated to null or missing: ==> bean[colName] [in template "front.ftl" at line 46, column 35] Tip: It's the final [] step that caused this error, not those before it. Tip: If the failing expression is known to be legally refer to
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> bean[colName] [in template "front.ftl" at line 46, column 35] Tip: It's the final [] step that caused this error, not those before it. Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? FTL stack trace ("~" means nesting-related): - Failed at: ${bean[colName]} [in template "front.ftl" at line 46, column 33] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:451)
at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:374)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:96)
at freemarker.core.DollarVariable.accept(DollarVariable.java:59)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.