History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CCNET-1229
Type: Bug Bug
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Critical Critical
Assignee: Ross Patterson
Reporter: David Gardiner
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
CruiseControl .NET

NullReferenceException viewing web dashboard

Created: 25/Aug/08 12:51 PM   Updated: 01/Oct/08 02:30 PM
Component/s: Web App
Affects Version/s: 1.4.1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File Check for null.patch (0.5 kb)

Environment: Windows Server 2008


 Description  « Hide
Trying to view web dashboard gives a null reference exception:


[NullReferenceException: Object reference not set to an instance of an object.]
   ThoughtWorks.CruiseControl.WebDashboard.Dashboard.CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext context) +2360
   ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler.ProcessRequest(HttpContext context) +173
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 


 All   Comments   Work Log   Change History      Sort Order:
David Gardiner [25/Aug/08 12:52 PM]
This fixes the problem.

Ross Patterson [25/Aug/08 01:24 PM]
That's weird - it shouldn't be possible for pluginConfig.BuildPlugins[] to have an entry that is null. I don't think NetReflector is supposed to be able to create that from your dashboard.config file.

David Gardiner [25/Aug/08 08:45 PM]
I've narrowed it down to the presence of <gallioAttachmentBuildPlugin /> in the dashboard.config file.

Not sure if there's a compatibility issue there or something.

I'll investigate further.

-dave

David Gardiner [25/Aug/08 10:58 PM]
ok.. slightly embarrassing. I forgot to copy CCNet.Gallio.WebDashboard.Plugin.dll into the bin folder.

Still might be worth adding the null checks anyway just for robustness (and to help it survive forgetful people)

-dave


Ross Patterson [26/Aug/08 07:42 AM]
Thanks for the update. It's still pretty weird - NetReflector should have thrown an exception when loading your dashboard.config file, which should have been logged somewhere and should have made the dashboard fail. I'll look into that side of it a bit.

Ross Patterson [01/Oct/08 02:30 PM]
NetReflector theoretically doesn't do what David said it did. If there's a bug, it's not a CCNET bug, but rather one in NetReflector (which is a different project).