Hello

I Upgraded spring from 1.2.0 GA to 1.3.0 RC and NHibernate 2.0.1 to
NHibernate 2.1.0

Now i sometimes get this exception in my windows service which kills
it.
I have no idea what is triggering it as it is not called from my code.
The application is making use of quartz and msmq support of spring.
It reads a message from the queue and sometimes schedules a job with
quartz. The quartz job makes use of database with writes and puts a
new message on another queue. I suspect it could have somthing todo
with threading as i have 2 other services without quarts but otherwise
using the same architecture which are running fine.The final error is
in nhibernate but i don't know if it is to blame?
Any suggestions?

Marc Gerritsen


2009-08-19 15:01:53,389 [14] ERROR
Spring.Data.Core.TxScopeTransactionManager [(null)] -
TransactionSynchronization.AfterCompletion threw exception
System.InvalidOperationException: Collection was modified; enumeration
operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException
( ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveN extRare()
at System.Collections.Generic.List`1.Enumerator.MoveN ext()
at NHibernate.Engine.ActionQueue.AfterTransactionComp letion(Boolean
success)
at NHibernate.Impl.SessionImpl.AfterTransactionComple tion(Boolean
success, ITransaction tx)
at Spring.Data.NHibernate.SpringSessionSynchronizatio n.AfterCompletion
(TransactionSynchronizationStatus status) in E:\Projecten
\Spring.NET-1.3.0-RC1\src\Spring\Spring.Data.NHibernate12\Data\NHibe
rnate\SpringSessionSynchronization.cs:line 251
at Spring.Transaction.Support.AbstractPlatformTransac
tionManager.InvokeAfterCompletion(IList synchronizations,
TransactionSynchronizationStatus status) in l:\projects\spring-net
\trunk\src\Spring\Spring.Data\Transaction\Suppo rt
\AbstractPlatformTransactionManager.cs:line 1178

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to