NullPointerException on execution/ creation of a PreparedStatement
Hi,
I am facing a very weird problem. There is a jar file that is run from the command prompt connecting to SQL Server on the same machine. This program basically does some processing of records within a SQL transaction.
Sometimes the program ends with a NullPointerException at a PreparedStatement for example on the both record and the transaction is rollbacked .
Now if I run the program again for the same data, I may get a nullpointer exception at some other record for example on the 250th record.
Now if you are beginning to feel that there is something wrong with the code then let me tell you this problem ,
If I run the same jar file on another machine pointing to the earlier mentioned SQL Server and for the same data it runs perfectly fine.
That is what is giving the creeps. In both the scenarios only thing changing is the machine on which it is being executed and the java version.
Any Help on the above problem will be highly appreciated
Thanks,
Jyothi

