cancel
Showing results for 
Search instead for 
Did you mean: 

Error

thanthtoozin
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
your url is wrong, get rid of the "s"

thanthtoozin
Champ in-the-making
Champ in-the-making
Thanks for the suggestion.
Although I change s to service there has same error occur.
In my opinion the webscript application cannot connect to the java.
Instead of java, I write "helloWorld.get.js" , it is run.

===============================================
model.greeting = "Hello";
===============================================

Thank you very much
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.