The following code works:
I use it with the jar I got from:
www.xerial.org/trac/Xerial/wiki/SQLiteJDBC
When I remove the comment and try to insert the first record two times, I get the following error with the next setString:
This is just to show the problem. I hit on the problem when inserting more as 2000 records, but this is a little easier to demonstrate. ;-)
What is happening here and how to solve it?