Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

hibernate Exception

  Asked By: Steven    Date: Oct 17    Category: Java    Views: 1262
  

I writing a web project with MySql and Hibernate,

Waht is Exception?


org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120)
org.hibernate.loader.Loader.getResultSet(Loader.java:1272)
org.hibernate.loader.Loader.doQuery(Loader.java:391)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:2\
18)
org.hibernate.loader.Loader.doList(Loader.java:1593)
org.hibernate.loader.Loader.list(Loader.java:1577)
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)


java.sql.SQLException: Communication link failure:
java.io.EOFException, underlying cause: null



java.io.EOFException
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java(Compiled Code))
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1539)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1930)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1168)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1279)
com.mysql.jdbc.Connection.execSQL(Connection.java:2281)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1634)
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120)
org.hibernate.loader.Loader.getResultSet(Loader.java:1272)
rg.hibernate.loader.Loader.doQuery(Loader.java:391)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:2\
18)
org.hibernate.loader.Loader.doList(Loader.java:1593)
org.hibernate.loader.Loader.list(Loader.java:1577)
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)



com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1714)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1930)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1168)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1279)
com.mysql.jdbc.Connection.execSQL(Connection.java:2281)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1634)
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120)
org.hibernate.loader.Loader.getResultSet(Loader.java:1272)
org.hibernate.loader.Loader.doQuery(Loader.java:391)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:2\
18)
org.hibernate.loader.Loader.doList(Loader.java:1593)
org.hibernate.loader.Loader.list(Loader.java:1577)
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)


org.hibernate.exception.GenericJDBCException: could not execute query
org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCode\
Converter.java(Inlined
Compiled Code))
org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java(Compi\
led
Code))
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java(Inl\
ined
Compiled Code))
org.hibernate.loader.Loader.doList(Loader.java(Compiled Code))
org.hibernate.loader.Loader.list(Loader.java(Compiled Code))
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java(Inlined
Compiled Code))
org.hibernate.impl.SessionImpl.list(SessionImpl.java(Compiled Code))
org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java(Compiled Code))

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Cheryl Murphy     Answered On: Oct 17

there is some problem in your db connectivity.

look at this line :
java.sql.SQLExcepti on: Communication link  failure:

give me more detail about your problem.

 
Answer #2    Answered By: Adalricus Fischer     Answered On: Oct 17

I suggest you to create an account in http://forum.hibernate.org, surf the forum and in case you couldn't find the solution for your bug, ask your problem out there. I am sure you will find a more precise answer from hibernate  team.
Meanwhile please consider that there are useful considerations that you shall follow to ask a question in hibernate forum, if you expose your hibernate jar version, jdbc-driver-version.jar, application server name and version, hbm files, cfg.xml (or in case of a mixture with spring ,hibernate.properties & related beans) along with conditions that made you to face the problem, they will answer you.
It's a better approach as it's faster and you face other people's problems, styles and technics.

 
Didn't find what you were looking for? Find more on hibernate Exception Or get search suggestion and latest updates.




Tagged: