FIX: A "NullReferenceException" message is logged for agent jobs in Team Foundation Server 2010 after you install update 2570791

Article ID: 2633762 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Consider the following scenario:
  • You have a server that is running Microsoft Visual Studio Team Foundation Server 2010.
  • You install the August 2011 cumulative time zone update 2570791 on the server. For more information about the update, click the following article number to view the article in the Microsoft Knowledge Base:
    2570791 August 2011 cumulative time zone update for Windows operating systems
  • You connect to the server that is running Team Foundation Server 2010 from a computer that is configured to use the Russian Standard Time time zone.
  • You try to schedule work that produces Team Foundation Server agent jobs.

In this scenario, the following issues occur:
  • The agent jobs do not run successfully, and the following is logged in the Application event log:

    Detailed Message: There was an error during job agent execution. The operation will be retried. Similar errors in the next five minutes may not be logged.

    Exception Message: Object reference not set to an instance of an object. (type NullReferenceException)

    Exception Stack Trace:

    at Microsoft.TeamFoundation.Framework.Server.BackgroundJobComponent.ReleaseJob(Guid agentId, Guid jobSource, Guid jobId, Boolean jobDefinitionExists, IList`1 jobSchedule, IEnumerable`1 daylightTransitions, TeamFoundationJobResult result, String resultMessage)

    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobService.ReleaseJob(TeamFoundationRequestContext jobSourceRequestContext, Guid agentId, TeamFoundationJobQueueEntry queueEntry, TeamFoundationJobResult result, String resultMessage)

    at Microsoft.TeamFoundation.Framework.Server.JobRunner.ReleaseJob(Boolean catchAndLogJobServiceException)

    at Microsoft.TeamFoundation.Framework.Server.JobApplication.ReleaseOutstandingJobs(Boolean consumeNewlyCompletedJobs, Boolean catchAndLogJobServiceExceptions)

    at Microsoft.TeamFoundation.Framework.Server.JobApplication.ProcessJobQueueInternal()

    at Microsoft.TeamFoundation.Framework.Server.JobServiceUtil.RetryOperationsUntilSuccessful(RetryOperations operations)

  • A build cannot be scheduled from a computer that is set to Russian Standard Time, and the following is logged in the Application event log:

    Detailed Message: TF30065: An unhandled exception occurred.

    Web Request Details
    Url: http://Server:8080/tfs/_tfs_resources/Build/v3.0/BuildService.asmx [method: POST]
    User Agent: Team Foundation (devenv.exe, 10.0.30319.1)
    Path: /tfs/_tfs_resources/Build/v3.0/BuildService.asmx
    Local Request: False

    Exception Message: Object reference not set to an instance of an object. (type NullReferenceException)

    Exception Stack Trace:

    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobSchedule.Validate(String topLevelParamName, Int32 minimumScheduleInterval)

    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobDefinition.Validate(String topLevelParamName, Int32 minimumJobInterval)

    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobService.UpdateJobDefinitions(TeamFoundationRequestContext requestContext, IEnumerable`1 jobsToDelete, IEnumerable`1 jobUpdates, Boolean allowRunOnceJobs, Boolean repairQueueOnly)

    at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.UpdateBuildDefinitions(TeamFoundationRequestContext requestContext, IList`1 updates)

    at Microsoft.TeamFoundation.Build.Server.BuildWebService.UpdateBuildDefinitions(BuildDefinition[] updates)

Additionally, this problem may cause the following issues:
  • Scheduled builds do not start.
  • Both SOAP and Simple Mail Transfer Protocol (SMTP) alerts may not be processed or delivered.
  • Data warehouse stops populating.
  • Lab environment operations seem to be in an unresponsive state.
  • Connections to the server that is running Team Foundation Server 2010 may be refused, or you may be prompted repeatedly for your credentials.

RESOLUTION

The hotfix that resolves this issue is included in cumulative update package 2 for Visual Studio Team Foundation Server 2010 Service Pack 1.

For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2643415 Cumulative update package 2 for Visual Studio Team Foundation Server 2010 Service Pack 1

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2633762 - Last Review: December 22, 2011 - Revision: 1.0
APPLIES TO
  • Microsoft Visual Studio Team Foundation Server 2010
Keywords: 
kbqfe kbfix kbexpertiseinter kbbug kbsurveynew KB2633762

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com