https://github.com/alibaba/druid/releases/tag/1.1.8
问题已修复,请使用新版本
xhhwc commented on 21 Dec 2017
1.1.6版本Druid连接MSSQL Server 2008 R2报错:com.microsoft.sqlserver.jdbc.SQLServerException: The query timeout value -1 is not valid.经测试1.1.5版本的Druid无此问题;而1.1.6版本Druid连接MySQL数据库也没有问题。以下是完整的错误日志: |
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hdmF0YXJzMS5naXRodWJ1c2VyY29udGVudC5jb20vdS8xMzU3MTkwP3M9ODgmdj00.jpg?w=700&webp=1)
beykery commented on 21 Dec 2017
这个错误我也遇到了,我现在不得已使用1.1.5版本,这个版本没这个问题。 |
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hc3NldHMtY2RuLmdpdGh1Yi5jb20vaW1hZ2VzL2ljb25zL2Vtb2ppL3VuaWNvZGUvMWY0NGQucG5n.png?w=700&webp=1)
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hdmF0YXJzMy5naXRodWJ1c2VyY29udGVudC5jb20vdS8zMTA5MzIxMD9zPTg4JnY9NA%3D%3D.jpg?w=700&webp=1)
ky2c commented on 22 Dec 2017
配置一下validationQueryTimeout参数就可以了。 |
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hc3NldHMtY2RuLmdpdGh1Yi5jb20vaW1hZ2VzL2ljb25zL2Vtb2ppL3VuaWNvZGUvMWY0NGQucG5n.png?w=700&webp=1)
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hdmF0YXJzMC5naXRodWJ1c2VyY29udGVudC5jb20vdS8yNDMxMTA3ND9zPTg4JnY9NA%3D%3D.jpg?w=700&webp=1)
caodianlong commented on 22 Dec 2017 •
我也遇到了, 坑了好久。 设置validationQueryTimeout参数大于-1就好了 |
wenshao added this to the 1.1.7 milestone on 24 Dec 2017
wenshao added the Bug label on 24 Dec 2017
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hdmF0YXJzMS5naXRodWJ1c2VyY29udGVudC5jb20vdS8zMzEwODk1OT9zPTg4JnY9NA%3D%3D.jpg?w=700&webp=1)
我加了validationQueryTimeout也不起作用,spring boot 1.5.9 会循环不停的报错: ERROR c.alibaba.druid.pool.DruidDataSource - create connection SQLException, url: jdbc:sqlserver://localhost:1433;integratedSecurity=true;databaseName=checkinginMS, errorCode 0, state null |
![1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210 1.1.6版本Druid连接MSSQLServer 2008 R2报错The query timeout value -1 is not valid. #2210](https://image.shishitao.com:8440/aHR0cHM6Ly9hdmF0YXJzMi5naXRodWJ1c2VyY29udGVudC5jb20vdS8xMTY2Nzg1P3M9ODgmdj00.jpg?w=700&webp=1)
JaynLau referenced this issue 21 days ago
Closed