Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Windows Service Crashes on Stat Service error

Last post Thu, Apr 05 2007, 2:41 AM by Nadya. 11 replies.
Sort Posts: Previous Next
  •  Wed, Mar 21 2007, 8:11 AM 5281

    Windows Service Crashes on Stat Service error

    Hi all,

    I came in this morning and was doing some last minute testing before launching our site.  I noticed I wasn't receiving email.  The problem was that the WindowsService was not running.  I looked in the log and found that an exception (see bottom) caused by SpyIIS was the culprit.  I restarted the service and the stat service failed once and then continued on.  The timing seems to coincide to when we have the App_Pool restart, but I'm not sure if that is what created the error.

    What concerns me the most here is that emails for orders will not be received if this service crashes and then it may be a few days.  Any thoughts on preventing this?

    -Cole

    ==================

    2007-03-20 03:11:25,999 [2960] ERROR Mediachase.eCF.BusLayer.Audit.Log [(null)] - ECF Services
    System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Data.SqlClient.SqlTransaction.Zombie()
       at System.Data.SqlClient.SqlInternalTransaction.ZombieParent()
       at System.Data.SqlClient.SqlInternalTransaction.Zombie()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction)
       at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransaction(TransactionRequest transactionRequest, String name, IsolationLevel iso, SqlInternalTransaction internalTransaction)
       at System.Data.SqlClient.SqlInternalTransaction.Rollback()
       at System.Data.SqlClient.SqlTransaction.Rollback()
       at Mediachase.eCF.DataLayer.TransactionScope.Rollback() in c:\Projects\ECF\Package\main\src\DataProvider\TransactionScope.cs:line 132
       at Mediachase.eCF.DataLayer.TransactionScope.System.IDisposable.Dispose() in c:\Projects\ECF\Package\main\src\DataProvider\TransactionScope.cs:line 151
       at Mediachase.eCF.DataLayer.Provider.SqlDataProvider.Save(DataCommand command)
       at Mediachase.eCF.DataLayer.Provider.DataService.Save(DataCommand command) in c:\Projects\ECF\Package\main\src\DataProvider\DataService.cs:line 111
       at Mediachase.eCF.DataLayer.DBBaseObject.Save()
       at Mediachase.eCF.BusLayer.Common.Services.ECFServiceHistory.AddNewItem(Int32 serviceId)
       at Mediachase.eCF.BusLayer.Common.Services.ECFServiceHistory.CreateNewMessage(Boolean init, Int32 serviceid, String source, String message)
       at Mediachase.eCF.Plugins.Services.Statistics.SpyIISLogService.Execute()
       at Mediachase.eCF.BusLayer.Common.Services.BaseECFService.ExecuteJob()
  •  Wed, Mar 21 2007, 11:16 AM 5285 in reply to 5281

    Re: Windows Service Crashes on Stat Service error

    Hi Cole,

    We will investigate this issue and get back to you soon.

    Thanks.
    Sincerely,
    Irina

  •  Thu, Mar 22 2007, 9:16 AM 5310 in reply to 5285

    Re: Windows Service Crashes on Stat Service error

    Irina,

    I had the same issue last night, but it occurred at 1AM and we recycle at 3AM.  The same exception as above occurred. When I restart the service, I get the below error message in the log, but the WindowsService continues to run and seems to work fine after this point.
    =====

    2007-03-22 10:43:20,515 [2184] ERROR Mediachase.eCF.BusLayer.Audit.Log [(null)] - Failed SpyIISLog service.
    System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_Stat_RequestInfo_Stat_Visitors". The conflict occurred in database "GardenIQ_com", table "dbo.Stat_RequestInfo", column 'VisitorId'.
    The statement has been terminated.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Mediachase.Web.Statistics.DBHelper.RunSP(String strSP, Object[] paramList)
       at Mediachase.Web.Statistics.Data.FillRequestInfo()
       at Mediachase.Web.Statistics.Data.StatProcessing()
       at Mediachase.eCF.Plugins.Services.Statistics.SpyIISLogService.ProcessData()
       at Mediachase.eCF.Plugins.Services.Statistics.SpyIISLogService.Execute()
  •  Thu, Mar 22 2007, 11:50 AM 5314 in reply to 5310

    Re: Windows Service Crashes on Stat Service error

    Hi Cole,

    What version of the ECF are you running? What are you system specs (OS, database)? Is there way to get an access to your Commerce Manager as well as terminal services? If so, please email that info to support@mediachase.com.

    We are working on this issue and will keep you posted. If there are any other info, please let us know.

    Thank you for you patience.
    Sincerely,
    Irina

  •  Thu, Mar 22 2007, 12:30 PM 5317 in reply to 5314

    Re: Windows Service Crashes on Stat Service error

    ECF 4.0.10
    Windows Server 2003
    SQL Server 2005

    I'll email you a username/pass
  •  Thu, Mar 22 2007, 12:40 PM 5319 in reply to 5317

    Re: Windows Service Crashes on Stat Service error

    Thank you, Cole. I am sorry for the inconvenience and thank you for your patience and communication.

    Sincerely,
    Irina

  •  Fri, Mar 23 2007, 4:36 AM 5324 in reply to 5319

    Re: Windows Service Crashes on Stat Service error

    Hi Cole,

    The problem may be a result of the transition to summer time.

    Try to do the following actions: in stored procedure Stat_FillRequestInfo in Ln 97 replace the line
          IF(@LastSession IS NULL)
    to the next line 
          IF(NOT EXISTS(SELECT * FROM Stat_RequestInfo WHERE VisitorId = @VisitorHostId))
     
    Hope this helps.
    Alexey Antonov,
    Mediachase.
  •  Fri, Mar 23 2007, 8:52 AM 5327 in reply to 5324

    Re: Windows Service Crashes on Stat Service error

    Thanks Alexey.  I have changed the line and will let you know if I continue to receive errors or if this resolves the issue.

    -Cole
  •  Mon, Mar 26 2007, 7:37 AM 5336 in reply to 5327

    Re: Windows Service Crashes on Stat Service error

    Hi Guys,

    I am still receiving the same error that was occurring initially (see below).  At the least I would like the service to handle the error, log it, and continue processing.  I am currently having to check the service every day to make sure it is still running.

    Thanks,
    -Cole

    ----------------
    2007-03-26 00:51:34,359 [2740] ERROR Mediachase.eCF.BusLayer.Audit.Log [(null)] - ECF Services
    System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Data.SqlClient.SqlTransaction.Zombie()
       at System.Data.SqlClient.SqlInternalTransaction.ZombieParent()
       at System.Data.SqlClient.SqlInternalTransaction.Zombie()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction)
       at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransaction(TransactionRequest transactionRequest, String name, IsolationLevel iso, SqlInternalTransaction internalTransaction)
       at System.Data.SqlClient.SqlInternalTransaction.Rollback()
       at System.Data.SqlClient.SqlTransaction.Rollback()
       at Mediachase.eCF.DataLayer.TransactionScope.Rollback() in c:\Projects\ECF\Package\main\src\DataProvider\TransactionScope.cs:line 132
       at Mediachase.eCF.DataLayer.TransactionScope.System.IDisposable.Dispose() in c:\Projects\ECF\Package\main\src\DataProvider\TransactionScope.cs:line 151
       at Mediachase.eCF.DataLayer.Provider.SqlDataProvider.Save(DataCommand command)
       at Mediachase.eCF.DataLayer.Provider.DataService.Save(DataCommand command) in c:\Projects\ECF\Package\main\src\DataProvider\DataService.cs:line 111
       at Mediachase.eCF.DataLayer.DBBaseObject.Save()
       at Mediachase.eCF.BusLayer.Common.Services.BaseECFService.ExecuteJob()
  •  Thu, Mar 29 2007, 4:14 PM 5372 in reply to 5336

    Re: Windows Service Crashes on Stat Service error

    We are looking at the error and we will try to add a handler to the ExecuteJob method in our next maintanance release.

    Thanks for the info.

  •  Thu, Apr 05 2007, 12:57 AM 5400 in reply to 5336

    Re: Windows Service Crashes on Stat Service error

    Hi,

       Can you describe the steps that lead to the error?

    Nadya.

  •  Thu, Apr 05 2007, 2:41 AM 5401 in reply to 5336

    Re: Windows Service Crashes on Stat Service error

    Hi,

       One more question: which service causes the error? You can determine it this way: enable one service and disable all the others and see if it causes the error, and do the same for all the services.

    Nadya.

View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems