NullreferenceException with SQLite

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/8/2007 12:54:48 PM
Gravatar
Total Posts 8

NullreferenceException with SQLite

Hi,

I'm evaluating mojoportal using SQLite with version 2.2.3.3 but am getting the following exception when i try to add a new page. Editing existing pages and adding e.g. users works fine so I assume it has nothing to do with the site configuration itself.

2007-08-08 19:39:07,656 [2088] ERROR mojoPortal.Web.Global [(null)] - System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Data.SqliteHelper.ExecuteScalar(IDbConnection connection, String commandText, IDataParameter[] commandParameters)
at mojoPortal.Data.SqliteHelper.ExecuteScalar(String connectionString, String commandText, IDataParameter[] commandParameters)
at mojoPortal.Data.dbPortal.PageSettings_GetNextPageOrder(Int32 siteID, Int32 parentID)
at mojoPortal.Business.PageSettings.GetNextPageOrder(Int32 siteID, Int32 ParentID)
at mojoPortal.Web.AdminUI.PageProperties.SavePageData()
at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object Sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2007-08-08 19:39:07,859 [2088] ERROR mojoPortal.Web.Global [(null)] - System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Data.SqliteHelper.ExecuteScalar(IDbConnection connection, String commandText, IDataParameter[] commandParameters)
at mojoPortal.Data.SqliteHelper.ExecuteScalar(String connectionString, String commandText, IDataParameter[] commandParameters)
at mojoPortal.Data.dbPortal.PageSettings_GetNextPageOrder(Int32 siteID, Int32 parentID)
at mojoPortal.Business.PageSettings.GetNextPageOrder(Int32 siteID, Int32 ParentID)
at mojoPortal.Web.AdminUI.PageProperties.SavePageData()
at mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object Sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.admin_pagesettings_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Thanks a lot for any help in advance.

cheers, chris

8/8/2007 1:17:20 PM
Gravatar
Total Posts 18439

Re: NullreferenceException with SQLite

Hi Chris,

Thanks for reporting this. I do see a bug in the code in the method identified by the error.

I will have this fixed in svn trunk by the end of the day and hopefully can make a new release within the next few days.

Thanks,

Joe

8/8/2007 2:09:45 PM
Gravatar
Total Posts 8

Re: NullreferenceException with SQLite

wow, thanks for the quick reply, I'll be checking in again later then :)

cheers, chris

You must sign in to post in the forums. This thread is closed to new posts.