Processing java error after code working for 2 to 3 hrs

I made a home automation project with arduino connected with relay switches, motion sensor & Ir Sensor.

I have a webpage from which I can control lights on internet with processing software running on laptop giving instructions to arduino.

Processing works fine for two to three hours but after that it stops responding and i get a java SE error.
and i need to remove usb and plug it in again to make processing start again.

Please help with a solution to this.

Please help with a solution to this.

Line 27 needs fixing. At least that's what my crystal ball says. Or was that 285197413189198? Hard to tell with this big crack in the way.

arpitdhanotia:
Processing works fine for two to three hours but after that it stops responding and i get a java SE error.
and i need to remove usb and plug it in again to make processing start again.

Please help with a solution to this.

Crystal ball says it is a problem with your Java program.

Crystal ball is not able to provide solution.