Issue 16084

Portal logs error in occurrence/inc/filters.ftl

16084
Reporter: omeyn
Type: Bug
Summary: Portal logs error in occurrence/inc/filters.ftl
Resolution: Fixed
Status: Closed
Created: 2014-07-10 10:09:25.597
Updated: 2014-07-10 11:32:51.323
Resolved: 2014-07-10 10:27:00.04
        
        
Description: Not sure what triggers it:

ERROR [2014-07-10 09:59:58,129+0200] [http-bio-8080-exec-134] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor: The following has evaluated to null or missing:
==> nameUsageSearchResult.scientificName  [in template "WEB-INF/pages/occurrence/inc/filters.ftl" at line 591, column 246]

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. (These only cover the last step of the expression; to cover the whole
 expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (print stack trace for 4 more):
==> ${nameUsageSearchResult.scientificName}  [in template "WEB-INF/pages/occurrence/inc/filters.ftl" at line 591, column 244]
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> nameUsageSearchResult.scientificName  [in template "WEB-INF/pages/occurrence/inc/filters.ftl" at line 591, column 246]

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. (These only cover the last step of the expression; to cover the whole
 expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (print stack trace for 4 more):
==> ${nameUsageSearchResult.scientificName}  [in template "WEB-INF/pages/occurrence/inc/filters.ftl" at line 591, column 244]
        at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98) ~[freemarker-2.3.20.jar:2.3.20]
        at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382) ~[freemarker-2.3.20.jar:2.3.20]
]]>
    


Author: omeyn@gbif.org
Comment: was caused by occurrence/search?TAXON_KEY=pattern and is now fixed
Created: 2014-07-10 10:27:00.07
Updated: 2014-07-10 10:27:00.07