[x3d-public] Help validating this file? Issues with X3D Schema, CommandLine, X3D-Edit

John Carlson yottzumm at gmail.com
Mon Apr 29 02:16:35 PDT 2024


I'm trying to validate with a schema this ParticleSystems file as a
continuing journey towards adding a new feature to X_ITE and maybe Sunrize.
One issue is that I don't know how to use a local X3D DTD and local X3D
schema.  Are there options or properties in CommandLine?   These would be
good to prevent CommandLine from phoning home (disconnect your computer's
network connection to test).  You may place the attached .x3d file in the
archive, but first, supply your own cubemaps and shaders.  If I can provide
my own schema, I can help debug the problem.  Maybe I'll look into
modifying X3DJSAIL.   I'd rather be creating individually morphing GPU
instances.

The file displays in Sunrize OK.  The file practically validates in
view3dscene.

The issue is XML schema, CommandLine and X3D-Edit.

Any hints on adding a new PhysicsModel to X_ITE welcome!  I'll check in my
code there.

Here's the CommandLine log:

$ java -cp ~/pythonSAI/X3DJSAIL.4.0.full.jar
org.web3d.x3d.jsail.CommandLine -validate particleflowers.x3d
CommandLine parameter: "-validate" for model validation
parameter: source file particleflowers.x3d filesize 9062 bytes
Parsing using Document Object Model (DOM) based X3DLoaderDOM...
[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction,
current elementObject=BoundedPhysicsModel (BoundedPhysicsModel),
child="Sphere", containerField="geometry", java.lang.ClassCastException:
class org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel cannot be
cast to class org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
    This error can be caused by incorrect parent-child node relationships
or incorrect containerField values.
    X3D node typing is strict, check or validate your scene graph!
    This error can also be caused by X3DLoaderDOM DOM omissions in
X3DJSAIL. Please report mysterious problems, thank you.

java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel cannot be cast to
class org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.BoundedPhysicsModel and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:972)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)
        at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
        at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)
[error] X3DLoaderDOM: Parent-child node relationship not found! (parent
ParticleSystem, child BoundedPhysicsModel, containerField='physics') Please
report this problem to brutzman at nps.edu
[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction,
current elementObject=ParticleSystem (ParticleSystem),
child="BoundedPhysicsModel", containerField="physics",
java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.sai.Grouping.X3DGroupingNode are in unnamed module of loader
'app')
    This error can be caused by incorrect parent-child node relationships
or incorrect containerField values.
    X3D node typing is strict, check or validate your scene graph!
    This error can also be caused by X3DLoaderDOM DOM omissions in
X3DJSAIL. Please report mysterious problems, thank you.

java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.sai.Grouping.X3DGroupingNode are in unnamed module of loader
'app')
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:1352)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)
        at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
        at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)
[error] X3DLoaderDOM: Parent-child node relationship not found! (parent
ParticleSystem, child ExplosionEmitter, containerField='emitter') Please
report this problem to brutzman at nps.edu
[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction,
current elementObject=ParticleSystem (ParticleSystem),
child="ExplosionEmitter", containerField="emitter",
java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.sai.Grouping.X3DGroupingNode are in unnamed module of loader
'app')
    This error can be caused by incorrect parent-child node relationships
or incorrect containerField values.
    X3D node typing is strict, check or validate your scene graph!
    This error can also be caused by X3DLoaderDOM DOM omissions in
X3DJSAIL. Please report mysterious problems, thank you.

java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.sai.Grouping.X3DGroupingNode are in unnamed module of loader
'app')
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:1352)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)
        at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
        at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)
[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction,
current elementObject=ParticleSystem (ParticleSystem), child="Appearance",
containerField="appearance", java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
    This error can be caused by incorrect parent-child node relationships
or incorrect containerField values.
    X3D node typing is strict, check or validate your scene graph!
    This error can also be caused by X3DLoaderDOM DOM omissions in
X3DJSAIL. Please report mysterious problems, thank you.

java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:839)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)
        at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
        at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)
[error] X3DLoaderDOM: Incorrectly handled X3DJSAIL object construction,
current elementObject=ParticleSystem (ParticleSystem), child="Sphere",
containerField="geometry", java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
    This error can be caused by incorrect parent-child node relationships
or incorrect containerField values.
    X3D node typing is strict, check or validate your scene graph!
    This error can also be caused by X3DLoaderDOM DOM omissions in
X3DJSAIL. Please report mysterious problems, thank you.

java.lang.ClassCastException: class
org.web3d.x3d.jsail.ParticleSystems.ParticleSystem cannot be cast to class
org.web3d.x3d.jsail.Shape.Shape
(org.web3d.x3d.jsail.ParticleSystems.ParticleSystem and
org.web3d.x3d.jsail.Shape.Shape are in unnamed module of loader 'app')
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:972)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:247)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:231)
        at
org.web3d.x3d.jsail.X3DLoaderDOM.loadModelFromFileX3D(X3DLoaderDOM.java:205)
        at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
        at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:242)
validate results:
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='a' toNode='x_ite' toField='a'/>
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='b' toNode='x_ite' toField='b'/>
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='c' toNode='x_ite' toField='c'/>
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='d' toNode='x_ite' toField='d'/>
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='pdelta' toNode='x_ite'
toField='pdelta'/>
ROUTE toNode='x_ite' was not found in connected scene graph.
<ROUTE fromNode='Animate' fromField='tdelta' toNode='x_ite'
toField='tdelta'/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240429/45565a43/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: particleflowers.x3d
Type: application/octet-stream
Size: 9062 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240429/45565a43/attachment-0001.obj>


More information about the x3d-public mailing list