nimasike
温故而知新666
2012-11-10 14:59

Hibernate4.1.7 配置proxool 问题

[code="java"][/code]现在用hibernate4.1.7配置连接池出现问题。求帮忙
[code="java"]


<!-- 正常测试没有问题
jdbc:oracle:thin:@127.0.0.1:1521:databasefir
SCOTT
sql2008
-->

org.hibernate.service.jdbc.connections.internal.ProxoolConnectionProvider

oracleProxool
true
proxool.xml

    <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
    <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
    <property name="show_sql">true</property>

    <mapping resource="com/bjsxt/hibernate/mapping/Person.hbm.xml"/> 

[/code]

[code="java"]


oracleProxool
jdbc:oracle:thin:@127.0.0.1:1521:databasefir
oracle.jdbc.OracleDriver




select CURRENT_DATE   
90000   
20   
100   
10   
3600000

[/code]

现在报这个异常
WARN: SQL Error: 0, SQLState: 08001
2012-11-10 14:58:49 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: The url cannot be null
org.hibernate.exception.JDBCConnectionException: Could not open connection
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

为你推荐