Re: [rules-users] ConcurrentModificationException loading facts from db (Hibernate).

2012-07-03 Thread groovenarula
That worked. Thanks for clearing this up. -- View this message in context: http://drools.46999.n3.nabble.com/ConcurrentModificationException-loading-facts-from-db-Hibernate-tp4018431p4018437.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] ConcurrentModificationException loading facts from db (Hibernate).

2012-07-03 Thread Wolfgang Laun
$unitPrices : ArrayList() is bound to a collected list. The first insertion of a fact from this list cancels the activation and results in this ArrayList becoming modified. Copy the List before iterating over it, e.g. ArrayList copiedList = new ArrayList( $unitPrices ); for( Pricelist pr

[rules-users] ConcurrentModificationException loading facts from db (Hibernate).

2012-07-03 Thread groovenarula
In my use case, I have ~ 200,000 rows in a table that I need lookup in order to price an item. Rather than load the entire table into working memory,I'm trying load the relevant rows (based on a matching criteria) and load those as facts and then have my rules evaluate the loaded facts. Based on th