Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# hobbis 10/12/2009 2:11 PM
Very strange this one. In the last coupld of days, my websites crash with the following errors below. Generally there seems to be no pattern and it could be any of the Cuyahoga sites. They have been running fine up until lately. Nothing on the server has changed:

Thread information: 
    Thread ID: 1 
    Thread account name: COOLBYTES\IWAM_plesk(default) 
    Is impersonating: False 
    Stack trace:    at System.Xml.XmlNode.InsertAfter(XmlNode newChild, XmlNode refChild)
   at System.Xml.XmlNode.InsertBefore(XmlNode newChild, XmlNode refChild)
   at System.Xml.XmlNode.ReplaceChild(XmlNode newChild, XmlNode oldChild)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.ElementProcessors.AbstractXmlNodeProcessor.ReplaceNode(XmlNode element, XmlNode newNode, XmlNode oldNode)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.ElementProcessors.IncludeElementProcessor.Process(IXmlProcessorNodeList nodeList, IXmlProcessorEngine engine)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.DefaultXmlProcessorEngine.DispatchProcessAll(IXmlProcessorNodeList nodeList)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.ElementProcessors.DefaultElementProcessor.Process(IXmlProcessorNodeList nodeList, IXmlProcessorEngine engine)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.DefaultXmlProcessorEngine.DispatchProcessAll(IXmlProcessorNodeList nodeList)
   at Castle.Windsor.Configuration.Interpreters.XmlProcessor.XmlProcessor.Process(XmlNode node)

and a minute later the same site gets this error:
Thread information: 
    Thread ID: 1 
    Thread account name: COOLBYTES\IWAM_plesk(default) 
    Is impersonating: False 
    Stack trace:    at Cuyahoga.Core.Util.IoC.get_Container()
   at Cuyahoga.Web.Global.get_Container()
   at Cuyahoga.Web.Util.ContainerAccessorUtil.GetContainer()
   at Cuyahoga.Web.HttpModules.CoreRepositoryModule.Context_BeginRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Maybe there is an update I can install for Castle Windsor? Or is it something else entirely. These sites run on 1.6 and 1.5x.

Windows 2003. IIS 6. ASP.NET 2 and 3x installed.


# hobbis 10/12/2009 3:37 PM (edited 10/13/2009 8:22 AM)
I noticed many of these problems in the error logs:
The container seems to be unavailable in your HttpApplication subclass

The reference node is not a child of this node.

The container has not been initialized!

Which leads me to these articles:

http://blog.andreloker.de/?tag=/integration

http://richarddingwall.name/2009/04/17/iunitycontaineraccessor-must-use-a-static-container-instance/

Any thoughts?

# martijnb 10/15/2009 12:06 PM
It appears that there is a problem with castle reading the XML config files that prevent the container from initializing. I haven't seen this issue before however, but I'd focus on these files to see if anythings has changed.
# hobbis 10/15/2009 11:07 PM
Thanks Martijn,

I've checked the config files and they seem ok. Also, the sites work again once the app pool has been recycled so I'm thinking it's something else. I have about 12 Cuyahoga sites running on the server using MSSQL Express and wondering if something is at it's limit...?
# hobbis 10/16/2009 9:33 AM
I did a load test on a couple of sites and within minutes I could see the full problem:
Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. 
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.Data.SqlClient.SqlException: Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

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: 


[SqlException (0x80131904): Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +157
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +197
   System.Data.SqlClient.SqlDataReader.Read() +9
   NHibernate.Driver.NHybridDataReader.Read() +14
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +544
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +67
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +44

[ADOException: could not execute query
[ select feeditem0_.feeditemid as feeditemid20_, feeditem0_.url as url20_, feeditem0_.title as title20_, feeditem0_.content as content20_, feeditem0_.pubdate as pubdate20_, feeditem0_.author as author20_, feeditem0_.feedid as feedid20_ from cm_feeditem feeditem0_, cm_feed feed1_ where (feed1_.sectionid=?  and feeditem0_.feedid=feed1_.feedid) order by  feeditem0_.pubdate desc ]
  Name: sectionId - Value: 7
[SQL: select feeditem0_.feeditemid as feeditemid20_, feeditem0_.url as url20_, feeditem0_.title as title20_, feeditem0_.content as content20_, feeditem0_.pubdate as pubdate20_, feeditem0_.author as author20_, feeditem0_.feedid as feedid20_ from cm_feeditem feeditem0_, cm_feed feed1_ where (feed1_.sectionid=?  and feeditem0_.feedid=feed1_.feedid) order by  feeditem0_.pubdate desc]]
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +122
   NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) +18
   NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) +81
   NHibernate.Hql.Classic.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters) +20
   NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters, IList results) +213
   NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters) +42
   NHibernate.Impl.QueryImpl.List() +105
   Cuyahoga.Modules.RemoteContent.RemoteContentModule.GetAllFeedItems() +101

[Exception: Unable to get FeedItems for section: NEWS]
   Cuyahoga.Modules.RemoteContent.RemoteContentModule.GetAllFeedItems() +182
   Cuyahoga.Modules.RemoteContent.Web.RemoteContent.Page_Load(Object sender, EventArgs e) +58
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


And what gets recorded in the Event error log is this:

Event Type:	Warning
Event Source:	ASP.NET 2.0.50727.0
Event Category:	Web Event 
Event ID:	1309
Date:		10/16/2009
Time:		8:24:27 AM
User:		N/A
Computer:	COOLBYTES
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/16/2009 8:24:27 AM 
Event time (UTC): 10/16/2009 7:24:27 AM 
Event ID: 45691c0337a747caac8a5aa96c041f17 
Event sequence: 22 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/4365/Root-4-129001488092476250 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Inetpub\vhosts\gardnermarine.com\httpdocs\ 
    Machine name: COOLBYTES 
 
Process information: 
    Process ID: 1444 
    Process name: w3wp.exe 
    Account name: COOLBYTES\IWAM_plesk(default) 
 
Exception information: 
    Exception type: Exception 
    Exception message: Unable to get FeedItems for section: NEWS 
 
Request information: 
    Request URL: http://www.gardnermarine.com/Default.aspx 
    Request path: /Default.aspx 
    User host address: 90.203.124.7 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: COOLBYTES\IWAM_plesk(default) 
 
Thread information: 
    Thread ID: 1 
    Thread account name: COOLBYTES\IWAM_plesk(default) 
    Is impersonating: False 
    Stack trace:    at Cuyahoga.Modules.RemoteContent.RemoteContentModule.GetAllFeedItems()
   at Cuyahoga.Modules.RemoteContent.Web.RemoteContent.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


I'll have to look into the deadlock thing further...
# martijnb 10/19/2009 7:47 AM
It seems you're running into an issue with the RemoteContent module. Could you check if this only happens with your Cuyahoga 1.5.x sites? If I remember well, it was fixed in Cuyahoga 1.6.0.
Alternatively, try turning off background loading for the feed items and see if that helps.
# hobbis 10/19/2009 10:32 AM
Thanks Martijn,

Yes that was the problem. I had set it up so that one was pulling content from the other. Both had background refreshing on. Removed this and fixed it but they are both v1.6.

Cheers.