Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bruce Clark 56 posts 80 karma points
    Aug 24, 2011 @ 22:24
    Bruce Clark
    0

    Compare and install throwing object reference error

    I have courier running properly from two installs, installing a revision works perfecty, however, doing a comapre and install fails every time. Here's a quick video of what happens, and the error below that: 

    http://screencast.com/t/wJp8dF3HGCJ6

    Object reference not set to an instance of an object.
    Error details
    
    
    System.NullReferenceException: Object reference not set to an instance of an object. 
    at Umbraco.Courier.UI.Pages.deployRevision.bindChanges(Object sender, RepeaterItemEventArgs e) 
    at System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) 
    at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
    at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) 
    at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) 
    at System.Web.UI.WebControls.Repeater.DataBind() 
    at Umbraco.Courier.UI.Pages.deployRevision.bindProvider(Object sender, RepeaterItemEventArgs e) 
    at System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) 
    at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
    at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) 
    at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) 
    at System.Web.UI.WebControls.Repeater.DataBind() 
    at Umbraco.Courier.UI.Pages.deployRevision.Page_Load(Object sender, EventArgs e) 
    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) 
    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

    Any ideas on what could be happening to cause this?

  • Per Ploug 865 posts 3491 karma points MVP admin
    Aug 26, 2011 @ 09:18
    Per Ploug
    0

    Hi Bruce

    It looks like either a provider or an item isn't found, could you zip the revision and send me the link to it on pph @ umbraco com ?

    /per

  • Chad Rosenthal 272 posts 474 karma points
    Dec 06, 2011 @ 22:59
    Chad Rosenthal
    0

    Was anything discovered on this issue? I'm also expriencing this when I create a revision on my staging server and the pull it to my localhost. The error occurs on the 'compare and install' screen. 

    Using Umbraco 4.7.1 and Courier 2.5.

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 07, 2011 @ 15:19
    Per Ploug
    0

    Are you able to spot which item does this? It is usually caused by an item that does not get a ID associated with it, which could mean the xml data from courier could not be read

  • Chad Rosenthal 272 posts 474 karma points
    Dec 07, 2011 @ 15:42
    Chad Rosenthal
    0

    It seems to do it on different ones. I reran it multiple times and it's on either the Template or a Stylesheet. So if I know it's one of these items, what do I do now?

    The situation is that the code on both localhost and staging is almost exactly the same (using source control). The difference is that the databases are not in sync, and I'm using Courier to get my data sync'ed up. 

    I guess it might be helpful to update the code so that the error handler threw a custom error that included what file it was on when it threw the error. 

    -C

  • Chad Rosenthal 272 posts 474 karma points
    Dec 07, 2011 @ 15:43
    Chad Rosenthal
    0

    As an aside, instead of creating a script for the entire system, I've tried to create sub scripts, to only push the document types, etc. The problem with that is that it still includes the dependencies, so even those are bombing.

  • Chad Rosenthal 272 posts 474 karma points
    Dec 08, 2011 @ 15:49
    Chad Rosenthal
    0

    I started to go through the .courier files and noticed this in the my style.css file. It looks like it's trying to find the images, but they aren't there. Could this be causing the error?

     

        <Resource>
          <ExtractToPath>/css/style.css</ExtractToPath>
          <Hash>e975e6e3faf2e9f5d3b528276ceaea7b</Hash>
          <Name>/css/style.css</Name>
          <PackageFromPath>/css/style.css</PackageFromPath>
          <TemporaryStoragePath>/css/style.css</TemporaryStoragePath>
          <VirtualResource>false</VirtualResource>
          <NotFound>false</NotFound>
        </Resource>
        <Resource>
          <ExtractToPath>/css/images/tanbkgtxtrsquare.jpg</ExtractToPath>
          <Name>/css/images/tanbkgtxtrsquare.jpg</Name>
          <PackageFromPath>/css/images/tanbkgtxtrsquare.jpg</PackageFromPath>
          <TemporaryStoragePath>/css/images/tanbkgtxtrsquare.jpg</TemporaryStoragePath>
          <VirtualResource>false</VirtualResource>
          <NotFound>true</NotFound>
        </Resource>

     

  • Bruce Clark 56 posts 80 karma points
    Dec 08, 2011 @ 18:55
    Bruce Clark
    0

    Hi Guys, 

    I aplogize I haven't been on this thread for a bit. Here's the revision I am getting the error from zipped up: 

    http://umbraco-courier.prod2.deploy-imulus.com/download/Starter-Deployment.zip

     

    Cheers,

    Bruce

     

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 12, 2011 @ 09:11
    Per Ploug
    0

    Thanks bruce, will give it a test run now and see if I can make it trigger an error on my test installs

    /Per

  • Tammy 16 posts 36 karma points
    Mar 05, 2012 @ 06:47
    Tammy
    0

    Hi,

    I am experiencing the same thing too.

    I am using umbraco 4.7.1 and courier Package version 2.5.4.1.

    Any updates on this?

     
  • Per Ploug 865 posts 3491 karma points MVP admin
    Mar 05, 2012 @ 10:18
    Per Ploug
    0

    Hi Tammy

    Yeah, the compare and install ui + apis have been rebuilt for 2.6 so it will be faster and more stable, we're working on getting the last errors ironed out so you can upgrade to this version instead

    /per

  • Tammy 16 posts 36 karma points
    Mar 05, 2012 @ 10:24
    Tammy
    0

    Hi Per,

    I tested 2.6 too, it seem like unstable.

    After a package is created and executed, i go to the task manager and select package or execute.

    result i see is "Object reference not set to an instance of an object."

     

    So, when will the 2.6 stable version ready?

     

    Regards,

    Tammy

  • Per Ploug 865 posts 3491 karma points MVP admin
    Mar 05, 2012 @ 10:30
    Per Ploug
    0

    Hi Tammy

    Based on your description, its pretty unclear where this error happens, got a page url, screenshot or complete exception?

    /Per

  • Tammy 16 posts 36 karma points
    Mar 05, 2012 @ 12:01
    Tammy
    0

    here is the step:-

    Step 1: At content Setting: 

    • I selected a document, right click and Select Courier.
    • then a window pop Up called "Transfer Item"
    • See image 1

    • And click Deploy
    • then you will see "Packaging your items". See Image 2
    • After packaging done, click cancel.

    Step 2: goto Courier Section

    • I go to "Task Manager" and right hand side will see "Recently processed tasks" and i selected "Packaging"
    • here i can see all the files that i selected at Step 1.
    • see image 3

    Step 3: Go to content Setting: 

    • I selected a document, right click and Select Courier.
    • then a window pop Up called "Transfer Item"
    • And click Deploy
    • then you will see "Packaging your items"
    • After packaging done, click Continue.
    • until you see "Extracting Sample" was completed successfully

    Step 4: goto Courier Section

     

    Hope this is clear enough.

Please Sign in or register to post replies

Write your reply to:

Draft