我在sitecore日志中跟踪ERROR,并从那里停止录制日志。可以请一些人告诉我错误的修复方法。
我正在使用sitecore 8.0(rev.150223)
"ManagedPoolThread #7 01:14:32 INFO Job started: Sitecore.ListManagement.Analytics.UnlockContactListsAgent
ManagedPoolThread #7 01:14:32 ERROR Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Jobs.Job.ThreadEntry(Object state)
Nested Exception
Exception: System.ObjectDisposedException
Message: Cannot access a disposed object.
Object name: 'LuceneIndex'.
Source: Sitecore.ContentSearch
at Sitecore.ContentSearch.AbstractSearchIndex.VerifyNotDisposed()
at Sitecore.ContentSearch.LuceneProvider.LuceneIndex.CreateSearchContext(SearchSecurityOptions securityOptions)
at Sitecore.ListManagement.ContentSearch.IndexQueryProvider.Execute(Expression expression)
at Sitecore.ListManagement.ContentSearch.IndexQueryProvider.Execute[TResult](Expression expression)
at Sitecore.ListManagement.ContentSearch.QueryableProxy`1.GetEnumerator()
at Sitec ore.ListManagement.Analytics.UnlockContactListsAgent.Execute()"
答案 0 :(得分:2)
我有同样的问题。
Sitecore.ListManagement.Analytics.UnlockContactListsAgent是为列表管理器功能引入的特殊代理。此作业旨在自动解锁创建的列表。默认情况下,它配置为以10秒的间隔运行,这就是您在日志中经历如此频繁的消息的原因。 所以有这么多行不是任何问题的结果。
此功能已在Sitecore 8.0 Update-6中重写,并合并到 Sitecore 8.1 Update-1 。在最近的版本中,它使用钩子代替作业,并减少了日志记录的数量,请参阅release notes: 现在,已减少了执行UnlockContactListsAgent代理程序所创建的日志条目数。 (59585,433183) 请考虑升级您的安装。 在您的修订版中,您可以向默认记录器添加过滤器以忽略指定的行:
<appender name="LogFileAppender" type="log4net.Appender.SitecoreLogFileAppender, Sitecore.Logging">
<file value="$(dataFolder)/logs/log.{date}.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%4t %d{ABSOLUTE} %-5p %m%n" />
</layout>
<filter type="log4net.Filter.StringMatchFilter">
<stringToMatch value="UnlockContactListsAgent"/>
<acceptOnMatch value="false"/>
</filter>
<encoding value="utf-8" />
</appender>