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:
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?
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.
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
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.
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.
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?
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
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
Any ideas on what could be happening to cause this?
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
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.
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
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
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.
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?
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
Thanks bruce, will give it a test run now and see if I can make it trigger an error on my test installs
/Per
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?
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
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
Hi Tammy
Based on your description, its pretty unclear where this error happens, got a page url, screenshot or complete exception?
/Per
here is the step:-
Step 1: At content Setting:
Step 2: goto Courier Section
Step 3: Go to content Setting:
Step 4: goto Courier Section
Hope this is clear enough.
is working on a reply...