<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Javascript ScriptNode API:  error accessing aspects array in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-scriptnode-api-error-accessing-aspects-array/m-p/165406#M119092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to access the aspects array through the javascript API as described here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Scripting_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Scripting_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Every time i attempt to do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for each (aspect in node.aspects){&lt;BR /&gt;\\code here&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.mozilla.javascript.Context.newArray(Context.java:1545)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.jscript.ScriptNode.getAspects(ScriptNode.java:657)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried many permutations and it doesn't matter whether the node has any aspects or not.&amp;nbsp; I am using ver. 2.9c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are others having this problem?&amp;nbsp; Is this a bug or am i doing something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2008 01:08:46 GMT</pubDate>
    <dc:creator>natew</dc:creator>
    <dc:date>2008-04-07T01:08:46Z</dc:date>
    <item>
      <title>Javascript ScriptNode API:  error accessing aspects array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-scriptnode-api-error-accessing-aspects-array/m-p/165406#M119092</link>
      <description>I am attempting to access the aspects array through the javascript API as described here:http://wiki.alfresco.com/wiki/JavaScript_API#Scripting_APIEvery time i attempt to do something like this:for each (aspect in node.aspects){\\code here}‍‍‍I get this error:java.lang.IllegalArgumentException&amp;nbsp;&amp;nbsp;&amp;nbsp;at</description>
      <pubDate>Mon, 07 Apr 2008 01:08:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-scriptnode-api-error-accessing-aspects-array/m-p/165406#M119092</guid>
      <dc:creator>natew</dc:creator>
      <dc:date>2008-04-07T01:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript ScriptNode API:  error accessing aspects array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-scriptnode-api-error-accessing-aspects-array/m-p/165407#M119093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Even I am getting the same error, did you find a way around this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 21:55:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-scriptnode-api-error-accessing-aspects-array/m-p/165407#M119093</guid>
      <dc:creator>cryptomatt</dc:creator>
      <dc:date>2009-06-18T21:55:11Z</dc:date>
    </item>
  </channel>
</rss>

