mysql « JDBC « JPA Q&A





1. Why does Hibernate/JDBC/MySQL drop connections after a day or so?    stackoverflow.com

I have several server processes that once in a while respond to messages from the clients and perform read-only transactions. After about a few days that the servers are running, they stop ...

2. Java MYSQL Connection hangs in Windows 7, Works on Mac    stackoverflow.com

The same programs work on the Mac but does not seem to work on Windows. I have tried using both hibernate and a regular mysql.connection but both seem to hang. My firewalls are ...

3. Hibernate 3.5.1, JPA2.0 & MySQL - Alternate behaviour within 2 diff dbs / same server    stackoverflow.com

I am running a MySQL 5.1 server and Hibernate 3.5.1 / JPA2 for ORM. Everthing seems fine until I drop some tables manually. From then on, unit tests fail with Hibernate ...

4. Hibernate JDBCExceptionReporter -> Connection validity, timeout, auto reconnect    stackoverflow.com

I have a problem with Hibernate (3.6.0.-Final) in my Java EE application using MySQL and the MySQL Connector/J (official JDBC driver for MySQL). In my hibernate.cfg.xml, I have these lines of code:

<hibernate-configuration>
 ...

5. Losing connection to MySQL after a while, and not reconnecting    stackoverflow.com

I'm developing a standalone server which uses JPA+Hibernate to access a MySQL database. When I start the server, everything is working fine. However, after a while (usually the next morning, if I ...

6. jdbc connection - socket connection    stackoverflow.com

A few days ago my website crashed and showed me this error:

java.lang.NoClassDefFoundError: Could not initialize class com.omicc.hibernate.util.HibernateUtil
So I asked the hosting company about any changes that they ...

7. Hibernate + mysql jdbc on production    coderanch.com

Hi Buddies, I am using JSF + Hibernate + mysql on my application when i put the application on prod, i am seeing this error, when i try to list the users added the db. see: ast packet sent to the server was 724 ms ago. May 10, 2010 8:55:46 AM com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/admin/exibirusers.xhtml] javax.faces.FacesException: javax.el.ELException: /admin/exibirusers.xhtml @81,57 ...

8. MySQL connection via Hibernate is timed out frequently    java-forums.org

I am connecting to MySql using Hibernate and every 8 hours the connection is timed out. I am getting com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption. It also display very big error message. "The last packet successfully received from the server was 437,036,648 milliseconds ago......." If i restart my application, things will work fine. Please help me out.

9. Hibernate and JDBC to MySQL data corruption    forum.hibernate.org

I have a web based application on tomcat that workes fine on Windows XP and used to work fine on Mandrake 10.1 Linux. I upgraded to Mandrivia and now the linux side does not work. I tested JDBC directly to the MySQL 4.1.12 and it works fine. When hibernate in the java web server writes to the MySQL the data gets ...





10. MySql jdbc Connection lost after some time (15minutes)    forum.hibernate.org

Hi I use MySql with my Hibernate. I have a RCP Java application with some complex objectstructures. So I use a read session wich is open during the application and I never close it. For writing i use a session per transaction. Now I have the problem that the connection is closed when I wait 10 or 15 minutes without a ...

11. com.mysql.jdbc.CommunicationsException    forum.hibernate.org

hi here, I'm tyring to connect to a local mysql db using hibernate; I can connect to the same db using the java JDBC api with : Class.forName("com.mysql.jdbc.Driver").newInstance(); DriverManager.getConnection("jdbc:mysql:///marker" + "?socketFactory=com.mysql.jdbc.NamedPipeSocketFactory", "root", "boo10rad"); I have been able to connect to oracle on an external server using hibernate and last summer to my local mysql using hibernate. I'm presuming that somewhere something ...

12. Mixed JPA&Hibernate / JDBC: MySQL connection timeout    forum.hibernate.org

Newbie Joined: Tue May 13, 2008 7:22 pm Posts: 2 Location: Cambridge, MA Hi Everyone, I'm having what appears to be a slightly unusual problem with persistence of mysql connections (overnight from Tomcat) in a setting where I have mixed straight JDBC access with JPA/Hibernate access. I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; MyApp utilizes five (5) distinct ...