cancel
Showing results for 
Search instead for 
Did you mean: 

Warning when using JS save() function

mabayona
Champ on-the-rise
Champ on-the-rise
when I use the save() function in javascript (i.e. to force a custom space to be saved before using it or its sub-spaces) i get the following warning:

RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
Rhino runtime detected object Node Type: {my.model}my_space, Node Aspects: [{http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/application/1.0}uifacets, {http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/system/1.0}incomplete, {http://www.alfresco.org/model/content/1.0}copiedfrom] of class org.alfresco.repo.jscript.ScriptNode where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.

Any idea why it happens? is it relevant?

In any case, I assume it is an alfresco problem since it happens ONLY when running a javascript script and the message refers to a "missing Context.javaToJS() call"
2 REPLIES 2

louise
Champ in-the-making
Champ in-the-making
Same effect here…

sris
Champ in-the-making
Champ in-the-making
i too got the problem