BlueSMiRF, Arduino, and Firmata

I have a BlueSMiRF Silver Module connected to an Arduino Duemilanove running standard firmata. I am trying to run code from processing that works if I am plugged in via USB to the arduino but gives me a Serial.write() error if I try to run it via bluetooth.

I have set the baud rate to 57600 using HyperTerminal because that is what firmata uses. I can’t figure out what is causing this problem. Please help me.

import processing.serial.;
import cc.arduino.
;

//arduino setup
Arduino arduino;

int motorPin1 = 6;
int motorPin2 = 7;

void setup() {
//set up pins
arduino = new Arduino(this, Arduino.list()[0], 57600); // This is where the error occurs
arduino.pinMode(motorPin1, Arduino.OUTPUT);
arduino.pinMode(motorPin2, Arduino.OUTPUT);
}

There is only one COM port so that is the one being used. It is obviously having problems editing the serial port but I don’t know how to get around that.