AnsweredAssumed Answered

Java-backed webscript

Question asked by sakshik on Jun 10, 2017
Latest reply on Jun 14, 2017 by sakshik

I am following this tutorial to create a folder-listing java-backed webscript. 

Creating a Java-backed web script | Alfresco Documentation 

 

I have build maven project from eclipse. It is working(able to load localhost:8080/share)

but, when I run the : http://127.0.0.1:8080/alfresco/service/javadir/Company%20Home/sakshitest 

It is displaying the following error:

 

 
Message:05090000 Wrapped Exception (with status template): 05090002 Error during processing of the template 'The following has evaluated to null or missing: ==> folder [in template "alfresco/tutorials/javadir.get.html.ftl" at line 3, column 19] 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: ==> ${folder} [in template "alfresco/tutorials/javadir.get.html.ftl" at line 3, column 17]'. Please contact your system administrator.
Server:

Community v5.2.0 (r130508-b9) schema 10,004

Help is appreciated!

Outcomes