Problem with Spring orm with hibernate connection

venky racha, modified 14 Years ago. Junior Member Posts: 52 Join Date: 7/26/09 Recent Posts
Hi friends.

Iam using spring orm with hibernate iam fetching results from database using hibernate template. i have configured properly but iam geting below error while portlet rendering into page.

Actuall iam having 2 portlets. first portlet fetch rss results from url.second porlet fetch results from databse and showing in page. but iam geting problem with second porlet
this is the error iam geting please any body help??

Thanks in advance..

369770703 [TP-Processor5] [24 May 2011 12:05:47] WARN  [org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:233)]  - SQL Error: 0, SQLState: 08S01

369770705 [TP-Processor5] [24 May 2011 12:05:47] ERROR [org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:234)]  - Communications link failure due to underlying exception: 

 

** BEGIN NESTED EXCEPTION ** 

 

java.io.EOFException

MESSAGE: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

 

STACKTRACE:

 

java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)

        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)

        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)

        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)

        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)

        at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)

        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)

        at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)

        at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)

        at org.hibernate.loader.Loader.doQuery(Loader.java:802)

        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)

        at org.hibernate.loader.Loader.doList(Loader.java:2533)

        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)

        at org.hibernate.loader.Loader.list(Loader.java:2271)

venky racha, modified 14 Years ago. Junior Member Posts: 52 Join Date: 7/26/09 Recent Posts
No one is there to help me out this issue?????
thumbnail
Walter Christian Guardia Casas, modified 14 Years ago. Regular Member Posts: 127 Join Date: 5/5/10 Recent Posts
Hi,

Maybe these links you can help:

https://bbs.archlinux.org/viewtopic.php?pid=252662
https://bugs.archlinux.org/task/7256

Regards,
venky racha, modified 14 Years ago. Junior Member Posts: 52 Join Date: 7/26/09 Recent Posts
Hi Walter,

Thanks for your reply. but those are not solved my problem actually iam using spring orm with hibernate i am creating my own datasources iam putting my portlet into page and fetching results with that datasource i think page rendering slowly so connection is going lost..