1. Catch invalid hibernate connection URL error stackoverflow.comIf I put the wrong connection URL in my hibernate.cfg.xml file, I want to be able to detect it and terminate gracefully, but I can't figure out how; it just hangs ... |
2. Problem C3P0 / Oracle / Connection is invalid forum.hibernate.orgInitializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@15412e75 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@769aba32 [ acquireIncrement -> 5, autoCommitOnClose -> false, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 10, initialPoolSize -> 25, maxIdleTime -> 0, maxPoolSize -> 100, maxStatements -> 0, minPoolSize -> 10, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@6a510e39 [ description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, jdbcUrl -> jdbc:oracle:thin:@xxxx:1521:xxx, properties -> {user=xxxx, ... |
3. C3P0 in often throws exception 'connection is invalid' forum.hibernate.orgHi, i am seeing the below warning message often in my logs. I am using C3P0-0.9.1-pre6 hibernate3 spring1.2.7 Please let me know whether my settings are correct? |
4. Connection is invalid forum.hibernate.orgHi. This means that you have c3p0 configured to periodically test Connections in the pool, and c3p0 has found a Connection that seems broken, and has removed it from the pool. You can safely just ignore this if it's infrequent. If you are getting a lot of these messages, you might try to track down why Connections are going bad. Often ... |
5. Exceptions not thrown for invalid connection properties forum.hibernate.orgAuthor Message redbeard Post subject: Exceptions not thrown for invalid connection properties Posted: Fri Nov 10, 2006 7:52 pm Newbie Joined: Fri Nov 10, 2006 7:26 pm Posts: 11 I'm having problems with Hibernate not throwning exceptions when I give it invalid database configuration information. I'm hoping to catch DB connection properties problems early, maybe when I create the ... |