I am getting the following error while executing the program.
And this is not always happening. The code contains some complex calculations with a large volume of data
This is solved by adding -XX:-UseLoopPredicate http://java.dzone.com/articles/dont-use-java-7-are-you