Java Exception Class :36 , Method: 86

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Java Exception Class :36 , Method: 86

Postby PatrickLismore » Mon Feb 25, 2008 5:14 pm

This exception keeps getting throwen ever since i upgraded the Brick to the new Lejos.

In my program it goes like this

Connect to other Brick
Position the black colour under the light sensors and read the value
hit the button
Position the white colour under the light sensors and read the value
hit the button
write the mid point to the filter
set the speed
hit the button
and then go

but every time it gets to reading the white value it throws this Exception.

Java Exception
Class : 36
Method : 86

It never did this in the previous version and i am just wondering what may have changed in the new lejos to have my program throw this exception.

here is a view of the code at that section

Code: Select all
 buttonPress.read(); // configure black level
      
      lightConfig.write(ActiveLightSensor.LEVEL);
      
               int low = lightLevel.read();
      
      buttonPress.read(); // configure white level
      
                lightConfig.write(ActiveLightSensor.LEVEL);
      
      int high = lightLevel.read();
      int mid = low + ((high - low)/2);
      
      filterConfig.write( mid ); // write mid point value to the filter

      lightConfig.write(ActiveLightSensor.ACTIVATE);
User avatar
PatrickLismore
Active User
 
Posts: 81
Joined: Tue Oct 16, 2007 7:28 pm
Location: Prague

Postby PatrickLismore » Mon Feb 25, 2008 5:37 pm

here is a video of what is happening

http://www.youtube.com/watch?v=NrzZFsBDo14

and here is a video of what should happen

http://www.youtube.com/watch?v=_d5OB7gpe7U

if i keep attempting to run the program maybe 1 out of 15 attempts will work.

I have now added the motors and motor processes to the second robot and egar to demonstrate the two robots running together.

any thoughts on why the exception is happening.
User avatar
PatrickLismore
Active User
 
Posts: 81
Joined: Tue Oct 16, 2007 7:28 pm
Location: Prague

Postby gloomyandy » Mon Feb 25, 2008 10:03 pm

Hi Patrick,
No idea what is causing your problem. An exception class of 36 is not one of the standard exceptions so the first thing to do is to link the program with verbose mode set. This should list all of the class numbers and the method signatures. You should then be in a better position to work out what is going on and debug your problem. I'm not sure which version of leJOS it is you are using but remember that if it is from the svn snapshot then it is a developer work in progress build and so could well have problems...

Good luck...

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4180
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby PatrickLismore » Tue Feb 26, 2008 12:35 am

im running the latest release not the SVN build ,
thanks for the response ill look in to what you suggested
User avatar
PatrickLismore
Active User
 
Posts: 81
Joined: Tue Oct 16, 2007 7:28 pm
Location: Prague


Return to NXJ Software

Who is online

Users browsing this forum: Google [Bot] and 1 guest

more stuff