I had some problem also the last time I tried to make my camera works. I finally got it to work by simply using the PI image you can find on the processing website.
Here is the discussion if you want to read it: Issues with third-party camera. It was a third party camera by the time but now I’m using a PI camera.