[
https://issues.apache.org/jira/browse/SLING-4336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra resolved SLING-4336.
------------------------------------
Resolution: Invalid
> 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
> Labels: ECMA
> Attachments: ecma.logs
>
>
> 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)