Announcement Announcement Module
Collapse
No announcement yet.
Problem with webscript Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Kev

      Comment

      Working...
      X