HI,everyone! We are using SQL SERVER2000 sp4 with hibernate ,JTDS1.0.2 JDBC Driver. When I access a database to find some rows, I get the error "TDS Protocol error: Invalid packet type 0x3". The following are the log information .Please let me know why the error comes and how I can fix it. Your help is greatly appreciated. Thanks a lot, Bobby!
[WARN ] 2011-02-28 16:17:26 method:SQL Error: 0, SQLState: 08S01 [ERROR] 2011-02-28 16:17:26 method:TDS Protocol error: Invalid packet type 0x3 [ERROR] 2011-02-28 16:17:26 method:could not initialize collection: java.sql.SQLException: TDS Protocol error: Invalid packet type 0x3 at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2210) at net.sourceforge.jtds.jdbc.TdsCore.getNextRow(TdsCore.java:720) at net.sourceforge.jtds.jdbc.JtdsResultSet.next(JtdsResultSet.java:513) at net.sourceforge.jtds.jdbc.JtdsResultSet.close(JtdsResultSet.java:428) at org.apache.commons.dbcp.DelegatingResultSet.close(DelegatingResultSet.java:151) at net.sf.hibernate.impl.BatcherImpl.closeQueryStatement(BatcherImpl.java:99) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:234) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:915) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:890) at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:93) at net.sf.hibernate.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:284) at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3264) at net.sf.hibernate.collection.PersistentCollection.forceInitialization(PersistentCollection.java:336) at net.sf.hibernate.impl.SessionImpl.initializeNonLazyCollections(SessionImpl.java:3119) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) at net.sf.hibernate.loader.Loader.doList(Loader.java:955) at net.sf.hibernate.loader.Loader.list(Loader.java:946) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:846) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1543) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at com.travelsky.gof.common.dao.base.BaseDAO$1.doInHibernate(BaseDAO.java:297) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:243) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:263)
|