【发布时间】:2016-06-26 17:39:08
【问题描述】:
我目前收到一个非常奇怪的错误,对于一个 sitecore 用户,随机出现一个服务器错误 - 但是,用户可以刷新页面并且页面加载没有错误(根据用户)。我不确定这个错误与什么有关,有人有什么意见吗?
对象引用未设置为对象的实例。说明:一个 当前 web 执行过程中发生未处理的异常 要求。请查看堆栈跟踪以获取有关 错误以及它起源于代码的位置。
异常详细信息:System.NullReferenceException:没有对象引用 设置为对象的实例。
源错误:在执行过程中产生了未处理的异常 执行当前的 Web 请求。有关原产地的信息 可以使用异常来识别异常的位置和位置 下面的堆栈跟踪。
堆栈跟踪:
[NullReferenceException: 对象引用未设置为 对象。] Sitecore.Data.Database.ApplySecurity(Item[] items) +112
Sitecore.Data.Database.SelectItems(字符串查询)+252
Sitecore.Shell.Applications.WebEdit.Commands.OpenMyItems.GetHeader(CommandContext 上下文,字符串标题)+188
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderSmallButton(HtmlTextWriter 输出,项目按钮,CommandContext commandContext)+307
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderButton(HtmlTextWriter 输出,项目按钮,CommandContext commandContext) +732
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter 输出,项目块,CommandContext commandContext) +330
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter 输出、项目块、CommandContext commandContext、布尔值 isContextual,字符串 id) +204
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter 输出、项目块、CommandContext commandContext、布尔值 isContextual) +242
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunks(HtmlTextWriter 输出,项目条,CommandContext commandContext,布尔值 isContextual) +442
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter 输出,项目功能区,布尔 isContextual,ListString visibleStripList) +800
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter 输出,项目 defaultRibbon,项目 contextualRibbon,ListString visibleStripList) +215
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.Render(HtmlTextWriter 输出)+610
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter 编写器, ControlAdapter 适配器)+149
Sitecore.Web.HtmlUtil.RenderControl(Control ctl) +74
Sitecore.Shell.Applications.WebEdit.WebEditRibbonForm.RenderRibbon(项目 项目)+603
Sitecore.Shell.Applications.WebEdit.WebEditRibbonForm.OnLoad(EventArgs e) +1238[TargetInvocationException: 异常已被目标抛出 调用。] System.RuntimeMethodHandle.InvokeMethod(Object 目标、Object[] 参数、签名 sig、布尔构造函数)+0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(对象 obj, Object[] 参数,Object[] 参数)+76
System.Reflection.RuntimeMethodInfo.Invoke(对象 obj,BindingFlags invokeAttr、Binder binder、Object[] 参数、CultureInfo 文化) +193 System.Reflection.MethodBase.Invoke(Object obj, Object[] 参数) +35 Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +337 System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(布尔值 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint) +3178
【问题讨论】:
标签: sitecore