cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript ScriptNode API: error accessing aspects array

natew
Champ in-the-making
Champ in-the-making
I am attempting to access the aspects array through the javascript API as described here:
http://wiki.alfresco.com/wiki/JavaScript_API#Scripting_API

Every time i attempt to do something like this:

for each (aspect in node.aspects){
\\code here
}

I get this error:
java.lang.IllegalArgumentException
   at org.mozilla.javascript.Context.newArray(Context.java:1545)
   at org.alfresco.repo.jscript.ScriptNode.getAspects(ScriptNode.java:657)

I have tried many permutations and it doesn't matter whether the node has any aspects or not.  I am using ver. 2.9c

Are others having this problem?  Is this a bug or am i doing something wrong.

Thanks!
1 REPLY 1

cryptomatt
Champ in-the-making
Champ in-the-making
Hey There,
  Even I am getting the same error, did you find a way around this?