刷新页面,数据库查询就出错,求教各位大侠
页面好多时候 刷新就出来这个错误, 刷新多几次 就没有,求教各位大侠
10:08:53,951 INFO [QueryBuilder] QueryBuilder.getHQL:select a.id,c.id,e.content,c.unitMark,c.speciesDescTable,c.unitTable,c.categoryMark from WareConDirectory a,WareMounted b,Specification c,BasPhrase d,BasPhraseContent e,WareSpeciesBase f where a.id=? and a.id=b.conCode and b.mountCode=c.id and b.status=1 and c.specStatus=1 and c.phraseId=d.id and d.id=e.phraseId and e.langCode=? and c.id=f.specificationId and f.phase=3 and f.status=1 group by a.id,c.id,e.content,c.unitMark,c.speciesDescTable,c.unitTable,c.categoryMark
10:08:54,139 INFO [QueryBuilder] QueryBuilder.getHQL:select a.id as attributeId ,a.column_name as columnName,c.content as display, b.id as phraseId from WARE_SPEC_ATTR a,ware_bas_phrase b,ware_bas_phrase_content c where a.spec_id='S5FD0CF1' and a.category=0 and a.is_filter=1 and a.phrase_code = b.id and b.id = c.phrase_id and c.lang_code='zh_CN'
10:08:54,224 ERROR [[Spring MVC Dispatcher Servlet]] Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Software caused connection abort: recv failed
STACKTRACE:
java.net.
SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:147)
at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1994)
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:3277)
at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:5442)
at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:906)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:87)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:555)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
at org.springfram