TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

After the server restarts, springboot jdbc cannot connect to the server

Open weicz1221 opened this issue 6 years ago • 2 comments

springbootdemo启动后,可以正常和taos服务端交互, 这时服务端重启:systemctl restart taosd

原来已经启动的springbootdemo中的接口,无法和taos连接

Cause: java.sql.SQLException: TDengine Error: Unable to establish connection

; uncategorized SQLException; SQL state []; error code [-2147483637]; TDengine Error: Unable to establish connection; nested exception is java.sql.SQLException: TDengine Error: Unable to establish connection] with root cause

重启springboot可以正常访问

weicz1221 avatar Sep 02 '20 03:09 weicz1221

the connection which client hold is invalid after taosd restart, please restart the springboot demo and retry.

zyyang90 avatar Sep 03 '20 02:09 zyyang90

this issue is closed by the assignees

zyyang90 avatar Sep 09 '20 03:09 zyyang90