0
HibernateとOracleでc3p0を使用して接続プールを取得できません。データベースはOracle 10.2で、休止状態のバージョンは3.6.5です。 configからc3p0の設定を取り出すと、正常に動作します。Oracle10gでc3p0でHibernate接続プーリングを設定する
私はリクエストされた接続数と処理されたステートメントの数を制限しようとしましたが、まだ運がありません。
<hibernate-configuration>
<session-factory>
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.check_nullability">false</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
<property name="hibernate.connection.password">BLAH</property>
<property name="hibernate.connection.url">BLAH</property>
<property name="hibernate.connection.username">BLAH</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.show_sql">false</property>
<!-- c3p0 pooling - not working -->
<property name="hibernate.c3p0.min_size">1</property>
<property name="hibernate.c3p0.max_size">1</property>
<property name="hibernate.c3p0.timeout">100</property>
<property name="hibernate.c3p0.max_statements">1</property>
<property name="hibernate.c3p0.acquire_increment">1</property>
<mapping resource="com/ht/hitthenet/planet/InvL1Service.hbm.xml" />
<mapping resource="com/ht/hitthenet/planet/VbbOrderAttributes.hbm.xml" />
<mapping resource="com/ht/hitthenet/planet/InvPort.hbm.xml" />
<mapping resource="com/ht/hitthenet/planet/VbbSvcOrder.hbm.xml" />
</session-factory>
</hibernate-configuration>
- [email protected] -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
java.sql.SQLException: Unsupported feature
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
...
スタックトレースから大部分の有用な情報を削除します。もっと見るまた、どのバージョンのhibernate、oracle、oracleドライバを使用していますか? –
- 基盤となるデータベースから接続を取得できませんでした。 - org.hibernate.exception.GenericJDBCException: - com.ht.hitthenet.ReportJob.executeでjava.lang.NullPointerExceptionが \t(ReportJob.java:73) com.ht.hitthenet.ReportJobで\tオープン接続 することはできません。メイン(ReportJob.java:134) – bwsmith
休止状態:3.6.5-FINAL、Oracle 10.2、Oracleドライバ:ojdbc14-10.1.0.2.0.jar – bwsmith