AnsweredAssumed Answered

Error

Question asked by thanthtoozin on Jan 22, 2014
Latest reply on Jan 23, 2014 by thanthtoozin
I write "Hello World" program but. It has 4 files

1.HelloWorld.java
2.helloWorld.get.desc.xml
3.helloWorld.get.json.ftl
4.helloWorld-module-context.xml

It is apper in the webScript(following).

======================================================================================

Package: /org/alfresco/helloworld

Hello World
GET /alfresco/s/org/alfresco/helloworld/helloWorld/

Retrun greetings

Authentication:   user
Transaction:   required
Format Style:   any
Default Format:   json
Id:   org/alfresco/helloworld/helloWorld.get
Descriptor:   classpath:alfresco/extension/templates/webscripts/org/alfresco/helloworld/helloWorld.get.desc.xml

======================================================================================

When I click "GET /alfresco/s/org/alfresco/helloworld/helloWorld/". The following error appeared


======================================================================================


{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "00220019 Wrapped Exception (with status template): 00220008 Error during processing of the template 'Expression roles is undefined on line 5, column 11 in org\/alfresco\/slingshot\/documentlibrary\/roles.get.json.ftl.'. Please contact your system administrator.", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException

Outcomes