that was spot on. Initializing the second prepareStatement solved my issue.
iStatement = conn.prepareStatement(insertString);
I have used two different prepared statements now for query and insert.
PS: billNumbers was an array of 'Long' values.
Thanks a lot to all of you for the help.