c3p0 1 « Development « JPA Q&A





1. Multiple Hibernate instances using C3P0    stackoverflow.com

I am facing a weird problem and it seems to be c3p0 related. I am starting two instances of an app in the same java vm which interact with each other. ...

2. Multiple applications having c3p0 configuration gives warning    stackoverflow.com

Hi
I have two web application under one tomcat. Both are using hibernate 3.2.1 and c3p0 0.9.1.2. While the second application gets deployed, I always get the following warning message.
Tomcat: apache-tomcat-6.0.28

...

3. hibernate JPA c3p0 problem    stackoverflow.com

I build j2ee application using spring, hibernage-JPA and c3p0 for connection pool. I have defined dataSource bean:

<bean id="basicDataSource"
      class="com.mchange.v2.c3p0.ComboPooledDataSource"
      destroy-method="close"
  ...

4. Cannot get Hibernate 3.1 to work with c3p0    coderanch.com

This is driving me crazy. Especially since I cannot seem to find any info about the problem on Google. Here is the deal, I have set up Hibernate and as long as I use its built in JDBC connection pooling, everything works fine. However, as soon as I try and use c3p0, nothing works. I have a JUnit test class that ...

5. c3p0 with hibernate    coderanch.com

7. Genral question: how to determine c3p0 maxPoolSize?    forum.hibernate.org

Hi how do i figure about how many connection to to set my max at. Right now I'm getting Failed to checkout connection at a pool size of 200. Trying to stress test my app at 40 users a second. The DB is definitely a bottle neck as the more workload the longer each "request" takes which I assume i what ...

8. SQLException throws after changing C3P0 configuration    forum.hibernate.org

java.sql.SQLException: Closed Resultset: next at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:916) at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:181) at com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:2859) at com.elitecore.workorder.subscriberapplication.dao.SubscriberApplicationDao.getSearchedGroupCusto merByCustomerId(SubscriberApplicationDao.java:739) at com.elitecore.workorder.subscriberapplication.manager.BulkNewProvisionManager.getSearchedGroupCu stomerByCustomerId(BulkNewProvisionManager.java:321) at com.elitecore.workorder.subscriberapplication.action.SearchCustomerAction.searchGroupCustomer(Se archCustomerAction.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ...

9. C3P0 Configuration issue    forum.hibernate.org

Hi all, I have a webapplication that uses the C3P0 Connection Pool with this configuration: Code: org.hibernate.connection.C3P0ConnectionProvider 3 100 80 ...





10. Hibernate c3p0 management    forum.hibernate.org

Hi all, I'm currently using Hibernate with C3P0. I'd like to configure correctly c3p0, and i'm facing the following problem : In a one hibernate session per user context, i've noticed that the number of busyConnection never drecreased during hibernate session lifetime. The number of busyConnection only decreased when I use the close() method on the hibernate session. I thought that ...

11. Hibernate + c3p0    forum.hibernate.org

12. hibernate + c3p0 strange behaviour    forum.hibernate.org

I feel i'm missing something important so could anyone advice why this happening? I'm getting error while using c3p0 with hibernate: Code: Feb 5, 2010 1:53:23 PM org.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 17010, SQLState: null Feb 5, 2010 1:53:23 PM org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: Closed Resultset: next Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not advance using next() ...

13. c3p0 not being invoked at all    forum.hibernate.org

Regular Joined: Thu Sep 16, 2004 4:56 pm Posts: 80 I dropped c3p0 jars in my WEB-INF/lib.... I only see this in the logs(And I turned up to FINEST at one point...simply no logging on how hibernate is loading the pools)... FINE: ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages Mar 4, 2010 10:31:34 AM org.hibernate.validator.ClassValidator getDefaultResourceBundle FINE: ResourceBundle ...

14. Porting app from TC5.0/J1.4 to TC6.0/J1.6 - c3p0, Hibernate    forum.hibernate.org

Newbie Joined: Tue Apr 27, 2010 11:31 am Posts: 1 I am trying to migrate an in-house app that runs in production on Tomcat 5.0.28 and Java 1.4.2 to Tomcat 6.0.26 and Java 1.6.0_20. Hibernate 2.1b6 came with the app's WAR file and is in /WEB-INF/lib. The app also contains Struts 1.3.10, Axis 1.4 and a number of other things. The ...

15. How to use c3p0    forum.hibernate.org

I'm using Hibernate and EntityManager 3.5.1-Final. I'm monitoring the number of connections using pgadmin3 and I'm seeing that my application makes more connection than specified in the persistence.xml. Here's my persistence.xml. And I'm getting and closing EntityManager for every request. Code:

16. Hibernate C3P0    forum.hibernate.org

I am having problems trying to implement C3P0 connection pooling in my app. I am using the Netbeans IDE 6.8. My app includes Spring Framework and Spring Web MVC 2.5 and Hibernate (not sure which version, but it is part of the 2.x family - built into Netbeans Platform options). The error is a noClassDefinition error for my HibernateUtil class. When ...





17. about c3p0 configuration in hibernate    forum.hibernate.org

I am configuring sessionFactory as following: hibernate/catalogue/Article.hbm.xml ${hibernate.dialect} true ${hibernate.c3p0.minPoolSize} ${hibernate.c3p0.maxPoolSize} ${hibernate.c3p0.timeout}

18. C3P0 Configuration    forum.hibernate.org

I have a Spring/JPA application with Hibernate as the JPA provider. I've configured a C3P0 data source in Spring via: Code:

19. C3P0 java.lang.OutOfMemoryError: PermGen using Hibernate    forum.hibernate.org

Hi, I have a Web Application that run in Jboss, I 'm use the framework struts and hibernate configuration for go to the DataBase. The application run good some time, but in one moment ocurred an C3P0 java.lang.OutOfMemoryError: PermGen error, and I had to redeploy the application. What can produce this?, How is a good configuration for hibernate and c3p0 ? ...

20. c3p0 PoolBackedDataSource closed() on beginTransaction    forum.hibernate.org

I'm using the classic HibernateUtil with Hibernate 3.6.0Final and c3p0 0.9.1 (boundled with it). When I do Code: Session session = HibernateUtil.getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); List< .. > l = (List< .. >)session.createQuery(" ... ").list(); tx.commit(); session.close(); HibernateUtil.shutdown(); ...

21. Help! Upgrade of Hibernate and C3P0 seems to have broken me    forum.hibernate.org

I recently upgraded the version of Hibernate and C3P0 in my application from Hibernate-3.2.7.ga.jar and c3p0-0.9.1.2.jar TO hibernate-core-3.3.2.GA.jar hibernate-c3p0-3.3.2.GA.jar There was no good reason for me to do this, it simply seemed appropriate to try a more recent version and tests did not reveal any problem. Everything appeared to work fine in testing, but there is some sort of subtle problem ...

22. c3po does not work    forum.hibernate.org

Hello! I have a problem with two of my application. The database connection is always being closed after some hours (about 6 hours). When I restart my applications they are working again. I have configured c3po. This is my hibernate.cfg.xml file: Code:

23. Erreur hibernate c3p0    forum.hibernate.org

Author Message jclandron Post subject: Erreur hibernate c3p0 Posted: Fri Jun 24, 2011 8:06 am Newbie Joined: Fri Jun 24, 2011 7:26 am Posts: 1 Bonjour, J'ai une classe JUnit qui teste l'accs la base de donnes, Code: package fr.s2e.aps.dao.impl; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import fr.s2e.aps.critere.ArpArchiveCritere; import fr.s2e.aps.ometier.ArpArchive; import fr.s2e.test.dao.BeanFactoryImpl; import fr.s2e.test.dao.HibernateTestCase; ...

24. Howto make c3p0 quiet?    forum.hibernate.org

Hi, I would like to use the c3p0 connection pool in our applet based solution, unfourtunatly it logs a lot and fills up the whole java console with - for us - uninteresting statistics and debug messages about the connection pool status. Is there any way to make c3p0 quiet and not log everything? Thank you in advance, Clemens

25. c3p0.testConnectionsOnCheckout parameter not working    forum.hibernate.org

Hi All, I am trying to use c3p0.testConnectionsOnCheckout parameter to validate idle/obsolete connections, but it is not working properly. Whenever the database is restarted or gone down for any reason, i have to restart the application as well otherwise it throws obsolete connections error message. Please suggest a feasible way to fix this problem, I am using Hibernate 3.2 and c3p0-0.9.1.1.jar ...

26. possible c3p0 issue    forum.hibernate.org

Yes, I know, this is a Hibernate forum and not a c3p0 forum, but I figured that enough of you are using c3p0 that you might have some insight into a problem that's occurring. I've posted the issue to the c3p0-users mailing list, but so far I haven't had any luck figuring it out. Anyway, as I'm sure you can tell ...

27. C3P0 - Reconnect    forum.hibernate.org

28. c3p0 configuration problem    forum.hibernate.org

java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source) at com.mchange.v2.c3p0.impl.DriverManagerDataSource.overrideProps(DriverManagerDataSource.java:177) at com.mchange.v2.c3p0.impl.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:138) at com.mchange.v2.c3p0.impl.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:235) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:65) at com.mchange.v2.resourcepool.BasicResourcePool.assimilateResource(BasicResourcePool.java:721) at com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:502) at com.mchange.v2.resourcepool.BasicResourcePool.access$000(BasicResourcePool.java:34) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:903) at com.mchange.v2.async.CarefulRunnableQueue$TaskThread.run(CarefulRunnableQueue.java:145)

29. Hibernate-C3P0 configuration issue    forum.hibernate.org

I'm new to hibernate. I have been trying to set it up for the past few days. I went through the docs, the FAQ and searched the forum. On Hibernate start-up, we get an XML parser error, the parser does not accept our simplistic configuration and I can not figure out why :( Thanking all of you in advance for any ...

30. Idle c3p0 settings for production    forum.hibernate.org

31. c3p0 0.8.4.5 and hibernate    forum.hibernate.org

32. C3p0 does not work with 2.1.3 (with 2.1.2 it does)    forum.hibernate.org

Hello, I have a weird problem with Hibernate 2.1.3 configured to use c3p0 pooling to MS SQL Server 2000 database. I use Hibernate under Jetty. With 2.1.2 I have no problem. With 2.1.3 I get the following exception when trying to query the database: 14:07:23,910 ERROR JDBCExceptionReporter:46 - com.mchange.v2.c3p0.PoolBackedDataSource@1742700 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@53fb57 [ acquireIncrement -> 2, autoCommitOnClose -> false, connectionTesterClassName ...

33. Hibernate 2.1.3 + c3p0 + cocoon 2.1.5-dev throw strange ex    forum.hibernate.org

Regular Joined: Wed May 05, 2004 8:01 am Posts: 53 I have been able to integrate cocoon with hibernate 2.1.2 + c3p0. Lately I have downloaded hibernate 2.1.3 and upgraded those libs in my installation: - hibernate2.jar - c3p0 - cglib After those changes hibernate started to choke on obtaining connection from pool: Code: 20:48:16.721 EVENT Checking Resource aliases 20:48:17.003 ...

34. c3p0 configuration    forum.hibernate.org

public static final String C3P0_ACQUIRE_INCREMENT "hibernate.c3p0.acquire_increment" public static final String C3P0_IDLE_TEST_PERIOD "hibernate.c3p0.idle_test_period" public static final String C3P0_MAX_SIZE "hibernate.c3p0.max_size" public static final String C3P0_MAX_STATEMENTS "hibernate.c3p0.max_statements" public static final String C3P0_MIN_SIZE "hibernate.c3p0.min_size" public static final String C3P0_TIMEOUT "hibernate.c3p0.timeout" public static final String C3P0_VALIDATE_CONNECTION "hibernate.c3p0.validate" as detailed in the cfg.environment javadoc don't use validate, it is deprecated (very expensive), use idle_test_period

36. Is C3P0 considered production quality now?    forum.hibernate.org

37. Unable to configure c3p0...please help    forum.hibernate.org

Hibernate version:2.1 Mapping documents:hibernate.properties file ## PostgreSQL hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect hibernate.connection.driver_class=org.postgresql.Driver hibernate.connection.url=jdbc:postgresql://172.16.5.6/PhoenixColorSystem hibernate.connection.username=postgres hibernate.connection.password=postgres hibernate.connection.provider_class = net.sf.hibernate.connection.C3P0ConnectionProvider hibernate.c3p0.acquire_increment=1 hibernate.c3p0.idle_test_period=100 hibernate.c3p0.min_size=2 hibernate.c3p0.max_size=10 hibernate.c3p0.timeout=1800 hibernate.c3p0.max_statement=50 hibernate.c3p0.validate=false hibernate.c3p0.idle_test_period=1800 hibernate.query.substitutions yes 'Y', no 'N' ################################# ### Hibernate Connection Pool ### ################################# hibernate.connection.pool_size 100 Code between sessionFactory.openSession() and session.close(): public static Session getSession() throws Exception { Session pcsSession = (Session) localThread.get(); if (pcsSession == null) { if (sessionFactory ...

38. disable c3p0-sysout?    forum.hibernate.org

Hi. Newer versions of c3p0 mask username and password in the logging. Try upgrading. In general, c3p0's logging is not as interoperable or configurable as it should be, but note that all logging is to System.err, not System.out, so you can redirect c3p0's output by using the System.setErr( ... ) method or UNIX stream redirection. smiles, Steve (c3p0 guy)

39. c3p0 source code    forum.hibernate.org

You can find a source distribution on the sourceforge site. Scroll down to the c3p0-src package under file releases; there's a source release in parallel with every binary release. c3p0 uses a good bit of code generation, so if you can't find the source file you're looking for, please build the distribution, then check under the build/codegen directory for generated java ...

40. java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConf    forum.hibernate.org

Hi All, I am getting problem while configuring Hibernate with SunOne7 as well as Oracle9iAS. It always works fine when I put all hibernate required jar files in SunOne JVM classpath, sunone is not picking hibernate jars from \web-inf\lib directory. I dont want to put jar file paths in classpath of application server. Below is the exception that I always get ...

41. hibernate c3p0    forum.hibernate.org

i have a application that use hibernate. i need a automatically reconnection feature so i use c3p0. and c3p0 works fine, it checks the db and reconnect whenn possible. but ..... how can i react if the connection is lost, how is it possible to get the exceptions from c3p0, or is there a other possibility to check if the db ...

42. weird C3P0-TRAVIS error    forum.hibernate.org

c3p0-TRAVIS: An idle resource is broken and must be purged. c3p0-TRAVIS: java.sql.SQLException: Connection is invalid at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishResource(C3P0PooledConnectionPool.java:141) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishIdleResource(C3P0PooledConnectionPool.java:105) at com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1105) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:148)

43. How to make sure c3p0 is working? Stuff in System.err...    forum.hibernate.org

Hibernate version: 3 Everything works fine, but I'm not sure if the c3p0 db connection pool is working properly. I have it set up as the following in my .xml: Code: 5 20 1800 ...

44. c3p0 - 2 problems    forum.hibernate.org

Hi, I am facing two problems: Problem 1: My c3p0 pool seems to be initialized twice when i start my tomcat service. I am using hibernate in a webapp. Specifically I see the "Initializing c3p0 pool .... " in the tomcat log twice at the startup of my tomcat service which loads my webapp. This has lead me to believe that ...

45. C3P0 Problem    forum.hibernate.org

com.mchange.v2.c3p0.PoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource@187f9f1[ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 187f9f1, idleConnectionTestPeriod -> 10, initialPoolSize -> 10, jdbcUrl -> jdbc:oracle:thin:@mhmuhkt2:1521:DWKT2, loginTimeout -> 0, ...

46. BinaryBlobType problem with c3p0 8.5.1    forum.hibernate.org

Author Message hb_user Post subject: BinaryBlobType problem with c3p0 8.5.1 Posted: Tue Jun 07, 2005 9:01 pm Newbie Joined: Mon Dec 13, 2004 6:54 pm Posts: 2 I'm using user defined BinaryBlobType in my code and never had any problems with it until I recently upgraded to c3p0 version 8.5.1 from c3p0 version 8.4.5. Here is the code for ...

47. C3P0 broken pipe error    forum.hibernate.org

Hi, I'm using hibernate 2.1.8 along with C3P0 and MySQL 4.1.10 on linux. Following is the configuration in my "hibernate.cfg.xml" 1 3 20 5000 300 20 This runs fine for some time (typically, a day) and then I start getting exception similar to the one shown below ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken ...

48. Hibernate c3p0 jtds autoreconnect issue    forum.hibernate.org

Hi, I have setup hibernate for my project using hibernate 3.0.5 & c3p0. I am using MSSQL as the database and jtds as the database driver. The problem is that if due to any reason, the network connection to the database fails, and after that it is restored, two request seems to fail to connect to the MSSQL server with the ...

49. c3p0 0.9.0 and Hibernate 3.0.5    forum.hibernate.org

50. c3po and Hibernate    forum.hibernate.org

Hi, i want to use c3po with hibernate. Here is my configuration: com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/ibn xxx xxx org.hibernate.dialect.MySQLDialect 1 0 true false org.hibernate.transaction.JDBCTransactionFactory 10 10 150 5000 300 3000 30 300 3 false false 10

51. Problem with Hibernate + c3p0    forum.hibernate.org

I have a problem using Hibernate with c3p0 connection pool. See configuration and exceptions below. Well, moreover I wondered what happens, if hibernate.c3p0.max_size is greater than mysql concurrent users? Can this lead to exceptions as well? This is related to a common problem mentioned on dev.mysql.com: Quote: 1.5.1.4: I have a servlet/application that works fine for a day, and then stops ...

53. c3p0 - "Acquisition Attempt Failed!!!"    forum.hibernate.org

chrigi, it is in fact a database problem - as you assumed. I can reproduce exactly the same message on my old machine if I'm shutting down the Oracle instance and try to start the application. I'm a little bit astonished because I'm able to connect to the database using a query tool. Nevertheless I have to check what has gone ...

54. C3P0 - DefaultTransactionIsolation    forum.hibernate.org

55. Hibernate2.1.8 + c3p0 0.9    forum.hibernate.org

Newbie Joined: Tue May 24, 2005 8:38 am Posts: 7 Hello All, Here is the stack trace of the exception that I am getting could someone help me figure out the problem with this? my c3p0.properties file is: c3p0.timeout=100 c3p0.min_size=10 c3p0.max_size=100 c3p0.acquire_increment=1 and my hibernate.properties files is: hibernate.connection.driver_class=org.gjt.mm.mysql.Driver hibernate.connection.url=jdbc:mysql:///userdb hibernate.connection.username=usr hibernate.connection.password=usr hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect hibernate.transaction.manager_lookup_class=net.sf.hibernate.transaction.JBossTransactionManagerLookup hibernate.query.substitutions=yes 'Y', no 'N' hibernate.connection.provider_class=net.sf.hibernate.connection.C3P0ConnectionProvider 2005-10-24 09:32:55,220 DEBUG ...

56. c3p0 throws NullPointerException regularly    forum.hibernate.org

57. C3PO logger    forum.hibernate.org

Hello, We are currently using Hibernate in a commerical product. I would like to know how can we disable the log level for c3po, since during the initialization it shows all the configuration including the user name and password to connect the database into the logger Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@164b9b6 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@8acfc3 [ acquireIncrement -> 2, autoCommitOnClose -> false, ...

58. Hibernate - c3p0 initilization problem: ClassCastException    forum.hibernate.org

Hi, When I initialize my application with Hibernate and c3p0, a ClassCastException is thrown. See the stacktrace below. This seems like an exception not related to my code. Is is something in my settings, or am I missing something. Yhank you and have a great day. Hibernate version: 3.0.3 c3p0 version: 0.9.0.2 Name and version of the database you are using: ...

59. Hibernate + c3p0    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3 c3p0 version: c3p0-0.8.5 General question regarding reconnection upong connection loss to MySQL database. Previously I was using the hibernate (not for production use) connection pooling mechanism and got a few communications link failure exception. I tried adding some code to deal with these different communication link failure problems, ...

60. c3p0 problem    forum.hibernate.org

Can you get a Thread dump ? Both the threads listed are called "Thread-3" and look like the same thread. Usualy in a deadlock we are looking for 2 or more threads that have taken opposing locks and waiting for each other, just bad design by not taking multiple locks in the same order at runtime. If you are using the ...

61. C3p0 Error Messages    forum.hibernate.org

Hello, I am experiencing the following exception with C3p0: 24 Feb 2006 17:22:00,611 WARN BasicResourcePool.run:638 - Failed to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@191a42 java.lang.NullPointerException at com.mysql.jdbc.Statement.close(Statement.java:808) at com.mysql.jdbc.Connection.closeAllOpenStatements(Connection.java:2541) at com.mysql.jdbc.Connection.close(Connection.java:1067) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:405) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:135) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.destroyResource(C3P0PooledConnectionPool.java:208) at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:634) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:368) C3P0 Configuration: net.sf.hibernate.connection.C3P0ConnectionProvider com.mysql.jdbc.Driver jdbc:mysql://localhost/db someuser ***** true true true

62. c3p0: timeout at awaitAcquire()    forum.hibernate.org

Author Message jungle Post subject: c3p0: timeout at awaitAcquire() Posted: Thu May 04, 2006 5:46 pm Newbie Joined: Mon Mar 20, 2006 1:40 am Posts: 2 I hope this is the right forum for c3p0 problems. This error happened after a full application load test running for 48 hours and processing ~7M transactions just finished successfully. About 30 minutes ...

63. Problem with C3P0    forum.hibernate.org

Hi, I'm having problems with connection pool C3P0, I update the jar file to: c3p0-0.9.0.4 c3p0-oracle-thin-extras-0.9.0.4 But, the problem don't stop. Can You help me? Rogrio. Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: Hibernate 2 Mapping documents: # File: hibernate.cfg.xml - - net.sf.hibernate.dialect.OracleDialect false false consignet consignet ...

64. C3P0    forum.hibernate.org

I have the following hibernate.cfg file 1 1 1000 50 1 1.What happens when the max_size limit is reached? 2. Also, can anyone tell me what does max_statements mean? What happens when max_statements is reached? 3. Does c3p0 maintain a separate cache of SQL statements besides the hibernate 1st level cache. Is ...

65. C3P0 NoClassDefFoundError    forum.hibernate.org

66. Troubling enabling c3p0    forum.hibernate.org

I am trying to enable c3p0 (with MySQL) using hibernate.cfg.xml. However it doesn't appear to be working in that my database connection always dies overnight. Two questions: 1) Is there any simple way to determine if I am actually using c3p0 at all? I've tried grepping for "c3p0" in tomcat/logs, but that returns no matches. 2) Am I missing anything in ...

67. c3p0 configuration    forum.hibernate.org

hi, I am using c3p0 for my connection pooling.My doubt is how to configure c3p0 for sending a test query for every connection every n seconds My configuration of c3p0 done so far is 5 5 200 100 10 94 true c3p0.testConnectionOnCheckout=true c3p0.maxConnectionAge=94 c3p0.automaticTestTable=tester

68. n00b question on c3p0    forum.hibernate.org

Hi, I'm a sysadmin trying to get rid of an exception on c3p0 trying to load JNI libraries inside a JVM that already has them for JNDI DataSources. I skimmed docs on Google and I understood that c3p0 is alternative to a full JNDI JDBC resource. Am I correct that I should remove the c3p0 props from the hibernate config and ...

69. c3p0 and hibernate 3.2.1 issue    forum.hibernate.org

Author Message albabtain Post subject: c3p0 and hibernate 3.2.1 issue Posted: Tue Dec 26, 2006 9:57 am Newbie Joined: Wed Jun 15, 2005 12:23 pm Posts: 7 Hibernate version: 3.2.1.ga Mapping documents: org.hibernate.dialect.MySQLInnoDBDialect com.mysql.jdbc.Driver jdbc:mysql://localhost/mnews **** **** ...

70. another question on hibernate/c3p0    forum.hibernate.org

If I set: hibernate.c3p0.max_size = 100 hibernate.c3p0.min_size = 50 and leave the default value for "maxPoolSize" which is 15. does this mean c3p0 will automatically create up to 7 pools if needed? (i.e. since 15 x 7 = 105 is the lowest multiple of 15 greater than or equal to 100) I hope so! otherwise I will be really confused since ...

71. switching to c3p0 causes PSQLException    forum.hibernate.org

The code below works fine using the default Hibernate connection pool manager. However, if I switch to c3p0, I get a PSQLException. I have determined that the connection is open. Any clues as to why would be appreciated. Thanks, Brian Hibernate version: 3.2.1 Mapping documents: 2 300 14 0 10 0