hi,
 
I'm trying to use the getNamedObjects call thats been noted in the mail archive as usable to get references to nodes in a scene.  The particular case is using the vrml97 jar and a HANIM vrml file.   I'm working with a modified version of the Simple example from the VRML examples.  It seems to work fine with a simple vrml file ( a cube for instance) but the HANIM file causes the exception given below.
 
Can anyone comment/hazard a guess at a cause?
 
Thanks.
 
kwc
____________________________
before scene.getNamedObjects
java.lang.NullPointerException
    at javax.media.j3d.LinkRetained.setSharedGroup(LinkRetained.java:46)
    at javax.media.j3d.LinkRetained.clone(LinkRetained.java:216)
    at javax.media.j3d.Link.duplicateNode(Link.java:185)
    at javax.media.j3d.Link.cloneNode(Link.java:109)
    at javax.media.j3d.Leaf.cloneTree(Leaf.java:58)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Group.cloneTree(Group.java:361)
    at javax.media.j3d.Node.cloneTree(Node.java:378)
    at com.sun.j3d.loaders.vrml97.impl.NonSharedNode.getImplNode(NonSharedNode.java:126)
    at com.sun.j3d.loaders.vrml97.impl.ProtoInstance.getImplNode(ProtoInstance.java:145)
    at vrml.BaseNode.getImplNode(BaseNode.java:52)
    at com.sun.j3d.loaders.vrml97.VrmlScene.getNamedObjects(VrmlScene.java:173)
    at SimpleVrml97Viewer.gotoLocation(SimpleVrml97Viewer.java:166)
    at SimpleVrml97Viewer.<init>(SimpleVrml97Viewer.java:121)
    at SimpleVrml97Viewer.main(SimpleVrml97Viewer.java:321)
    at symantec.tools.debug.Agent.runMain(Native Method)
    at symantec.tools.debug.MainThread.run(Agent.java:48)

Reply via email to