Here's a head scratcher. I have 10 NXTs that I use in teaching AI and Robotics. I've been using Lejos for a while now and love it.

One of my groups in class got in touch with me with a problem. They flashed
their brick with Lejos 0.7 on a windows machine. The process seemed to work,
you get the notes to play, then the screen goes blank for a few minutes. After that,
you the "bonk" sound.

The error is
Java Exception
Class 8
Method 123

I tried the process on a Linux machine---same result. I tried with 0.6---no luck.
I flashed the original Lego firmware---no problem! The NXT is alive.
Tried 0.7 again---same behavior. If you reset it, you get back to the J Lejos
screen, the melody, the blank screen, and wait, and the bonk.

Hi,
I've added verification the the flash process, this will be available in the next release of leJOS, but if you would be interested in trying it I can probably put together a zip file for you to install (on a windows machine would be easiest). It may not fix the problem, but it might help us work out what is going on! Let me know if you are interested in the test system...

1. Got to the directory that contains your existing lejos_nxj dir.
2. Rename this as lejos_nxj.rel
3. Unzip the snapshot.
4. Rename snapshot to lejos_nxj
5. If you are using libUSB for USB comms edit the nxj.properties file in the (new) lejos_nxj\bin dir and uncomment the line for the libUSB driver.

To flash the nxt run nxjflash -f -v

To revert back to 0.7 simply rename lejos_nxt to lejos_nxj.dev and lejos_nxj.rel to lejos_nxj...

Hi Kenny,
Interesting! From the exception details it looks as if the code is failing due to a null pointer being returned from a call to get the local Bluetooth address (which in theory should never happen!). If you have access to the standard Lego firmware could you try and install that and try to set the brick name using it? Then try leJOS again...

That was interesting. I re-installed the original Lego firmware,
went into the NXT-G environment, opened the NXT window
and changed the device name from NXT to bobo. Re-flashed
with lejos---same issue.

Tried it again, but I turned the device off and on after setting
the name. When the brick powered back on (again, with
just the lego software), the name was back to NXT. So, the
brick is not keeping the name set through a power cycle.

I also went into the menus on the brick and attempted to
turn bluetooth on. Once, it failed after about 10 seconds;
the second time I tried it just sat on the screen for several
minutes with no fail and no success.

So, it seems like your thought of the brick having an issue unrelated
to Lejos is correct . I've lost two bricks to LCD screen
failures (ok, three but with one the resoldering howto online
brought it back to life) and now this brick is unusable
with Lejos (although it looks like I will be able to use
it with basic NXT-G sans Bluetooth).