An Exception is thrown while trying to import n2.xml file

Jul 15, 2009 at 7:17 PM

This is the exception stacktrace i have got. I m pretty sure there is no error in the XML file. I exported a syndication feed element and while after adding an element i try to import it, the system throws an error

Any kind of help is really appreciated

Server Error in '/' Application.

Unexpected row count: 0; expected: 1

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: NHibernate.StaleStateException: Unexpected row count: 0; expected: 1

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[StaleStateException: Unexpected row count: 0; expected: 1]
NHibernate.AdoNet.BasicExpectation.VerifyOutcomeNonBatched(Int32 rowCount, IDbCommand statement) +237
NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation) +48
NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) +1082
NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session) +257
NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session) +349
NHibernate.Action.EntityUpdateAction.Execute() +266
NHibernate.Engine.ActionQueue.Execute(IExecutable executable) +143
NHibernate.Engine.ActionQueue.ExecuteActions(IList list) +72
NHibernate.Engine.ActionQueue.ExecuteActions() +22
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) +183
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +57
NHibernate.Impl.SessionImpl.Flush() +84
NHibernate.Transaction.AdoTransaction.Commit() +168
N2.Persistence.NH.NHTransaction.Commit() +43
N2.Persistence.NH.ContentPersister.Save(ContentItem unsavedItem) +394
Rollins.Integration.Web.Cms.Pages.Helpers.CmsTagEnabledPageHelper.set_Tags(String value) +692
Rollins.Integration.Web.Cms.Pages.CmsSyndicationItemPage.set_Tags(String value) +31

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +371
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +96
System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) +24
N2.ContentItem.set_Item(String detailName, Object value) +153
N2.Serialization.DetailXmlReader.ReadDetail(XPathNavigator navigator, ContentItem item, ReadingJournal journal) +144
N2.Serialization.DetailXmlReader.Read(XPathNavigator navigator, ContentItem item, ReadingJournal journal) +121
N2.Serialization.ItemXmlReader.ReadSingleItem(XPathNavigator navigator, ReadingJournal journal) +261
N2.Serialization.ItemXmlReader.Read(XPathNavigator navigator) +172
N2.Serialization.Importer.Read(TextReader input) +64
N2.Serialization.GZipImporter.Read(Stream input, String filename) +83
N2.Serialization.Importer.Read(String path) +73
N2.Edit.Export.Default.btnVerify_Click(Object sender, EventArgs e) +186
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) +1746