Skip navigation links

MySQL Forums :: Connector/JDBC and Java :: Communications link failure due to underlying exception


Advanced Search

Solution C3p0 Re: Communications link failure due to underlying exception (My Solution)
Posted by: Richipal Singh ()
Date: April 01, 2007 04:10AM

I am using
java 1.5
hibernate 3
mysql 5

these settings worked for me I had the same problem, I have pasted the copy of hibernate.cfg.xml, might help someone.

<property name="connection.username">root</property>
<property name="connection.url">jdbc:mysql://localhost:3306/database?autoReconnect=true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="myeclipse.connection.profile">mysql</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.c3p0.min_size">10</property>
<property name="hibernate.c3p0.max_size">100</property>
<property name="hibernate.c3p0.timeout">10</property>
<property name="hibernate.c3p0.acquireRetryAttempts">30</property>
<property name="hibernate.c3p0.acquireIncrement">5</property>
<property name="hibernate.c3p0.idleConnectionTestPeriod">300</property>
<property name="hibernate.c3p0.initialPoolSize">20</property>
<property name="hibernate.c3p0.maxPoolSize">100</property>
<property name="hibernate.c3p0.maxIdleTime">300</property>
<property name="hibernate.c3p0.maxStatements">50</property>
<property name="hibernate.c3p0.minPoolSize">10</property>

Options: ReplyQuote


Subject Written By Posted
Communications link failure due to underlying exception Henry Fernandes 02/22/2005 01:11AM
Re: Communications link failure due to underlying exception Tetsuro Ikeda 02/22/2005 02:54AM
Re: Communications link failure due to underlying exception Henry Fernandes 02/22/2005 10:38AM
Re: Communications link failure due to underlying exception Henry Fernandes 02/22/2005 11:48AM
Re: Communications link failure due to underlying exception (My Solution) niyi oladeji 11/01/2007 09:32AM
Re: Communications link failure due to underlying exception Marcelo Chryssovergis 04/15/2005 02:32PM
Re: Communications link failure due to underlying exception Carlos Martins 04/20/2005 08:00AM
Re: Communications link failure due to underlying exception Raed Kuhail 05/15/2005 02:48AM
Re: Communications link failure due to underlying exception Michael Carell 06/02/2005 05:06AM
Re: Communications link failure due to underlying exception Alper Akture 07/11/2005 07:27PM
Re: Communications link failure due to underlying exception Peter Andrews 07/15/2005 08:52AM
Re: Communications link failure due to underlying exception Peter Andrews 07/15/2005 11:49AM
Re: Communications link failure due to underlying exception Peter Andrews 07/15/2005 03:22PM
Re: Communications link failure due to underlying exception Peter Andrews 07/19/2005 06:24AM
Re: Communications link failure due to underlying exception Mark Matthews 07/19/2005 07:41AM
Re: Communications link failure due to underlying exception Alper Akture 07/20/2005 12:03PM
Re: Communications link failure due to underlying exception Mark Matthews 07/20/2005 12:06PM
Re: Communications link failure due to underlying exception Alper Akture 07/20/2005 02:06PM
Re: Communications link failure due to underlying exception Mark Matthews 07/20/2005 02:08PM
Re: Communications link failure due to underlying exception Alper Akture 07/20/2005 02:36PM
Re: Communications link failure due to underlying exception Peter Andrews 08/03/2005 08:48AM
Re: Communications link failure due to underlying exception suma latha 03/10/2007 02:23AM
Re: Communications link failure due to underlying exception Mark Matthews 07/19/2005 07:34AM
Re: Communications link failure due to underlying exception YoungSung Lee 06/08/2007 02:09AM
Re: Communications link failure due to underlying exception M Jersan 06/13/2005 04:36AM
Re: Communications link failure due to underlying exception Alper Akture 07/20/2005 04:44PM
Re: Communications link failure due to underlying exception Mark Matthews 07/20/2005 06:03PM
Re: Communications link failure due to underlying exception Alper Akture 07/21/2005 11:11AM
Re: Communications link failure due to underlying exception Philipp Kuhrs 08/10/2005 07:48AM
Re: Communications link failure due to underlying exception Prafulla Girgaonkar 03/22/2006 08:20AM
Re: Communications link failure due to underlying exception Erwin Liem 03/23/2006 05:22AM
Re: Communications link failure due to underlying exception Prafulla Girgaonkar 03/23/2006 10:07AM
CORRECT SOLUTION: Communications link failure due to underlying exception Bohdan Bobylak 05/18/2006 10:22AM
Re: CORRECT SOLUTION: Communications link failure due to underlying exception Adam Pickett 05/29/2006 06:41AM
Re: CORRECT SOLUTION: Communications link failure due to underlying exception virtual spy 06/04/2006 02:47PM
Re: Communications link failure due to underlying exception Qaiser Mehmood 06/01/2006 12:44PM
MySQL fix?! Markus Cozowicz 06/09/2006 04:42AM
Re: MySQL fix?! Akhil 08/24/2006 05:27PM
Re: Communications link failure due to underlying exception Harikrishnan K 11/01/2006 05:52AM
Re: Communications link failure due to underlying exception Alex S 11/30/2006 11:31PM
Re: Communications link failure due to underlying exception Mahesh Yamsani 01/17/2007 11:19PM
date_format() bug, supposed fixed in 4.1.22 Alex S 11/30/2006 11:37PM
Re: date_format() bug, supposed fixed in 4.1.22 (confirmed) Alex S 12/01/2006 12:44AM
Re: Communications link failure due to underlying exception Jeff Smith 05/23/2007 04:29PM
Re: Communications link failure due to underlying exception (My Solution) Carlos Vela 01/18/2007 10:57AM
Solution C3p0 Re: Communications link failure due to underlying exception (My Solution) Richipal Singh 04/01/2007 04:10AM
Re: Solution C3p0 Ole van Boeckel 07/15/2007 04:27AM
Re: Communications link failure due to underlying exception sivakumar s 03/12/2008 03:51AM
Re: Communications link failure due to underlying exception thina karan 04/08/2008 05:43AM
java.policy most of the time! Andrei Todea 04/09/2008 06:01PM
Re: java.policy most of the time! Pape CISSE 05/13/2009 06:18AM
Re: Communications link failure due to underlying exception Venkata Raju 05/02/2008 01:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.