MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: MySQL Broken pipe
Posted by: Jeyendran Balakrishnan
Date: August 31, 2009 06:33PM


I am also getting the same kind of exception after the server has been runing for a while:

My system configuration:
* Tomcat 6.0.18
* mySQL 5.0.45
* Database connection type: Java JPA
* JPA library: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
* No connection pooling of any kind.

[TopLink Warning]: 2009.08.31 04:41:43.369--ClientSession(25914126)--Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

MESSAGE: Broken pipe

STACKTRACE: Broken pipe
at Method)
at com.mysql.jdbc.MysqlIO.send(
at com.mysql.jdbc.MysqlIO.sendCommand(
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Connection.setAutoCommit(
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicBeginTransaction(
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.beginTransaction(
at oracle.toplink.essentials.internal.sessions.AbstractSession.basicBeginTransaction(
at oracle.toplink.essentials.threetier.ClientSession.basicBeginTransaction(
at oracle.toplink.essentials.internal.sessions.AbstractSession.beginTransaction(
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.beginTransaction(
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitRootUnitOfWork(
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitAndResume(
at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(
at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl.commit(
at com.personaltube.db.impl.rdb.CResourceLocalDBManager.endTransaction(

where the last line calls:

So the exception occurs while the EntityManager is trying to commit the transaction. My transaction here is merely trying to add a row to a table.

mySQL shell seems to be working fine and I can manually do CRUD operations on the same table.

Please help, I don't know of any solutions that can help.

Thanks a lot.

Options: ReplyQuote

Written By
Re: MySQL Broken pipe
August 31, 2009 06:33PM

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.