[nhusers] Re: Collection was not processed by flush()

2010-08-04 Thread allan.ritc...@gmail.com
The exception is in the post processing after the data has already been sent. We've used this technique for some time now without issue in our production apps. What is causing the error is that you are probably hitting a lazy load in your event listeners maybe for validation (nhibernate

Re: [nhusers] Re: Collection was not processed by flush()

2010-08-04 Thread Fabio Maulo
NHibernate validator knows his big brother and how it work ;) On Wed, Aug 4, 2010 at 10:43 AM, allan.ritc...@gmail.com allan.ritc...@gmail.com wrote: The exception is in the post processing after the data has already been sent. We've used this technique for some time now without issue in

[nhusers] Re: Collection was not processed by flush()

2010-08-03 Thread acl123
Yes On Jul 22, 4:52 am, epitka exptrade2...@yahoo.com wrote: Are you using any custom event listeners, maybe for auditing? On Jul 20, 9:06 pm,acl123andrewclawre...@gmail.com wrote: I am still really struggling with this

[nhusers] Re: Collection was not processed by flush()

2010-07-21 Thread epitka
Are you using any custom event listeners, maybe for auditing? On Jul 20, 9:06 pm, acl123 andrewclawre...@gmail.com wrote: I am still really struggling with this error:http://groups.google.com/group/nhusers/browse_thread/thread/1db7fd843... I have quite literally tried everything to get rid

[nhusers] Re: Collection was not processed by flush()

2010-07-20 Thread acl123
I am still really struggling with this error: http://groups.google.com/group/nhusers/browse_thread/thread/1db7fd843b0b4b56/df46cb0a150acd47 I have quite literally tried everything to get rid of it, but I can't. The exception is very difficult to reproduce and only appears in our exception logs

[nhusers] Re: Collection was not processed by flush()

2010-03-25 Thread Michael diSibio
I loop thru the collection if and only if this condition is satisfied: IEnumerable eventCollection = @event.Collection as IEnumerable; if(eventCollection != null @event.Collection.WasInitialized) ...audit else ...skip On Mar 24, 5:41 pm, Fabio Maulo fabioma...@gmail.com wrote: Probably is Not

[nhusers] Re: Collection was not processed by flush()

2010-03-24 Thread Michael diSibio
Wondering if this is officially a bug and will it get fixed? We have no listener on Flush events, only on the PostInsert/Update/ Delete and PostCollectionRecreate/Update/Remove. We have implemented a Unit of Work pattern, in which we set FlushMode to Never and explicitly call Flush(); Our

Re: [nhusers] Re: Collection was not processed by flush()

2010-03-24 Thread Fabio Maulo
Probably is Not a bug. Are you loading a collection inside your listeners ? 2010/3/24 Michael diSibio michael.disi...@gmail.com Wondering if this is officially a bug and will it get fixed? We have no listener on Flush events, only on the PostInsert/Update/ Delete and

[nhusers] Re: Collection was not processed by flush()

2010-02-17 Thread allan.ritc...@gmail.com
Easy fix. When configuring your session factory, replace the default auto flush event listeners with the classes below. [Serializable] public class FlushFixEventListener : DefaultFlushEventListener { public override void OnFlush(FlushEvent @event) { try {

[nhusers] Re: Collection was not processed by flush()

2010-02-16 Thread kimsk112
I got the same problem too. I have to remove the PreUpdateEventListener for now. --karlkim On Jan 8, 11:29 am, epitka exptrade2...@yahoo.com wrote: No, I just gave up and added a mapped field so I don't have to load anything in PreUpdate. On Dec 15 2009, 1:07 am, acl123

[nhusers] Re: Collection was not processed by flush()

2010-01-08 Thread epitka
No, I just gave up and added a mapped field so I don't have to load anything in PreUpdate. On Dec 15 2009, 1:07 am, acl123 andrewclawre...@gmail.com wrote: Exactly the same problem here :) On Dec 3, 8:05 pm, Revin rs_h...@hotmail.com wrote: Hiepitka, Do you have any luck with this

[nhusers] Re: Collection was not processed by flush()

2009-12-14 Thread acl123
Exactly the same problem here :) On Dec 3, 8:05 pm, Revin rs_h...@hotmail.com wrote: Hi epitka, Do you have any luck with this problem? I got the same error message... Thanks... -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this

[nhusers] Re: Collection was not processed by flush()

2009-12-03 Thread Revin
Hi epitka, Do you have any luck with this problem? I got the same error message... Thanks... -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhus...@googlegroups.com. To unsubscribe from this group, send email to

[nhusers] Re: Collection was not processed by flush()

2009-11-25 Thread epitka
I debugged this some more, and it does not make sense that this error is thrown. Collection MetaPackages is a lazy loaded, and does not get loaded during in the event listener. The only this, which when I comment out makes this go away, is that during serialization proces, I refer to MetaProject

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-04 Thread Lee Henson
I've created a patch file for the current nh trunk, but I can't see anywhere to upload it to this list. In the meantime, it is available here: http://gist.github.com/123560 The patch file includes caching of GetHashCode() values as you suggested, but it has no effect. The act of adding the

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-04 Thread Lee Henson
Ok so: - SortedSet uses SortedDictionary internally. SortedDictionary does not use a Hashtable internally to store it's keys and values, using instead a TreeBase. When the entity is inserted into a SortedSet, no evaluation of GetHashCode() is made. - HashedSet uses Hashtable internally.

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-04 Thread Fabio Maulo
Wait... if the problem was with some proxy the issue is another (probably) and was fixed few days ago.Btw if you have a test you can create JIRA ticket attaching the test case. 2009/6/4 Lee Henson lee.m.hen...@gmail.com Ok so: - SortedSet uses SortedDictionary internally. SortedDictionary

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-04 Thread Lee Henson
On Jun 4, 1:50 pm, Fabio Maulo fabioma...@gmail.com wrote: Wait... if the problem was with some proxy the issue is another (probably) and was fixed few days ago. I've scanned the recently fixed jira issues, and there is nothing I can see that is related to this issue. Btw if you have a test

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-03 Thread Fabio Maulo
which is the implementation of the gethashcode ? 2009/6/3 Lee Henson lee.m.hen...@gmail.com I have a test case that contains the following scenario: Parent has a custom generic set of Child which is empty Parent has an association to a MedicalRecord Doctor has an association to the same

[nhusers] Re: Collection was not processed by flush - when using custom collection type

2009-06-03 Thread Fabio Maulo
here is the problem unchecked { return (Age*397) ^ (Parent != null ? Parent.GetHashCode() : 0); } The hashCode can't change during instance life time especially when you are using it in a HashTable. private int requestedHash? public override int GetHashCode() { if(!requestedHash.HasValue) {