Issue 16272

HTTP 500 error on species distribution

16272
Reporter: peterdesmet
Type: Bug
Summary: HTTP 500 error on species distribution
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2014-08-27 19:24:18.21
Updated: 2014-09-22 17:46:44.217
Resolved: 2014-09-22 17:46:44.183
        
        
Description: 1. Go to http://www.gbif.org/species/2334438
2. In the georeferenced data section, click on the "distributions" link in the text "Text based distributions present in some sources."
3. The linked page (http://www.gbif.org/species/2334438/distributions) shows an HTTP status 500 error]]>
    


Author: mdoering@gbif.org
Created: 2014-09-22 17:13:16.65
Updated: 2014-09-22 17:13:16.65
        
A freemarker template portal NPE:

-----
ERROR [2014-09-22 17:12:15,806+0200] [http-bio-8080-exec-11833] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor: The following has evaluated to null or missing:
==> u  [in template "WEB-INF/pages/species/distributions.ftl" at line 63, column 34]

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 2 more):
==> ${u.source}  [in template "WEB-INF/pages/species/distributions.ftl" at line 63, column 32]
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> u  [in template "WEB-INF/pages/species/distributions.ftl" at line 63, column 34]

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 2 more):
==> ${u.source}  [in template "WEB-INF/pages/species/distributions.ftl" at line 63, column 32]

    


Author: mdoering@gbif.org
Comment: https://github.com/gbif/portal-web/commit/ac95a3514ad410ced5c162e426e4755c55c7f145
Created: 2014-09-22 17:46:44.215
Updated: 2014-09-22 17:46:44.215