[x3d-public] X3DJSAIL: ProtoInstance fieldValue not an MFNode, but an SFNode. Complains!

John Carlson yottzumm at gmail.com
Wed Sep 13 04:33:01 PDT 2017


Not sure if this got sent.  Resending

Only one addChild in code, yet it complains about an MFNode.  Why?

Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: ProtoInstance USE='G1' is not allowed to have contained MFNode fieldValue
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.validate(ProtoInstanceObject.java:1165)
        at org.web3d.x3d.jsail.Core.fieldValueObject.validate(fieldValueObject.java:944)
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.addFieldValue(ProtoInstanceObject.java:1220)
        at jdk.nashorn.internal.scripts.Script$arc_sail.:program(net/coderextreme/data/arc.sail.js:148)
        at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
        at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
        at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
        at jdk.nashorn.tools.Shell.apply(Shell.java:471)
        at jdk.nashorn.tools.Shell.runScripts(Shell.java:400)
        at jdk.nashorn.tools.Shell.run(Shell.java:179)
        at jdk.nashorn.tools.Shell.main(Shell.java:143)
        at jdk.nashorn.tools.Shell.main(Shell.java:119)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170913/7f425285/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arc.sail.js.txt
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170913/7f425285/attachment.txt>


More information about the x3d-public mailing list