Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout>0 on fabric connection (3 replies)

$
0
0
When executing sql with QueryTimeout settings, getProperties() in class FabricMySQLConnectionProxy gets NULL when constructing CancelTask resulting in NPE.
And sql with QueryTimeout settings is a common connection availability detection method in connection pool (e.g. tomcat built-in connection pool, druid connection pool). So this may cause the connection availability detection to fail, resulting in unpredictable behavior such as connection pools abandoning available connections.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>