You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Pulkit Agarwal (JIRA)" <ji...@apache.org> on 2015/01/20 11:55:35 UTC

[jira] [Created] (SLING-4336) getNode() or getNodes() method throws : org.mozilla.javascript.EcmaError

Pulkit Agarwal created SLING-4336:
-------------------------------------

             Summary: getNode() or getNodes() method throws : org.mozilla.javascript.EcmaError
                 Key: SLING-4336
                 URL: https://issues.apache.org/jira/browse/SLING-4336
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Pulkit Agarwal


While executing the below code with ecma script we receive the the : org.mozilla.javascript.EcmaError. 

{code}
var payload = session.getNode(payloadPath);
System.out.println("payload path = " + payload.getPath());
var inFolder = payload.getNode("input");
System.out.println("inFolder path = " + inFolder.getPath());
{code}
Where payload is string which is a valid JCR path having sub nodes as well. when we call getNode method it throws the above mentioned error. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)