AnsweredAssumed Answered

Warning when using JS save() function

Question asked by mabayona on Apr 8, 2008
Latest reply on Feb 9, 2009 by sris
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"

Outcomes