[x3d-public] X3DJSAIL: Interesting exception, but it could be my fault. Re: CommentsBlock.

Don Brutzman brutzman at nps.edu
Sun May 21 02:01:33 PDT 2017


these are fixed but there is still a gap in the chain when nested protoypes occur.  not a CommentsBlock problem.

fresh error:

===================================
Compiling 1 source file to C:\x3d-code\www.web3d.org\x3d\content\examples\Basic\classes
now run and validate the java model
java -classpath classes;../../../stylesheets/java/jars/X3DJSAIL.3.3.classes.jar;C:\x3d-code\www.web3d.org\x3d\tools\jar/saxon9he.jar Basic.development.CameraExamples
Exception in thread "main" org.web3d.x3d.sai.InvalidProtoException: ProtoInstance name='CameraMovement' ERROR_NOT_CONNECTED_TO_SCENE_GRAPH
	at org.web3d.x3d.jsail.Core.fieldValueObject.getType(fieldValueObject.java:942)
	at org.web3d.x3d.jsail.Core.fieldValueObject.getValue(fieldValueObject.java:493)
	at org.web3d.x3d.jsail.Core.fieldValueObject.validate(fieldValueObject.java:894)
	at org.web3d.x3d.jsail.Core.ProtoInstanceObject.validate(ProtoInstanceObject.java:1032)
	at org.web3d.x3d.jsail.Core.fieldValueObject.validate(fieldValueObject.java:898)
	at org.web3d.x3d.jsail.Core.ProtoInstanceObject.addFieldValue(ProtoInstanceObject.java:1096)
	at Basic.development.CameraExamples.initialize(CameraExamples.java:275)
	at Basic.development.CameraExamples.<init>(CameraExamples.java:160)
	at Basic.development.CameraExamples.main(CameraExamples.java:723)
Java Result: 1
===================================

plenty of progress today, uploading X3DJSAIL and JSON updates tonite.


On 5/20/2017 7:02 PM, John Carlson wrote:
> Have not triaged.  Code is attached.  And so is XML
> 
> org.web3d.x3d.sai.InvalidProtoException: ExternProtoDeclare name='CameraShot' with field name='moves' cannot have any initial value (found "[org.web3d.x3d.jsail.Core.CommentsBlock at 5cb0d902]"). Instead use ProtoInstance fieldValue to override the original default ProtoDeclare field value.
> 
> org.web3d.x3d.sai.InvalidProtoException: ExternProtoDeclare name='CameraShot' with field name='moves' cannot have any initial value (found "[org.web3d.x3d.jsail.Core.CommentsBlock at 5cb0d902]"). Instead use ProtoInstance fieldValue to override the original default ProtoDeclare field value.
> 
>          at org.web3d.x3d.jsail.Core.ExternProtoDeclareObject.setFieldList(ExternProtoDeclareObject.java:331)
> 
>          at org.web3d.x3d.jsail.Core.ExternProtoDeclareObject.validate(ExternProtoDeclareObject.java:842)
> 
>          at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:626)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:1880)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:750)
> 
>          at net.coderextreme.data.CameraExamples.main(CameraExamples.java:80)
> 
> Exception in thread "main" org.web3d.x3d.sai.InvalidProtoException: ExternProtoDeclare name='CameraShot' with field name='moves' cannot have any initial value (found "[org.web3d.x3d.jsail.Core.CommentsBlock at 5cb0d902]"). Instead use ProtoInstance fieldValue to override the original default ProtoDeclare field value.
> 
>          at org.web3d.x3d.jsail.Core.ExternProtoDeclareObject.setFieldList(ExternProtoDeclareObject.java:331)
> 
>          at org.web3d.x3d.jsail.Core.ExternProtoDeclareObject.validate(ExternProtoDeclareObject.java:842)
> 
>          at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:626)
> 
>         at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:1880)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:750)
> 
>          at net.coderextreme.data.CameraExamples.main(CameraExamples.java:80)
> 


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