Bob, From the stack trace, you aren't using Java 3D 1.3beta1. We did some major setLive/clearLive cleanup in Java 3D 1.3beta1. If possible you might want to switch to Java 3D 1.3beta1, and beta2 should be out very soon. Please send us a test program if the bug still exists in Java 3D1.3 beta1.
thanks, - Chien Yang. Java 3D Team. > Date: Sun, 21 Apr 2002 12:20:34 -0400 > From: RWGRAY <[EMAIL PROTECTED]> > Subject: [JAVA3D] Index out of bounds? > To: [EMAIL PROTECTED] > MIME-version: 1.0 > X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > Content-transfer-encoding: 7bit > Importance: Normal > X-Priority: 3 (Normal) > X-MSMail-priority: Normal > Delivered-to: [EMAIL PROTECTED] > > I get the following error, which I can't figure out: > > Exception occurred during event dispatching: > java.lang.ArrayIndexOutOfBoundsException at > javax.media.j3d.NodeRetained.removeLocalToVworld(NodeRetained.java:677) at > javax.media.j3d.NodeRetained.clearLive(NodeRetained.java:847) at > javax.media.j3d.Shape3DRetained.clearLive(Shape3DRetained.java:1313) at > javax.media.j3d.GroupRetained.clearLive(GroupRetained.java:2172) at > javax.media.j3d.SharedGroupRetained.clearLive(SharedGroupRetained.java:200) > at javax.media.j3d.LinkRetained.clearLive(LinkRetained.java:250) at > javax.media.j3d.GroupRetained.clearLive(GroupRetained.java:2172) at > javax.media.j3d.TransformGroupRetained.clearLive(TransformGroupRetained.java > :721) at javax.media.j3d.GroupRetained.clearLive(GroupRetained.java:2172) > at > javax.media.j3d.TransformGroupRetained.clearLive(TransformGroupRetained.java > :721) at javax.media.j3d.GroupRetained.clearLive(GroupRetained.java:2172) > at javax.media.j3d.GroupRetained.checkClearLive(GroupRetained.java:1442) at > javax.media.j3d.GroupRetained.checkClearLive(GroupRetained.java:1394) at > javax.media.j3d.GroupRetained.doSetChild(GroupRetained.java:228) at > javax.media.j3d.GroupRetained.setChild(GroupRetained.java:172) at > javax.media.j3d.Group.setChild(Group.java:138) at > nch5.jpPolyCylEdgeTab.updateGeometry(jpPolyCylEdgeTab.java:268) > > My code jpPolyCylEdgeTab.java:268 is > > theSO.SNProperties.setChild(BG, theSO.whereIsCylinder); > > where theSO is my basic class for all objects in my scene, SNProperties is a > Switch so I can turn the object on and off, BG is a newly create BranchGroup > and is not null, whereIsCylinder is an integer variable with the value 4. > > I print out the number of children in the Switch > System.out.println("NumChildren: "+theSO.SNProperties.numChildren()); > and it print 6. > > So how come I get an array index out of bounds? 4 < 6 so 4 is not out of > bounds. > > Anyone have any suggestions? > > Bob Gray > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".