Anyone else having trouble getting a basic web script to work? I have one as follows
// get a connector to the Alfresco repository endpoint
var connector = remote.connect("alfresco");
// retrieve the web script index page
var indexHtml = connector.get("/sample/folder/Company Home");
model.descriptor = connector.getDescriptor();
However, it fails with a message of
The Web Script /service/cms/getsitetree has responded with a status of 500 - Internal Error.
In the logs I see
Starting up the java debugger, it seems to complain about a NullPointerException when it tries to make the "get" call using the remote connector.Code:27-Mar-2010 14:10:35 org.springframework.extensions.webscripts.AbstractRuntime executeScript SEVERE: Exception from executeScript - redirecting to status template error: 02270001 Failed to load script 'org.springframework.extensions.webscripts .ResourceStore$WebApplicationStoreScriptContent@497a3d': 02270000 org.springframework.extensions.webscripts.WebScriptException: 02270001 Failed to load script 'org.springframework.extensions.webscripts.ResourceStore$ WebApplicationStoreScriptContent@497a3d': 02270000
I thought initially it may be because I wasn't authenticated, but, when checking the user details (e.g. ${user.id}), they seem set properly.
Am I missing something?


Reply With Quote