Re: MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout>0 on fabric connection
Posted by: Alex Paul
Date: July 22, 2023 11:35PM

It appears that when executing SQL with QueryTimeout settings, the getProperties() method in the FabricMySQLConnectionProxy class returns NULL, leading to a NullPointerException (NPE) when constructing the CancelTask. As a consequence, the connection availability detection using SQL with QueryTimeout, which is commonly employed in connection pools like Tomcat and Druid, might fail, potentially causing unexpected behaviors such as connection pools abandoning available connections.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout>0 on fabric connection
July 22, 2023 11:35PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.