PDA

View Full Version : Nullref Exception when saving a page



merktnichts
08-08-2007, 08:07 AM
I'm not sure if it's a bug of if I broke my installation by using SVN, so I didn't mantis it (sorry).

When I create a new page and hit "Save", I'm getting a Nullref exception in the logs:


2007-08-08 09:51:12,850 [-1242571856] ERROR MindTouch.Dream.DreamFeatureChain - handler for POST:local://db4a6e33a4f0415eb9a912b1b546c857/deki/luceneindex?apikey=myapikey failed()
System.NullReferenceException: Object reference not set to an instance of an object
at Lucene.Net.Index.DocumentWriter.InvertDocument (Lucene.Net.Documents.Document doc) [0x00000]
at Lucene.Net.Index.DocumentWriter.AddDocument (System.String segment, Lucene.Net.Documents.Document doc) [0x00000]
at Lucene.Net.Index.IndexWriter.AddDocument (Lucene.Net.Documents.Document doc, Lucene.Net.Analysis.Analyzer analyzer) [0x00000]
at Lucene.Net.Index.IndexWriter.AddDocument (Lucene.Net.Documents.Document doc) [0x00000]
at MindTouch.LuceneService.LuceneService.AddDocumentT oIndex (Lucene.Net.Documents.Document d) [0x00000]
at MindTouch.LuceneService.LuceneService.Add (MindTouch.Dream.XDoc doc) [0x00000]
at MindTouch.LuceneService.LuceneService+<>c__CompilerGenerated3.MoveNext () [0x00000]
at MindTouch.Tasking.Coroutine+<>c__DisplayClass1.<Iterate>b__0 () [0x00000]
at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
at MindTouch.Tasking.Task.Execute (System.VoidHandler handler, MindTouch.Tasking.TaskBehavior behavior) [0x00000]
2007-08-08 09:51:12,872 [-1242571856] DEBUG MindTouch.Dream.DreamMessage - Response: Internal Error(Object reference not set to an instance of an object
at Lucene.Net.Index.DocumentWriter.InvertDocument (Lucene.Net.Documents.Document doc) [0x00000]
at Lucene.Net.Index.DocumentWriter.AddDocument (System.String segment, Lucene.Net.Documents.Document doc) [0x00000]
at Lucene.Net.Index.IndexWriter.AddDocument (Lucene.Net.Documents.Document doc, Lucene.Net.Analysis.Analyzer analyzer) [0x00000]
at Lucene.Net.Index.IndexWriter.AddDocument (Lucene.Net.Documents.Document doc) [0x00000]
at MindTouch.LuceneService.LuceneService.AddDocumentT oIndex (Lucene.Net.Documents.Document d) [0x00000]
at MindTouch.LuceneService.LuceneService.Add (MindTouch.Dream.XDoc doc) [0x00000]
at MindTouch.LuceneService.LuceneService+<>c__CompilerGenerated3.MoveNext () [0x00000]
at MindTouch.Tasking.Coroutine+<>c__DisplayClass1.<Iterate>b__0 () [0x00000]
at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
at MindTouch.Tasking.Task.Execute (System.VoidHandler handler, MindTouch.Tasking.TaskBehavior behavior) [0x00000] )

The new page is saved okay and I wouldn't have noticed it if there wasn't an empty error message in the yellow error box on top. The error just says: "Error" and...

Request URI:

Server response

Is it my installation? Any ideas what I can do to fix it?

SteveB
08-08-2007, 06:32 PM
Hmm, something went wrong when Lucene tried to generate indexing information for this page. Not sure what could be causing this. The side-effect is that this page won't be in the index.

Pete is currently at LinuxWorld. So he might take a while to look into this.

I assume you already tried restarting dekihost, just in case?

merktnichts
08-08-2007, 07:46 PM
Yup, restarted several times while narrowing down the cause of this bug.

BUT: Could it be that Roy fixed a part of it in r5063? The one he called "STUPID STUPID STUPID bug"... ;)
There's no empty error box anymore.

Hrmmm... I just checked, the exception is still in the logs. Okay, as long as it's just missing in the index, it's no real stopper for filling the wiki. I can reindex later when Pete will be back to look into it. Still I'm not sure if it's not a local thing, but maybe Pete will find out if it's a bug or not. In the meantime I'll try to find out something more about it and will recheck my installation the next days. I'll keep you updated how it goes.