[
https://issues.apache.org/jira/browse/SLING-4336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283772#comment-14283772
]
Chetan Mehrotra commented on SLING-4336:
----------------------------------------
I think issue here is how the script is being executed by Adobe AEM product
which uses Sling Scripting support and is not a bug in Sling Scripting support.
So would suggest you to check with Adobe Support for that
> 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)