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.  [ 2 posts ] 
Author Message
 Post subject: Error Message:Count cannot be less than zero.
PostPosted: Mon Oct 27, 2008 10:24 am 
Newbie

Joined: Mon Oct 27, 2008 10:07 am
Posts: 1
i got this error it only apend on my live server... i must recycle the app pool to temporary fix the problem... it seem to appear randomly ?

i dont know were to start to deguging...
the trace doesnt indicate from were it starting in my code

Thanks

Hibernate version: 1.0.5000.0

The generated SQL (show_sql=true): true

Debug level Hibernate log excerpt:

Error Message:Count cannot be less than zero.
Parameter name: count
Stack Trace: at System.String.CopyTo(Int32 sourceIndex, Char[] destination, Int32 destinationIndex, Int32 count)
at System.IO.StreamWriter.Write(String value)
at System.IO.TextWriter.SyncTextWriter.Write(String value)
at NHibernate.Impl.BatcherImpl.LogCommand(IDbCommand command)
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd)
at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, Type optionalEntityName, Object optionalIdentifier, IEntityPersister persister) SOURCE :mscorlib


Thanks


Top
 Profile  
 
 Post subject: Re: Error Message:Count cannot be less than zero.
PostPosted: Tue Oct 28, 2008 3:12 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
treping wrote:
Hibernate version: 1.0.5000.0

That's really old.
You know that the newest version is 2.0.1?


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

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.