Results 1 to 3 of 3

Thread: Problem with webscript

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Location
    Scotland
    Posts
    27

    Default Problem with webscript

    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

    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
    Starting up the java debugger, it seems to complain about a NullPointerException when it tries to make the "get" call using the remote connector.

    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?

  2. #2

    Default

    Hi,

    You may get more help if you post this question on Alfresco forum.

    But I hope this link can be useful for your debugging

    http://drquyong.com/myblog/?p=49

    Thanks!

    Yong

  3. #3

    Default

    Did you solve your problem - as it looks like a setup issue rather than a webscript issue but i could be wrong.

    Kev

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •