Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

NullReferenceException on Plan Edit



  • When trying to edit a plan, either role or server I get the following error in the interface:

    (500) Error: InternalServerError
    Object reference not set to an instance of an object.
    

    The following exception is logged in the EventLog as well:

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 09-06-2016 11:14:05 
    Event time (UTC): 09-06-2016 09:14:05 
    Event ID: 207af82b356c416d8302059ff3c9b527 
    Event sequence: 13 
    Event occurrence: 12 
    Event detail code: 0 
    
    Application information: 
        Application domain: 6717b527-1-131099362020911266 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: C:\Program Files\Otter\Web\ 
        Machine name: NLABOTTER 
    
    Process information: 
        Process ID: 2768 
        Process name: Otter.Service.exe 
        Account name: NT AUTHORITY\SYSTEM 
    
    Exception information: 
        Exception type: NullReferenceException 
        Exception message: Object reference not set to an instance of an object.
       at Inedo.Otter.WebApplication.Pages.Plans.Editor.PlanEditorPage.CreateInitialData()
       at Inedo.Web.DP.DpPageBase`2.GetDpContextInvocation()
       at Inedo.Otter.WebApplication.Pages.Plans.Editor.PlanEditorPage.GetDpContextInvocation()
       at Inedo.Web.DP.DpPageBase`2.<>c__DisplayClass26_0.<RenderPage>b__1(SlimHtmlTextWriter w)
       at Inedo.Web.Controls.FauxMasterPage.RenderDirectWriter(Action`1 method, SlimHtmlTextWriter writer)
       at Inedo.Web.Controls.FauxMasterPage.DynamicPageFragment.WriteHtml(SlimHtmlTextWriter writer, Object[] replacements)
       at Inedo.Web.Controls.FauxMasterPage.Render(SlimHtmlTextWriter writer, Object[] replacements)
       at Inedo.Web.DP.DpPageBase`2.RenderPage(SlimHtmlTextWriter writer)
       at Inedo.Web.DP.DpPageBase`2.ProcessRequest(HttpContext context)
       at Inedo.Web.Handlers.SimpleHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
    
    
    
    Request information: 
        Request URL: http://localhost:82/plans/edit?raftId=1&planType=ServerConfigurationPlan&planName=NLABOtter 
        Request path: /plans/edit 
        User host address: ::1 
        User: Express User 
        Is authenticated: True 
        Authentication Type:  
        Thread account name: NT AUTHORITY\SYSTEM 
    
    Thread information: 
        Thread ID: 59 
        Thread account name: NT AUTHORITY\SYSTEM 
        Is impersonating: False 
        Stack trace:    at Inedo.Otter.WebApplication.Pages.Plans.Editor.PlanEditorPage.CreateInitialData()
       at Inedo.Web.DP.DpPageBase`2.GetDpContextInvocation()
       at Inedo.Otter.WebApplication.Pages.Plans.Editor.PlanEditorPage.GetDpContextInvocation()
       at Inedo.Web.DP.DpPageBase`2.<>c__DisplayClass26_0.<RenderPage>b__1(SlimHtmlTextWriter w)
       at Inedo.Web.Controls.FauxMasterPage.RenderDirectWriter(Action`1 method, SlimHtmlTextWriter writer)
       at Inedo.Web.Controls.FauxMasterPage.DynamicPageFragment.WriteHtml(SlimHtmlTextWriter writer, Object[] replacements)
       at Inedo.Web.Controls.FauxMasterPage.Render(SlimHtmlTextWriter writer, Object[] replacements)
       at Inedo.Web.DP.DpPageBase`2.RenderPage(SlimHtmlTextWriter writer)
       at Inedo.Web.DP.DpPageBase`2.ProcessRequest(HttpContext context)
       at Inedo.Web.Handlers.SimpleHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
    
    
    Custom event details: 
    

    I am using a git raft (The one from yesterday), that raft actually contains plans for two of my roles, however they are not showing in the interface.

    The interface is always showing "Create plan" and it always dies.

    (PS: Version is now 1.1.4 (Build 1))



  • We will address this bug in the next maintenace release as OTTER-70; basically the default raft isn't being resolved on these pages.

    The workaround is...

    1. Create an additional raft (aside from just "Default")
    2. Edit Server.
    3. SElect "Default" raft.

    Then it should work.



  • I cheated and did it in SQL, been digging a little bit into your database anyways.

    DECLARE @DefaultRaftId INT
    SELECT TOP 1 @DefaultRaftId = Raft_Id FROM Rafts WHERE Raft_Name = 'Default'
    
    UPDATE [Servers] SET Raft_Id = @DefaultRaftId
    UPDATE [ServerRoles] SET Raft_Id = @DefaultRaftId

Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation