0 Replies Latest reply: Apr 19, 2010 5:52 PM by 843799 RSS

    NoSuchMethodError for PickTool method

    843799
      I ran into a small bug in my application. Here is the stack trace:
      Exception in thread "J3D-BehaviorScheduler-1" java.lang.NoSuchMethodError: javax.media.j3d.BranchGroup.pickAll(IILjavax/media/j3d/PickShape;)[Ljavax/media/j3d/PickInfo;
           at com.sun.j3d.utils.pickfast.PickTool.pickAll(PickTool.java:377)
           at pointCloudTest.PickMeasureBehavior.processStimulus(PickMeasureBehavior.java:82)
           at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:174)
           at javax.media.j3d.J3dThread.run(J3dThread.java:250)
      Here is the code that is causing it (in file PickMeasureBehavior):
                               MouseEvent event = (MouseEvent)events[events.length-1];
                               pickCanvas.setShapeLocation(event);
                               PickInfo[] allPick = pickCanvas.pickAll();
      With the last line being like 82.

      What's going on here? This shows the method exists and it's been there since version 1.3.2 which is super old.

      I'm a passable java programmer. I mostly do web application work (php), so my skills aren't great for java. Can somebody help me here?