serial write

Hi all,

I'm having problems sending information from Processing to my Arduino throught the Serial Port.

java.lang.NullPointerException
at processing.serial.Serial.write(Serial.java:505)

This is the problem, and I don't have any other application using the port.
Someone can help me??

Thanks