Problem
The Event Log of the SharePoint Server is reddish due to events occurring every 5 minutes:
Event Log Error:
Log Name: Application
Source: Microsoft-SharePoint
Products-SharePoint Foundation
Date: 2/18/2013 7:00:01 PM
Event ID: 6398
Task Category: Timer
Level: Critical
Keywords:
Description:
The Execute method
of job definition Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob
(ID 8ea0b71c-08c4-4644-a0bc-c361c391bc45) threw an exception. More information
is included below.
Object reference not
set to an instance of an object.
Event Xml:
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob
8ea0b71c-08c4-4644-a0bc-c361c391bc45
Object
reference not set to an instance of an object.
ULS Log:
3880 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Monitoring nasq Medium
Entering monitored scope (Timer Job
OfficeWebApplicationsCacheCreationJob)
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3881 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C Office Web Apps Office Viewing
Architecture cu85 Medium
Cache Creation Job Starting [JobId:
8ea0b71c-08c4-4644-a0bc-c361c391bc45]
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3882 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C Office Web Apps Office Viewing
Architecture cu86 Exception
Cache Creation Job encountered an exception [JobId:
8ea0b71c-08c4-4644-a0bc-c361c391bc45] System.NullReferenceException: Object
reference not set to an instance of an object. at
Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) at
Microsoft.SharePoint.SPSite.GetSPRequest()
at Microsoft.SharePoint.SPSite.get_Request() at Microsoft.SharePoint.SPSite.get_Usage() at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp, Boolean elevateReturn, String ownerLogin, String ownerName, String
ownerEmail) at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp) at
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob.Execute(SPJo... 1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3883 02/18/2013
19:05:00.04* OWSTIMER.EXE (0x0AA0) 0x2C2C Office Web Apps Office Viewing
Architecture cu86 Exception
...bState jobState)
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3884 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C Office Web Apps Unified Logging Service c91s
Monitorable Watson bucket
parameters: Office Web Apps, ULSException14, 52a97675 "office web
apps", 0e00178d "14.0.6029.0", 1f65804a
"microsoft.sharepoint", 0e0017ee "14.0.6126.0", 5021a68d
"wed aug 08 02:36:45 2012", 000057b1 "000057b1", 01ab21e4
"01ab21e4", 4a6d3421 "nullreferenceexception", 63753836
"cu86"
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3885 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Timer 6398 Critical
The Execute method of job definition
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob (ID
8ea0b71c-08c4-4644-a0bc-c361c391bc45) threw an exception. More information is
included below. Object reference not set
to an instance of an object.
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3886 02/18/2013
19:05:00.04 OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Timer 72ae Unexpected
Exception stack trace: at
Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) at
Microsoft.SharePoint.SPSite.GetSPRequest()
at Microsoft.SharePoint.SPSite.get_Request() at
Microsoft.SharePoint.SPSite.get_Usage()
at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp, Boolean elevateReturn, String ownerLogin, String ownerName, String
ownerEmail) at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp) at
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob.Execute(SPJobState
jobState) at
Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
jd, Guid targetInstanceId, Boolean isTimerSer... 1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3887 02/18/2013
19:05:00.04* OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Timer 72ae Unexpected
...vice, Int32& result)
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3891 02/18/2013
19:05:00.05 OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Monitoring b4ly Medium
Leaving Monitored Scope (Timer Job OfficeWebApplicationsCacheCreationJob).
Execution Time=14.8229
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
3892 02/18/2013
19:05:00.05 OWSTIMER.EXE (0x0AA0) 0x2C2C SharePoint Foundation Performance nask Monitorable
An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of
this object or its parent (such as an SPSite or SPWeb) as soon as you are done
using it. This object will now be
disposed. Allocation Id:
{ADFDB253-11D8-4E24-806E-DF9C81239608}
To determine where this object was allocated, set
Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks
= true.
1ad52fe0-5766-4a71-8991-e4aa0cb9b356
The problem is the "Office Web Apps Cache Creation" SP Job tries to run every 5 minutes but fails for some reason. The Cleanup job also fails that is scheduled to run daily.
Solution
I tried without luck:
- modifying the Cache DB's settings with Set-SPOfficeWebAppsCache
- moving the Cache Db onto a different Content Database
- removing the Word Viewing Service Application
- stopping Excel Calculation Services, PowerPoint Service, Word Viewing Service
- disabling and re-enabling the Office Web Apps Site Collection Feature
Then, I mounted the Office Web Apps ISO, and started a repair. Rebooted the server and good to go! No more errors.