Help debugging recurring Exception

Topics: Troubleshooting
Jun 13, 2012 at 10:13 AM

Hi there. 

On each request that is made, I get the following exception. I don't "see" the problem on the site (i.e. missing components) and I find it's very difficult to diagnose/debug because I can't find any relevant or identifying information when I work my way up the call stack. My Debug log is filling up pretty quickly with these errors....  Does anyone have any suggestions on what I can do to find the culprit using the debugger? 

 

2012-06-13 00:04:56,056 [8] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - TargetInvocationException thrown from IContentPartDriver by Orchard.Core.Containers.Drivers.ContainerWidgetPartDriver
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at lambda_method(Closure )
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at NHibernate.Linq.Visitors.Evaluator.SubtreeEvaluator.Evaluate(Expression e)
   at NHibernate.Linq.Visitors.ExpressionVisitor.VisitBinary(BinaryExpression b)
   at NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp)
   at NHibernate.Linq.Visitors.ExpressionVisitor.VisitLambda(LambdaExpression lambda)
   at NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp)
   at NHibernate.Linq.Visitors.ExpressionVisitor.VisitUnary(UnaryExpression u)
   at NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp)
   at NHibernate.Linq.Visitors.ExpressionVisitor.VisitList(ReadOnlyCollection`1 original)
   at NHibernate.Linq.Visitors.ExpressionVisitor.VisitMethodCall(MethodCallExpression m)
   at NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp)
   at NHibernate.Linq.NHibernateQueryProvider.TranslateExpression(Expression expression)
   at Orchard.ContentManagement.DefaultContentQuery.Where[TRecord](Expression`1 predicate) in C:\OrchardSite\src\Orchard\ContentManagement\DefaultContentQuery.cs:line 90
   at Orchard.ContentManagement.DefaultContentQuery.ContentQuery`2.Orchard.ContentManagement.IContentQuery.Where(Expression`1 predicate) in C:\OrchardSite\src\Orchard\ContentManagement\DefaultContentQuery.cs:line 237
   at Orchard.Core.Containers.Drivers.ContainerWidgetPartDriver.<>c__DisplayClass6.b__4() in C:\OrchardSite\src\Orchard.Web\Core\Containers\Drivers\ContainerWidgetPartDriver.cs:line 32
   at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClassd.b__c(BuildShapeContext ctx) in C:\OrchardSite\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 108
   at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass13.b__12(BuildShapeContext ctx) in C:\OrchardSite\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 116
   at Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType) in C:\OrchardSite\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 37
   at Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildDisplayContext context) in C:\OrchardSite\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 21
   at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClassa.b__9(IContentPartDriver driver) in C:\OrchardSite\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 49
   at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) in C:\OrchardSite\src\Orchard\InvokeExtensions.cs:line 19

Coordinator
Jun 13, 2012 at 5:33 PM

That must be a bug in the content part driver. You could just launch visual studio and put a breakpoint in there.

Or you can try to make repro steps so we can fix it.