You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/09/22 11:18:52 UTC

[GitHub] [shardingsphere] cielswift opened a new issue #7566: Caused by: java.sql.SQLFeatureNotSupportedException: isValid

cielswift opened a new issue #7566:
URL: https://github.com/apache/shardingsphere/issues/7566


   sharding 4.11
   spring boot 2.3
   mysql 5.7
   
   Caused by: java.sql.SQLFeatureNotSupportedException: isValid
   at org.apache.shardingsphere.shardingjdbc.jdbc.unsupported.AbstractUnsupportedOperationConnection.isValid(AbstractUnsupportedOperationConnection.java:157) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_262]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_262]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_262]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_262]
   at org.springframework.jdbc.core.JdbcTemplate$CloseSuppressingInvocationHandler.invoke(JdbcTemplate.java:1525) ~[spring-jdbc-5.2.8.RELEASE.jar:5.2.8.RELEASE]
   at com.sun.proxy.$Proxy264.isValid(Unknown Source) ~[?:?]
   at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.isConnectionValid(DataSourceHealthIndicator.java:134) ~[spring-boot-actuator-2.3.3.RELEASE.jar:2.3.3.RELEASE]
   at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:328) ~[spring-jdbc-5.2.8.RELEASE.jar:5.2.8.RELEASE]
   
   org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection did not implement the #isValid(arg) method of org.apache.shardingsphere.shardingjdbc.jdbc.unsupported.AbstractUnsupportedOperationConnection, so an error occurred
   
   @override
   public final boolean isValid(final int timeout) throws SQLException {
   throw new SQLFeatureNotSupportedException("isValid");
   }


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] kimmking closed issue #7566: Caused by: java.sql.SQLFeatureNotSupportedException: isValid

Posted by GitBox <gi...@apache.org>.
kimmking closed issue #7566:
URL: https://github.com/apache/shardingsphere/issues/7566


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] kimmking commented on issue #7566: Caused by: java.sql.SQLFeatureNotSupportedException: isValid

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #7566:
URL: https://github.com/apache/shardingsphere/issues/7566#issuecomment-696698724


   `isValid` has been supported in master branch now:
   ```
       @Override
       public final boolean isValid(final int timeout) throws SQLException {
           for (Connection connection : cachedConnections.values()) {
               if (!connection.isValid(timeout)) {
                   return false;
               }
           }
           return true;
       }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] kimmking closed issue #7566: Caused by: java.sql.SQLFeatureNotSupportedException: isValid

Posted by GitBox <gi...@apache.org>.
kimmking closed issue #7566:
URL: https://github.com/apache/shardingsphere/issues/7566


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] kimmking commented on issue #7566: Caused by: java.sql.SQLFeatureNotSupportedException: isValid

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #7566:
URL: https://github.com/apache/shardingsphere/issues/7566#issuecomment-696698724


   `isValid` has been supported in master branch now:
   ```
       @Override
       public final boolean isValid(final int timeout) throws SQLException {
           for (Connection connection : cachedConnections.values()) {
               if (!connection.isValid(timeout)) {
                   return false;
               }
           }
           return true;
       }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org