Print Page | Close Window

IdeaBlade.EntityModel.EntityServerException

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2988
Printed Date: 13-Oct-2025 at 4:31am


Topic: IdeaBlade.EntityModel.EntityServerException
Posted By: Deceased
Subject: IdeaBlade.EntityModel.EntityServerException
Date Posted: 04-Oct-2011 at 3:21am
Exception message: Destination array is not long enough to copy all the items in the collection. Check array index and length.


Stack:
   at IdeaBlade.EntityModel.RemoteEntityServerProxyBase.CheckConnection(Exception pException)
   at IdeaBlade.EntityModel.EntityServerProxy.ExecFunc[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.ExecuteOnServer[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.Fetch(SessionBundle bundle, IEntityQuerySurrogate query)
   at IdeaBlade.EntityModel.EntityManager.AsyncFetchWorker(AsyncEventArgs asyncArgs)

Hi

I get the above mentioned exception when trying to grab roundabout 50 000 records from the database...

Can anybody please give a reason as to why this is being thrown (Except of course the obvious that the destination array is not long enough), and how I can fix this.




Replies:
Posted By: kimj
Date Posted: 04-Oct-2011 at 8:58am
The stack trace here is the standard one for a fetch -- can you drill into either the inner exceptions (if available) or the RemoteStackTrace and post what you find? Here's more information on how to get information from this exception - http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-entityserverexception. - http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-entityserverexception.
 
We have fixed a bug in current bits (for the 6.1.3 release) where a similar message was raised by our GZip compression/decompression logic in some situations. The additional exception detail should tell us if that's the problem you're seeing.


Posted By: Deceased
Date Posted: 04-Oct-2011 at 10:54am
Hi Kimj

I'm not able to reproduce the error, and am not sure how I fixed it O.O

But the problem is resolved, thank you for your response though....



Print Page | Close Window