-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: TDS Protocol error: Invalid packet type 0x3
PostPosted: Wed Mar 02, 2011 2:18 am 
Newbie

Joined: Wed Mar 02, 2011 1:51 am
Posts: 1
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.