AnsweredAssumed Answered

alfresco 5.0.b cannot access site manager

Question asked by sharifu on Sep 21, 2015
I have 5.0.b community installed on centos 6 64bit. I logged in as alfresco user and when I try to acces Site Manager under Admin Tools i get blank page with alot of logging





==> /opt/alfresco/tomcat/logs/catalina.out <==
2015-09-21 12:40:44,489  ERROR [freemarker.runtime] [http-apr-8080-exec-17] Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> jsonUtils.encodeJSONString(x)  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 4, column 15]

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 (FTL stack trace):
———-
==> ${manager.lastName} auto-escaped  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" in macro "siteJSON" at line 20, column 51]
    @siteJSON item=item  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 30, column 11]
    #nested item  [in template "org/alfresco/repository/generic-paged-results.lib.ftl" in macro "standardRestfulPagedResults" at line 83, column 21]
    @gen.standardRestfulPagedResults data…  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 29, column 4]
———-

Java stack trace (for programmers):
———-
freemarker.core.InvalidReferenceException: [… Exception message was already printed; see it above …]
   at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)
   at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)
   at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
   at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
   at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Macro$Context.runMacro(Macro.java:209)
   at freemarker.core.Environment.visit(Environment.java:694)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Environment.visit(Environment.java:487)
   at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
   at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Macro$Context.runMacro(Macro.java:209)
   at freemarker.core.Environment.visit(Environment.java:694)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Environment.process(Environment.java:243)
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:217)
   at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:955)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:463)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:532)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:157)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:114)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.WebscriptCookieAuthenticationFilter.doFilter(WebscriptCookieAuthenticationFilter.java:61)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
2015-09-21 12:40:44,490  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-17] Exception from executeScript - redirecting to status template error: 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:
==> jsonUtils.encodeJSONString(x)  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 4, column 15]

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 (print stack trace for 3 more):
==> ${manager.lastName} auto-escaped  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" in macro "siteJSON" at line 20, column 51]'. Please contact your system administrator.
org.springframework.extensions.webscripts.WebScriptException: 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:
==> jsonUtils.encodeJSONString(x)  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 4, column 15]

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 (print stack trace for 3 more):
==> ${manager.lastName} auto-escaped  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" in macro "siteJSON" at line 20, column 51]'. Please contact your system administrator.
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:463)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:532)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:157)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:114)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.WebscriptCookieAuthenticationFilter.doFilter(WebscriptCookieAuthenticationFilter.java:61)
   at sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy266.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.service.cmr.repository.TemplateException: 08210060 Error during processing of the template 'The following has evaluated to null or missing:
==> jsonUtils.encodeJSONString(x)  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 4, column 15]

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 (print stack trace for 3 more):
==> ${manager.lastName} auto-escaped  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" in macro "siteJSON" at line 20, column 51]'. Please contact your system administrator.
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:221)
   at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:955)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
   … 66 more
Caused by: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> jsonUtils.encodeJSONString(x)  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" at line 4, column 15]

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 (print stack trace for 3 more):
==> ${manager.lastName} auto-escaped  [in template "org/alfresco/repository/site/site-admin-sites.get.json.ftl" in macro "siteJSON" at line 20, column 51]
   at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)
   at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)
   at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
   at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
   at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Macro$Context.runMacro(Macro.java:209)
   at freemarker.core.Environment.visit(Environment.java:694)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Environment.visit(Environment.java:487)
   at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
   at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Macro$Context.runMacro(Macro.java:209)
   at freemarker.core.Environment.visit(Environment.java:694)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.MixedContent.accept(MixedContent.java:93)
   at freemarker.core.Environment.visit(Environment.java:265)
   at freemarker.core.Environment.process(Environment.java:243)
   at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:217)
   … 69 more
2015-09-21 12:40:44,517  ERROR [surf.webscripts.PostClientSideError] [http-apr-8080-exec-23] The following client-side error has been reported:
   user: alfresco
   page: http://alfresco:8080/share/page/console/admin-console/manage-sites
   callerName: V
   messageArgs: ["Data Load Failed",{"response":{"response":{"text":"\r\n{\r\n\t\"list\" : {\r\n\t\t\"pagination\" : {\r\n\t\t\t\"count\" : 2,\r\n\t\t\t\"hasMoreItems\" : false,\r\n\t\t\t\"totalItems\" : 2,\r\n\t\t\t\"skipCount\" :0,\r\n\t\t\t\"maxItems\" : 25\r\n\t\t},\r\n\t    \"entries\" : [\r\n\t        {\r\n\t            \"entry\" : {\r\n\t                \"url\" : \"\\\/alfresco\\\/wcs\\\/api\\\/sites\\\/archive\",\r\n\t                \"sitePreset\" : \"site-dashboard\",\r\n\t                \"shortName\" : \"archive\",\r\n\t                \"title\" : \"Archive\",\r\n\t                \"description\" : \"\",\r\n\t                \"createdDate\" : \"2015-09-14T11:20:28.029+01:00\",\r\n\t                \"lastModifiedDate\" : \"2015-09-14T11:20:29.512+01:00\",\r\n\t                \"visibility\" : \"MODERATED\",\r\n\t                \"userIsSiteManager\" : \"true\",\r\n\t                \"siteManagers\" : [\r\n\t                    {\r\n\t                        \"entry\" : {\r\n\t                            \"userName\" : \"alfresco\",\r\n\t                            \"firstName\" : \"Alfresco\",\r\n\t                            \"lastName\" : \"{\n    \"status\" : \n  {\n    \"code\" : 500,\n    \"name\" : \"Internal Error\",\n    \"description\" : \"An error inside the HTTP server which prevented it from fulfilling the request.\"\n  },  \n  \n  \"message\" : \"08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\",  \n  \"exception\" : \"org.springframework.extensions.webscripts.WebScriptException - 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\",\n  \n  \"callstack\" : \n  [ \n  \t  \"\"      ,\"freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]\"\n      ,\"freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)\"\n      ,\"freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)\"\n      ,\"freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)\"\n      ,\"freemarker.core.DollarVariable.accept(DollarVariable.java:76)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visitByHiddingParent(Environment.java:286)\"\n      ,\"freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)\"\n      ,\"freemarker.core.Environment.visitIteratorBlock(Environment.java:509)\"\n      ,\"freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Macro$Context.runMacro(Macro.java:209)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:694)\"\n      ,\"freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:487)\"\n      ,\"freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visitByHiddingParent(Environment.java:286)\"\n      ,\"freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)\"\n      ,\"freemarker.core.Environment.visitIteratorBlock(Environment.java:509)\"\n      ,\"freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Macro$Context.runMacro(Macro.java:209)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:694)\"\n      ,\"freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Environment.process(Environment.java:243)\"\n      ,\"org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:217)\"\n      ,\"org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:955)\"\n      ,\"org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)\"\n      ,\"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:463)\"\n      ,\"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:532)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261)\"\n      ,\"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)\"\n      ,\"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)\"\n      ,\"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)\"\n      ,\"javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:157)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:114)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.WebscriptCookieAuthenticationFilter.doFilter(WebscriptCookieAuthenticationFilter.java:61)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\"\n      ,\"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\"\n      ,\"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)\"\n      ,\"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)\"\n      ,\"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)\"\n      ,\"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)\"\n      ,\"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\"\n      ,\"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)\"\n      ,\"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)\"\n      ,\"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\"\n      ,\"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)\"\n      ,\"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)\"\n      ,\"java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\"\n      ,\"java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\"\n      ,\"java.lang.Thread.run(Unknown Source)\"\n      ,\"org.alfresco.service.cmr.repository.TemplateException: 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\"\n      ,\"org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:221)\"\n      ,\"org.springframework.extensions.webscripts.WebScriptException: 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\"\n      ,\"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)\"\n \n  ],\n  \n  \"server\" : \"Community v5.0.0 (r86473-b92) schema 8,006\",\n  \"time\" : \"21-Sep-2015 12:40:44\"\n}\n\n","status":500,"data":"\r\n{\r\n\t\"list\" : {\r\n\t\t\"pagination\" : {\r\n\t\t\t\"count\" : 2,\r\n\t\t\t\"hasMoreItems\" : false,\r\n\t\t\t\"totalItems\" : 2,\r\n\t\t\t\"skipCount\" :0,\r\n\t\t\t\"maxItems\" : 25\r\n\t\t},\r\n\t    \"entries\" : [\r\n\t        {\r\n\t            \"entry\" : {\r\n\t                \"url\" : \"\\\/alfresco\\\/wcs\\\/api\\\/sites\\\/archive\",\r\n\t                \"sitePreset\" : \"site-dashboard\",\r\n\t                \"shortName\" : \"archive\",\r\n\t                \"title\" : \"Archive\",\r\n\t                \"description\" : \"\",\r\n\t                \"createdDate\" : \"2015-09-14T11:20:28.029+01:00\",\r\n\t                \"lastModifiedDate\" : \"2015-09-14T11:20:29.512+01:00\",\r\n\t                \"visibility\" : \"MODERATED\",\r\n\t                \"userIsSiteManager\" : \"true\",\r\n\t                \"siteManagers\" : [\r\n\t                    {\r\n\t                        \"entry\" : {\r\n\t                            \"userName\" : \"alfresco\",\r\n\t                            \"firstName\" : \"Alfresco\",\r\n\t                            \"lastName\" : \"{\n    \"status\" : \n  {\n    \"code\" : 500,\n    \"name\" : \"Internal Error\",\n    \"description\" : \"An error inside the HTTP server which prevented it from fulfilling the request.\"\n  },  \n  \n  \"message\" : \"08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\",  \n  \"exception\" : \"org.springframework.extensions.webscripts.WebScriptException - 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\",\n  \n  \"callstack\" : \n  [ \n  \t  \"\"      ,\"freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]\"\n      ,\"freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)\"\n      ,\"freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)\"\n      ,\"freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)\"\n      ,\"freemarker.core.DollarVariable.accept(DollarVariable.java:76)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visitByHiddingParent(Environment.java:286)\"\n      ,\"freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)\"\n      ,\"freemarker.core.Environment.visitIteratorBlock(Environment.java:509)\"\n      ,\"freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Macro$Context.runMacro(Macro.java:209)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:694)\"\n      ,\"freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:487)\"\n      ,\"freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visitByHiddingParent(Environment.java:286)\"\n      ,\"freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)\"\n      ,\"freemarker.core.Environment.visitIteratorBlock(Environment.java:509)\"\n      ,\"freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Macro$Context.runMacro(Macro.java:209)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:694)\"\n      ,\"freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.MixedContent.accept(MixedContent.java:93)\"\n      ,\"freemarker.core.Environment.visit(Environment.java:265)\"\n      ,\"freemarker.core.Environment.process(Environment.java:243)\"\n      ,\"org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:217)\"\n      ,\"org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:955)\"\n      ,\"org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)\"\n      ,\"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:463)\"\n      ,\"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:532)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380)\"\n      ,\"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261)\"\n      ,\"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)\"\n      ,\"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)\"\n      ,\"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)\"\n      ,\"javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:157)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:114)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.WebscriptCookieAuthenticationFilter.doFilter(WebscriptCookieAuthenticationFilter.java:61)\"\n      ,\"sun.reflect.GeneratedMethodAccessor576.invoke(Unknown Source)\"\n      ,\"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\"\n      ,\"java.lang.reflect.Method.invoke(Unknown Source)\"\n      ,\"org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125)\"\n      ,\"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)\"\n      ,\"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\"\n      ,\"com.sun.proxy.$Proxy266.doFilter(Unknown Source)\"\n      ,\"org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\"\n      ,\"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\"\n      ,\"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\"\n      ,\"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\"\n      ,\"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)\"\n      ,\"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)\"\n      ,\"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)\"\n      ,\"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)\"\n      ,\"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\"\n      ,\"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)\"\n      ,\"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)\"\n      ,\"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\"\n      ,\"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)\"\n      ,\"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)\"\n      ,\"java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\"\n      ,\"java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\"\n      ,\"java.lang.Thread.run(Unknown Source)\"\n      ,\"org.alfresco.service.cmr.repository.TemplateException: 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\"\n      ,\"org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:221)\"\n      ,\"org.springframework.extensions.webscripts.WebScriptException: 08210421 Wrapped Exception (with status template): 08210060 Error during processing of the template 'The following has evaluated to null or missing:\\n==> jsonUtils.encodeJSONString(x)  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" at line 4, column 15]\\n\\nTip: 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)??\\n\\nThe failing instruction (print stack trace for 3 more):\\n==> ${manager.lastName} auto-escaped  [in template \\\"org\\\/alfresco\\\/repository\\\/site\\\/site-admin-sites.get.json.ftl\\\" in macro \\\"siteJSON\\\" at line 20, column 51]'. Please contact your system administrator.\"\n      ,\"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)\"\n \n  ],\n  \n  \"server\" : \"Community v5.0.0 (r86473-b92) schema 8,006\",\n  \"time\" : \"21-Sep-2015 12:40:44\"\n}\n\n","xhr":{},"url":"http:\/\/alfresco:8080\/share\/proxy\/alfresco\/api\/admin-sites?skipCount=0&maxItems=25","options":{"headers":{"Content-Type":"application\/json","Alfresco-CSRFToken":"fv0coJugUoA10L8FFE8ek\/b8xsC7ETajq0cm7ocOq5o="},"handleAs":"text"}},"message":"Unable to load http:\/\/alfresco:8080\/share\/proxy\/alfresco\/api\/admin-sites?skipCount=0&maxItems=25 status: 500","stack":".cache[\"dojo\/errors\/create\"]\/<\/<\/b@http:\/\/alfresco:8080\/share\/res\/js\/surf\/6264c698017d5884f2b8a7c89b723701.js:75:193\ng@http:\/\/alfresco:8080\/share\/res\/js\/surf\/6264c698017d5884f2b8a7c89b723701.js:198:818\ns@http:\/\/alfresco:8080\/share\/res\/js\/surf\/6264c698017d5884f2b8a7c89b723701.js:198:1027\n"},"requestConfig":{"method":"GET","alfTopic":"ALF_RETRIEVE_DOCUMENTS_REQUEST","url":"http:\/\/alfresco:8080\/share\/proxy\/alfresco\/api\/admin-sites?skipCount=0&maxItems=25"},"alfTopic":"MANAGE_SITES_SITE_SERVICE_ALF_RETRIEVE_DOCUMENTS_REQUEST_FAILURE"},null]
^C



My global properties file is as follows



###############################
## Common Alfresco Properties #
###############################

dir.root=/opt/alfresco-5.0.b/alf_data

alfresco.context=alfresco
alfresco.host=alfresco
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=alfresco
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.gjt.mm.mysql.Driver
db.username=alfresco
db.password=specalfr
db.name=alfresco
db.url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1

# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=PRODUCTION

### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21
ftp.ipv6.enabled=false

### RMI registry port for JMX ###
alfresco.rmi.services.port=50500
monitor.rmi.service.port=50508
#alfresco.rmi.services.port=9012
#monitor.rmi.service.port=9012
alfresco.rmi.services.external.host=172.16.3.134
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
ooo.exe=/opt/alfresco-5.0.b/libreoffice/program/soffice
ooo.enabled=true
ooo.port=8100
img.root=/opt/alfresco-5.0.b/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/opt/alfresco-5.0.b/common/bin/pdf2swf
swf.languagedir=/opt/alfresco-5.0.b/common/japanese

jodconverter.enabled=false
jodconverter.officeHome=/opt/alfresco-5.0.b/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=1e1dd34b128de1968a44212e05d9e942

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=/opt/alfresco-5.0.b

### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false

### Allow extended ResultSet processing
security.anyDenyDenies=false






### AD SSO
authentication.chain=passthru1:passthru,ldap1:ldap-ad
alfresco.authentication.authenticateCIFS=false
ntlm.authentication.sso.enabled=true
passthru.authentication.authenticateCIFS=true
ldap.authentication.active=false
ldap.synchronization.active=true
ldap.authentication.userNameFormat=%s
ldap.authentication.allowGuestLogin=false
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://echo.uk.domain.com:389
ldap.synchronization.java.naming.security.authenticaton=simple
ldap.synchronization.java.naming.security.principal=administrator@domain.com
ldap.synchronization.java.naming.security.credentials=***
ldap.synchronization.userSearchBase=ou\=Sites,dc\=domain,dc\=com
synchronization.synchronizeChangesOnly=false
### synchronization.import.cron=0 0 0 * * ?
synchronization.syncWhenMissingPeopleLogIn=true
synchronization.autoCreatePeopleOnLogin=true
passthru.authentication.domain=DOMAIN
passthru.authentication.servers=DOMAIN\\echo.uk.domain.com,DOMAIN\\akutan.usa.domain.com
passthru.authentication.defaultAdministratorUserNames=johnl,markw,administrator,alfresco,sharifu

ldap.synchronization.queryBatchSize=1000
#ldap.synchronization.groupDifferentialQuery=(&(objectclass=nogroup)(!(modifyTimestamp<\={0})))
#ldap.synchronization.personQuery=(&(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
#ldap.synchronization.personDifferentialQuery=(& (objectclass=user)(!(modifyTimestamp<\={0})))
ldap.synchronization.groupQuery=(objectclass\=group)

ldap.synchronization.groupSearchBase=cn\=users,dc\=domain,dc\=com

# Delay indexing to improve replication performance
#index.tracking.disableInTransactionIndexing=true
#lucene.maxAtomicTransformationTime=0

replication.enabled=true

#db.schema.update=true
#db.schema.update.lockRetryCount=24
#db.schema.update.lockRetryWaitSeconds=5

### Index Recovery Mode
#index.recovery.mode=FULL

### E-mail site invitation setting ###
activities.feed.notifier.enabled=false

### CIFS Server Configuration ###
cifs.serverName=${localname}

ffmpeg.exe=/usr/local/bin/ffmpeg

### mail
mail.host=hero.uk.domain.com

system.content.eagerOrphanCleanup=true
system.content.orphanProtectDays=7
system.content.orphanCleanup.cronExpression=0 0 * * * ?

trashcan.cleaner.protected.day=7
trashcan.deleteBatchCount=1000
trashcan.cleaner.cron=0 0 * * * ?
#trashcan.cleaner.cron=0 0 8-14 * 1 ?


#sharepoint
vti.server.port=7070
vti.alfresco.deployment.context=/alfresco
vti.share.shareHostWithPort=http://hector:8080
vti.server.external.host=${localname}
vti.server.external.port=${vti.server.port}
vti.server.external.protocol=${vti.server.protocol}


#disable google docs
googledocs.googleeditable.enabled=false
googledocs.enabled=false

#https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/custom-search-folder-02212014-0346#comment-158564
#system.metadata-query-indexes.ignored=false

Outcomes