【问题标题】:The Network Adapter could not establish the connection org.hibernate.exception.GenericJDBCException: Could not open connection网络适​​配器无法建立连接 org.hibernate.exception.GenericJDBCException:无法打开连接
【发布时间】:2012-02-23 21:27:51
【问题描述】:

Hibernate 程序针对某些事务运行,之后无法建立连接。异常如下:

WARN: SQL Error: 17002, SQLState: null
Feb 01, 2012 11:47:10 AM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Io exception: The Network Adapter could not establish the connection
org.hibernate.exception.GenericJDBCException: Could not open connection
Feb 01, 2012 11:52:43 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

【问题讨论】:

  • 你的 jdbc URL 是什么?您应该检查它是否正确:端口号,...
  • 你可以远程登录数据库及其端口吗?

标签: java sql hibernate exception jdbc


【解决方案1】:

检查您的类路径设置:它应该包含oracle-jdbc6.jar 的位置。

【讨论】:

  • 这不会导致这个问题。此消息由该 JAR 文件中的类打印。 -1
猜你喜欢
  • 1970-01-01
  • 2016-10-28
  • 1970-01-01
  • 1970-01-01
  • 2015-09-03
相关资源
最近更新 更多