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

John Carlson yottzumm at gmail.com
Mon May 22 21:56:50 PDT 2017


Don, be sure the quotes, escapes etc in the Java generated from these files is what we want.  Also test all the way through X3DJSAIL and compare X3D output to X3D input.

I gotta get something to eat.

Thanks,

John

Attached.

Sent from Mail for Windows 10

From: Don Brutzman
Sent: Monday, May 22, 2017 11:47 PM
To: John Carlson
Cc: X3D Graphics public mailing list
Subject: Re: X3DJSAIL: Interesting exception, but it could be my fault. Re:CommentsBlock.

On 5/21/2017 2:01 AM, Don Brutzman wrote:
> these are fixed but there is still a gap in the chain when nested protoypes occur.  not a CommentsBlock problem.

Those issues are now fixed.  Build report:  improved handling of ProtoInstance getNodeByDEF, getFieldType, getAccessType plus additional utility methods.

=================================================================================================================
ProtoInstance utility methods

http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/ProtoInstanceObject.html#method.summary

hasExternProtoDeclare()
Determine whether a corresponding ExternProtoDeclare with same name is connected in this scene graph.

hasProtoDeclare()
Determine whether a corresponding ProtoDeclare with same name is connected in this scene graph.

getExternProtoDeclare()
Provide corresponding ExternProtoDeclare with same name if connected in this scene graph.

getProtoDeclare()
Provide corresponding ProtoDeclare with same name if connected in this scene graph.
=================================================================================================================

As a result, test shows support is included for nested ProtoInstance nodes.  Example attached, updated X3DJSAIL deployed.

These corrections fix some "false negative" warnings on ROUTEs in the archives.  I'll rerun all Java examples tonight to clean them up.

> 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


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browser.x3d
Type: application/octet-stream
Size: 1184 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirror.x3d
Type: application/octet-stream
Size: 12059 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextExamples.x3d
Type: application/octet-stream
Size: 2201 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextSpecialCharacters.x3d
Type: application/octet-stream
Size: 2707 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3dHeaderPrototypeSyntaxExamples.x3d
Type: application/octet-stream
Size: 6397 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170523/09537e8a/attachment-0009.obj>


More information about the x3d-public mailing list