资讯专栏INFORMATION COLUMN

Failed to validate a newly established connection异

andot / 3144人阅读

摘要:异常配置

异常
2016-08-04T07:49:39.261362554Z 2016-08-04 15:49:39 [http-nio-9099-exec-8] (ErrorController.java:24)  - Could not get JDBC Connection; nested exception is java.sql.SQLException: Failed to validate a newly established connection.
2016-08-04T07:49:39.261511456Z org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Failed to validate a newly established connection.
2016-08-04T07:49:39.261527088Z     at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261533756Z     at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:615) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261538975Z     at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261548819Z     at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261557195Z     at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:722) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261562324Z     at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:790) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
2016-08-04T07:49:39.261572838Z     at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:814) ~[spring-jdbc-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
配置validationQuery oracle
validationQuery=select 1 from dual
pg/mysql
validationQuery=select 1

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/65036.html

相关文章

  • 解决树莓派下载django的TypeError:..... Retry and int 问题

    摘要:没报错但依然无法安装使用再次安装无果感谢大神的分享我才发觉这是一个新手的通用问题树莓派自带的系统附带了一个来自前寒武纪的版本,如果您不想花费数小时来调试与相关的问题,那么就必须升级它。 诸位, 不好意思哈, 请允许我把完整的标题写完(标题不能超过64个有效字符): 记一次解决树莓派下载Django库 ——报错为TypeError: unsupported operand types f...

    TalkingData 评论0 收藏0
  • spring cloud task Demo搭建

    摘要:在中也可以看到执行记录,包括错误信息解读生命周期在任务开始之前即在初始化之后执行任何或实现之前创建一个记录记录开始事件的条目,此事件由触发,来向系统指出所有都可以使用。在加载完成所有的之后,任务执行并更新数据库中的执行结果和状态,最后退出。 起步:什么是 spring cloud task Spring Cloud Task makes it easy to create short ...

    wanghui 评论0 收藏0

发表评论

0条评论

andot

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<