Thanks Mauricio for sorting this one out :) Btw, how do I go from svn revision 5540 to git 5e4aea0324eb7ce87fadbb0b935f29780c7b5747 ? Sorry git novice!
Cheers John ________________________________ From: Mauricio Scheffer <[email protected]> To: [email protected] Sent: Wed, 28 July, 2010 1:42:21 PM Subject: Re: Weird NullReferenceException in Controller.RunActionAndRenderView() v1.0.3.5540 corresponds to svn revision 5540, which is now here: http://github.com/castleproject/Castle.MonoRail/commit/5e4aea0324eb7ce87fadbb0b935f29780c7b5747 DefaultViewComponentDescriptorProvider for that revision is here: http://github.com/castleproject/Castle.MonoRail/blob/5e4aea0324eb7ce87fadbb0b935f29780c7b5747/MonoRail/Castle.MonoRail.Framework/Providers/DefaultViewComponentDescriptorProvider.cs The exception suggests a race condition with the type2desc dictionary (see http://stackoverflow.com/questions/1320621/throw-a-nullreferenceexception-while-calling-the-set-item-method-of-a-dictionary , http://stackoverflow.com/questions/1320264/how-did-i-get-this-nullreferenceexception-error-here-right-after-the-constructor ) so I'd add some locking when accessing this dictionary. I just checked and the current version of DefaultViewComponentDescriptorProvider already locks accesses to the dictionary, so you might be able to just swap the default (old) IViewComponentDescriptorProvider with the current one. -- Mauricio On Tue, Jul 27, 2010 at 11:55 PM, John Simons <[email protected]> wrote: > > Hi Daniel, > > I think that's all(stacktrace) we're going to get. > I was trying to figure out what has changed in this class since v1.0.3.5540 > but >the history seems to be missing :( > > My advice, if you can upgrade to v2.0 and report back if the problem still >occurs. > Sorry, that I can't be more helpful. > > If anyone wants to point flows with the method in question, have a look at: >http://github.com/castleproject/Castle.MonoRail/blob/master/src/Castle.MonoRail.Framework/Providers/DefaultViewComponentDescriptorProvider.cs >s > > Cheers > John > > ________________________________ > From: bdaniel7 <[email protected]> > To: Castle Project Users <[email protected]> > Sent: Tue, 27 July, 2010 9:36:48 PM > Subject: Weird NullReferenceException in Controller.RunActionAndRenderView() > > Hello, > > Every once in a while, I get an exception from a website built with > Monorail. > The exception is caught with Elmah and I get all its details by email. > > The error is here: http://dblendea.pastebin.com/Fqnk0yfq > > Every time I follow the url reported in the email, I don't get the > exception > > Now, the question: How should I enable more detailed logging for > Monorail, to see what's causing the exception? > I have log4net enabled but the exception doesn't tell too much. > > the log excerpt is here: > > http://dblendea.pastebin.com/2csn3etv > > the version is 1.0.3.5540 > Castle.MonoRail.Framework.Views.NVelocity.dll > Castle.MonoRail.Framework.dll > > Thank you, > Daniel > > -- > You received this message because you are subscribed to the Google Groups >"Castle Project Users" 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/castle-project-users?hl=en. > > > > > -- > You received this message because you are subscribed to the Google Groups >"Castle Project Users" 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/castle-project-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
