Unable to form communication between processing and arduino

I am trying to form serial communication between arduino and processing. I am trying the simple code of hello world but it is not working on processing. I am getting ArrayIndexOutOfBoundsException: 1. Please help, I need this software badly for my project.

The error is very clear. You need to share your code, both the ino and the Processing one, and provide details of your setup. The more information (and only relevant) you provide, the easier is to assist. Also don;t forget to check the arduino.cc forum.

Kf

There is a very handy library that I use always when I work with processing and arduino :
VSync