Hi,
I'm developing an application which uses Hibernate for OR Mapping and c3p0 for connection pooling. Starting the application from Eclipse and from a batch file works fine on the computer on which I'm actually developing. But after installing the application on a new computer (which has no internet connection) c3p0 hangs with the following error message and no connection to the database could be established:
Code:
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).
Exception in thread "main" java.sql.SQLException: Connections could not be acquired from the underlying database!
I have used the same batch file to start the application.
Hibernate version: 3.0.5 c3p0 version: 0.9.0Name and version of the database you are using: Oracle 10.1.0.2Hibernate configuration:Code:
<!-- conncection pooling C3PO -->
<property name="hibernate.connection.provider_class">
org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.timeout">300</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.max_statements">50</property>
On my development computer I'm using Java
1.5.0_01 on the new computer is the newest version of the Java runtime installed (
1.5.0_05). I'm not sure if this is of matter. The database has the same configuration on both computers.
Best regards,
tfe