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:
Post a Comment