The XBee library from Robert Faludi will not work with Processing versions later than 1.5.1
Here are some alternatives:
- XBee-API library for Processing 2.2.1
- Using Digi’s XBee Java Library with Processing
See also Using the XBee library, for a modified version of Andrew Rapp’s API.