Bug #68743 | SQLException: SQLState(S1000) vendor code(0) | ||
---|---|---|---|
Submitted: | 22 Mar 2013 6:27 | Modified: | 30 Dec 2015 13:42 |
Reporter: | Xiaofeng Liu | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | mysql-connector-java-5.1.24 | OS: | Any |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
Tags: | jdbc, SqlException |
[22 Mar 2013 6:27]
Xiaofeng Liu
[25 Apr 2013 5:54]
Alexander Soklakov
Hi Xiaofeng, Thanks for your report. Verified as described.
[12 Nov 2013 10:49]
Sergiy Shyrkov
Hello, the issue is still present in the mysql-connector-java-5.1.26. The thing is that I've noticed quite many instances of the SQLException when profiling my application. The stack trace is: com.mysql.jdbc.ResultSetImpl.checkClosed() com.mysql.jdbc.ResultSetImpl.realClose(boolean) com.mysql.jdbc.ResultSetImpl.close() com.mysql.jdbc.StatementImpl.realClose(boolean, boolean) com.mysql.jdbc.PreparedStatement.realClose(boolean, boolean) com.mysql.jdbc.StatementImpl.close() org.apache.jackrabbit.core.util.db.DbUtility.close(Connection, Statement, ResultSet) Actually, the exception is not needed at that point and we could perhaps save some resources and heap if not creating that exception at least in case of the reallyClose() method. The method reallyClose()was changed after 5.1.19. In 5.1.19 it was reading like: public synchronized void realClose(boolean calledExplicitly) throws SQLException { if (this.isClosed) { return; } try { if (this.useUsageAdvisor) ... So it was not creating/catching any unneeded instances of SQLException (this.isClosed was enough). Could this method now be modified to do a simple check (like in checkClosed())? I.e.: if (this.connection == null) { return; } Thank you in advance! Kind regards Sergiy – Sergiy Shyrkov Product Development -------------------------------- Jahia Solutions Group web: http://www.jahia.com --------------------------------- Jahia's next-generation, open source CMS stems from a widely acknowledged vision of enterprise application convergence – web, search, document, social and portal – unified by the simplicity of web content management.
[16 Jan 2014 14:26]
Sergiy Shyrkov
Any status on the progress? Thank you in advance!
[8 Apr 2014 22:12]
Sergiy Shyrkov
Could you, please, verify if it is expected to provide a solution for this issue? Could I be somehow helpful on this, by submitting a patch? Thank you in advance! Kind regards Sergiy Shyrkov
[30 Dec 2015 13:42]
Filipe Silva
Posted by developer: Seems to be fixed in Connector/J 5.1.28 and above. I'm closing this issue. Please feel free to reopen it or file a new one if you think something is missing.