1. #1
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    402
    Vote Rating
    93
    halcwb is just really nice halcwb is just really nice halcwb is just really nice halcwb is just really nice

      0  

    Default DirectRequest is null exception

    DirectRequest is null exception


    I keep running in the above exception with the following stack trace:
    [NullReferenceException: DirectRequest is null.]
    Ext.Direct.Mvc.DirectResult.ExecuteResult(ControllerContext context) +228
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
    System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +20
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +251
    System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +19
    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178
    System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +314
    System.Web.Mvc.Controller.ExecuteCore() +105
    System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39
    System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
    System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34
    System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
    System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
    System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44
    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8677758
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

    When a MVC method is called everthing runs up to: return this.Direct("some object");

    I have gone over and over the settings in the webconfig and my site.master file, but cannot find anything wrong there.

  2. #2
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    402
    Vote Rating
    93
    halcwb is just really nice halcwb is just really nice halcwb is just really nice halcwb is just really nice

      0  

    Default Problem solved

    Problem solved


    There was nothing wrong with my configuration, I just did not pass parameters as I thought I did not need to because the methods were without parameters.

    My mistake.

Similar Threads

  1. null-pointer exception in radio.onClick
    By flyingbo in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 12 Apr 2010, 10:32 AM
  2. [OPEN] [FIXED][2.2+] DatePicker.beforeDestroy NULL Exception
    By fins in forum Ext 2.x: Bugs
    Replies: 6
    Last Post: 21 Mar 2010, 4:09 PM
  3. [1.2.2] Null pointer exception using ColumnLayout
    By nicco in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 19 Feb 2009, 6:51 AM
  4. [1.2.2] Null pointer exception using ColumnLayout
    By nicco in forum Ext 1.x: Bugs
    Replies: 0
    Last Post: 19 Feb 2009, 6:51 AM