Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Problem with Spring orm with hibernate connection
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..
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)
No one is there to help me out this issue?????
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,
Maybe these links you can help:
https://bbs.archlinux.org/viewtopic.php?pid=252662
https://bugs.archlinux.org/task/7256
Regards,
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..
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..