 <p>Are you making multiple connection to your database without closing them? If you are you should try implementing a check to see if only one connection is up.</p> <p>To check if your database is open you can do:</p> <pre><code>if(yourConnection.isOpen()){ doSomething(); //Maybe you want to close it here, if thats the case yourConnection.close(); } </code></pre>