Error from Lucen.Net >> BufferedIndexInput.cs

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/31/2006 11:18:15 PM
kwa
Gravatar
Total Posts 23

Error from Lucen.Net >> BufferedIndexInput.cs

 

I got the portal installed on my desktop yesterday and play with, everying was working fine yesterday. now when I come back and play with it again, I got error on every page after I posted any thing.

 

The error below I got it after I posted a reply to a message in the forum.

So, how can I fix this or remove the Lucen.Net from the portal because this Indexing engine does impact the portal performance and it does not really give much benefit, I mean the search functionality does not give accurate result.

 

read past EOF

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: read past EOF

Source Error:

Line 68: 			bufferLength = (int) (end - start);
Line 69: 			if (bufferLength <= 0)
Line 70: 				throw new System.IO.IOException("read past EOF");
Line 71: 			
Line 72: 			if (buffer == null)

Source File: C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Store\BufferedIndexInput.cs    Line: 70

Stack Trace:

[IOException: read past EOF]
   Lucene.Net.Store.BufferedIndexInput.Refill() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Store\BufferedIndexInput.cs:70
   Lucene.Net.Store.BufferedIndexInput.ReadByte() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Store\BufferedIndexInput.cs:36
   Lucene.Net.Store.BufferedIndexInput.ReadBytes(Byte[] b, Int32 offset, Int32 len) in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Store\BufferedIndexInput.cs:46
   Lucene.Net.Index.SegmentReader.Norms(String field, Byte[] bytes, Int32 offset) in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\SegmentReader.cs:603
   Lucene.Net.Index.SegmentMerger.MergeNorms() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\SegmentMerger.cs:466
   Lucene.Net.Index.SegmentMerger.Merge() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\SegmentMerger.cs:100
   Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment, Int32 end) in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\IndexWriter.cs:868
   Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment) in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\IndexWriter.cs:843
   Lucene.Net.Index.IndexWriter.FlushRamSegments() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\IndexWriter.cs:808
   Lucene.Net.Index.IndexWriter.Optimize() in C:\Inetpub\wwwroot\mojoportal\Lucene.Net-1-9\Index\IndexWriter.cs:688
   mojoPortal.Business.IndexHelper.ReIndex(IndexItem indexItem, String indexPath) in C:\Inetpub\wwwroot\mojoportal\Business\IndexHelper.cs:383
   mojoPortal.Business.IndexHelper.ReIndex(IndexItem indexItem) in C:\Inetpub\wwwroot\mojoportal\Business\IndexHelper.cs:337
   mojoPortal.Business.ForumThread.IndexItem(ForumThread forumThread) in C:\Inetpub\wwwroot\mojoportal\Business\ForumThread.cs:665
   mojoPortal.Business.ForumThread.CreatePost() in C:\Inetpub\wwwroot\mojoportal\Business\ForumThread.cs:374
   mojoPortal.Business.ForumThread.Post() in C:\Inetpub\wwwroot\mojoportal\Business\ForumThread.cs:427
   mojoPortal.Web.ForumPostEdit.btnUpdate_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\mojoportal\Web\ForumPostEdit.aspx.cs:306
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
8/1/2006 3:34:15 AM
Gravatar
Total Posts 18439

Re: Error from Lucen.Net >> BufferedIndexInput.cs

I'm not sure what happened but you can delete the index files for lucene and it will re-build the index on the next search.

The index files will be in ~/Data/Sites/[SiteID]/index
SiteID is likely 1
Delete all files from this index folder then do a search for something in the site and it may solve the error.

Hope it helps,

Joe
8/1/2006 9:31:05 AM
kwa
Gravatar
Total Posts 23

Re: Error from Lucen.Net >> BufferedIndexInput.cs

Ok, I will try it when I get a chance. In the mean time, can you explain how the Lucen work? is it like the class get called everytime there is a new thread posted, a new HTML content added or updated? or it works in the background in HttpHandler. I think I like to remove it from the portal since I worry about performance and I don't need that feature.

Thank you for all your hardwork.

 

8/2/2006 3:21:17 AM
Gravatar
Total Posts 18439

Re: Error from Lucen.Net >> BufferedIndexInput.cs

Yes, every time content is added or forum posts are made, entries are written to the lucene index so that the new or updated content can be searched. The task to index the content is queued on a new thread so it doesn't impact the user perception of performance.

Currently there is no way to disable it but it would not be hard to add a web.config setting to disable it and go through the code and add a check to this variable where needed. Maybe we can do that in a future version, no-one has ever asked to be able to disable it. I doubt very many people want to disable it, especially for forums.

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