【急】spring管理hibernate的一个问题
这个东西是用SSH开发,hibernate利用Query提供的两个方法进行分页,hibernate连接的数据库为oracle数据库,刚连上的时候操作一切正常,但使用上一段时间以后出现如下错误:
【在service中每次方法执行完毕都关闭了session,可是还会出现这样的问题感觉比较奇怪啊】
2009-04-28 21:05:41,101 [http-8080-Processor22] [WARN] Error while extracting database product name - falling back to empty error codes
org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
192.168.166.15:1521:money
)
Caused by:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
192.168.166.15:1521:money
)