[x3d-public] X3DJSAIL: Confusing error message.

Don Brutzman brutzman at nps.edu
Sat May 6 19:28:25 PDT 2017


Thanks.  Error message improved a little:

	Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException:
	illegal boolean value for MFBoolObject() initialization, newValue[0]='0' but must be 'true' or 'false' (case sensitive)		

On 5/6/2017 12:47 PM, yottzumm at gmail.com wrote:
> Here’s the message and code is attached.  Also I will provide XML file.  The Boolean in question was a “0” which I have fixed, but it was an SFBool, not an MFBool.  So a bit of misdirection.  The files may have changed out from under me, but you can reproduce by replacing false with 0 or “0”.
> 
> Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: illegal boolean value, must be 'true' or 'false' (case sensitive), new MFBoolObject([Ljava.lang.String;@17f052a3)
> 
>          at org.web3d.x3d.jsail.fields.MFBoolObject.setValueByString(MFBoolObject.java:119)
>          at org.web3d.x3d.jsail.Core.fieldObject.setValue(fieldObject.java:1014)
>          at force.initialize(force.java:190)
>          at force.main(force.java:79)
all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list