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".

Reply via email to