I've been concentrating on writing the custom modules for our company and haven't focused much on the portal itself. Since they are expecting me to launch the portal next week I've got a major problem because of the "Illegal attempt to associate an object with multiple sessions" glitch.
I've got the latest cvs of cuyahoga and just wanted to know roughly where I should start looking to solve this problem. Since it's very important I can justify spending some time on it if they expect me to roll out the portal to the users very soon.
PS. I still can't use TortoiseSVN against your CVS, but I've managed to do it from the Linux server instead. The only reason I can figure out for the CVS problem is you use
http://, and everywhere else I use svn+ssh://
Not a priority at the moment...
rbourqueI've got the latest cvs of cuyahoga and just wanted to know roughly where I should start looking to solve this problem. Since it's very important I can justify spending some time on it if they expect me to roll out the portal to the users very soon.
I'm already fixing this problem, but it's a very nasty one. It is caused by multiple threads that use the same object instances from the cache (like Node, Section, Site etc.). Every thread tries to re-associate the object with its NHibernate session (needed for lazy loading). This doesn't work because NHibernate doesn't allow a single object instance to be connected with multiple sessions. So what to do?
- Turn off lazy loading for the cached objects (this means no lazy collections and proxies). Perhaps an option but not a good one. I don't want everything loaded by default.
- Retrieve copies from the cached objects and attach those to the separate sessions. I'm testing this option now by serializing and de-serialzing the cached objects (don't know what it means related to performance though). Unfortunately, there is an issue with NHibernate proxies and serialization, but on the other hand: Cuyahoga on Mono doesn't use proxies, so this could be a temporary solution for you (you were using Mono eh?).
- Forget about the Cuyahoga object cache and use NHibernate 2nd-level cache. I did some little tests, but I'm not convinced that this will be as efficient as Cuyahoga's own cache.
So, these are my options. Any ideas, suggestions?
PS. I still can't use TortoiseSVN against your CVS, but I've managed to do it from the Linux server instead. The only reason I can figure out for the CVS problem is you use http://, and everywhere else I use svn+ssh://
Not a priority at the moment...
Hmmm, I once had an issue with connecting to my SVN behind a proxy that didn't allow specific WebDAV commands that are used with SVN over http.