[x3d-public] Please fix these issues with X3DJSAIL, etc. if possible
John Carlson
yottzumm at gmail.com
Thu Jun 29 17:53:08 PDT 2023
Don, please fix these issues with X3DJSAIL. I think they are in
X3DLoaderDOM.java, I haven't explored X3DUOM or schema yet.
org.web3d.x3d.jsail.DIS.DISEntityManager cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
org.web3d.x3d.jsail.HAnim.HAnimJoint cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
org.web3d.x3d.jsail.Networking.LoadSensor cannot be cast to class
org.web3d.x3d.sai.Grouping.X3DGroupingNode
Hot spots seem to be:
[java] at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:1352)
[java] at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
[java] at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
[java] at
org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
The first blue one, line 1352, appears to be the main problem:
// Note that Scene statement was already
handled earlier
if (!(elementObject instanceof
X3DGroupingNode))
{
errorNotice = "*** [X3DLoaderDOM error]
Parent-child node relationship not found! (parent " + nodeName + ", child "
+ childElementName +
", containerField='" +
containerField + "') Please report this problem to brutzman at nps.edu";
validationResult.append(errorNotice);
System.out.println(errorNotice); //
avoiding System.err due to redirection difficulties
} // WHERE'S THE ELSE?
((X3DGroupingNode)elementObject).addChildren(new
org.web3d.x3d.sai.Core.X3DNode[] { (X3DNode) childX3dElement } ); //
default fallback can throw exception // 1352
Hope this helps! I think fixing the egregious class cast exception at line
1352 would be the most help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230629/59a3edd7/attachment.html>
More information about the x3d-public
mailing list