SQLRecoverableException: I/O Exception: Connection reset
This simply means that something in the backend ( DBMS ) decided to stop working due to unavailability of resources etc. It has nothing to do with your code or the number of inserts. You can read more about similar problems here: This may not answer your question, but you will get an idea of … Read more