Search Indexer error.

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.
2/16/2009 10:51:05 PM
Gravatar
Total Posts 16

Search Indexer error.

And now, for a true error!

I'm having trouble with the search indexer:

2009-02-16 22:44:12,733 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: <Envelope xmlns='http://schemas.xmlsoap.org/soap/envelope/'> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read3_IndexItem()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2009-02-16 22:45:05,765 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: <Envelope xmlns='http://schemas.xmlsoap.org/soap/envelope/'> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read3_IndexItem()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2009-02-16 22:45:56,718 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: <Envelope xmlns='http://schemas.xmlsoap.org/soap/envelope/'> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read3_IndexItem()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
2009-02-16 22:46:31,655 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-02-16 22:48:09,921 INFO mojoPortal.Web.Global - Application Started.
2009-02-16 22:48:12,280 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2009-02-16 22:48:12,577 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task

 

Is there any other information I should provide?  Could the way I setup (or failed to setup - I have Site Meta info, but didn't set up any of the individual pages Meta info) one of my pages do this?  I'm running 2.2.8.6

2/17/2009 6:09:42 AM
Gravatar
Total Posts 18439

Re: Search Indexer error.

My best guess is you upgraded this site from a much older version of mojoportal. We changed the way tasks and index items are serialized into the database. At one time we were using SOAP but theSoapSerializer doesn't work in Medium Trust so we switched to plain XmlSerializer.

From the error it seems there are old rows in the db that are still in SOAP format. I would delete all rows from mp_TaskQueue and mp_IndexingQueue, then rebuild the search index.

Hope it helps,

Joe

2/17/2009 8:24:30 PM
Gravatar
Total Posts 16

Re: Search Indexer error.

YES!!!!!!!!  It works.  Thanks much :)

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