In Java programs it happened with me sometime when my code expects some program arguments but i forgot to pass them.
Example:
class A{
psvm(String ...s){
system.print.out(s[0]);
}
}
And we execute the program like
>java A
so ArrayIndexOutOfBoundException Exception comes
so may be you should check , if something like that is happening or not ??