I think the question that I'd be asking is in two parts - are you getting the exception within Netbeans, and which emulator are you running? (IE, is it one specifically for a device you'd be running this on, or is it the generic one that Sun provides in the WTK (or some equivalent)?)
If it is a device specific emulator, are you sure that the device you're targeting supports JSR-82 (Bluetooth)?
Just asking so I can try to help.