Menu

java.sql.SQLException: stale connection

Exceptions, MAF, OracleMobile, SQL By Nov 18, 2015 No Comments
If you are getting the exception “java.sql.SQLException: stale connection” then you should check whether the Connection object is closed anywhere in the app and you are trying to access the same object. In this case, the object is closed and no longer available, so you can not do any execution on that object.
Solution is to create a fresh connection object.
If the error received in MAF apps, then remove the close statements as you don’t need to close the connection in the mobile.

No Comments

Leave a comment

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.