Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    otter
    3 Posts 1 Posters 8 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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))

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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
          
          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation