Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled NullReferenceException in CreateOnlineDatabaseBackup if TargetDatabaseName is not defined #1941

Closed
claycompton opened this issue Mar 4, 2014 · 1 comment

Comments

@claycompton
Copy link

Currently, if the CreateOnlineDatabaseBackup job is invoked without TargetDatabaseName defined in the payload, an unhandled NullReferenceException is thrown. The below error log is representative.

<NuOps 3.0.1> D:\github.com\nuget.operations
[env:int] # nucmd work log -i 40abff20-6158-444f-8011-d29f670378a6 -pass $pass
trace: NuCmd v3.0.1.0
info : Fetching log data for Invocation 40abff20-6158-444f-8011-d29f670378a6...
http : GET https://api-work-0.int.nugettest.org/work/invocations/40abff20-6158-444f-8011-d29f670378a6/log
http : 200 https://api-work-0.int.nugettest.org/work/invocations/40abff20-6158-444f-8011-d29f670378a6/log
info : Log entries for Invocation 40abff20-6158-444f-8011-d29f670378a6.
info : ----------------------------------------------------------------
info : Starting invocation 40abff20-6158-444f-8011-d29f670378a6. Job: CreateOnlineDatabaseBackup. Runtime: NuGet.Service
s.Work.Jobs.CreateOnlineDatabaseBackupJob
info : Preparing to backup nuget-int-0-v2gallery on server jvhowicii4.database.windows.net
info : Getting list of databases on jvhowicii4.database.windows.net
info : Starting copy of nuget-int-0-v2gallery to Backup_2014Feb28_1952Z
info : Started copy of nuget-int-0-v2gallery to Backup_2014Feb28_1952Z
error: Invocation 40abff20-6158-444f-8011-d29f670378a6 faulted at 2014-02-28T19:52:29.2949305+00:00: System.NullReferenc
eException: Object reference not set to an instance of an object.
error: at NuGet.Services.Work.Jobs.CreateOnlineDatabaseBackupJob.ContinueCheckingBackup() in c:\TeamCity\App\buildAge
nt\work\c969dcfb8556c064\src\NuGet.Services.Work\Jobs\CreateOnlineDatabaseBackupJob.cs:line 159
error: at NuGet.Services.Work.Jobs.CreateOnlineDatabaseBackupJob.d__d.MoveNext() in c:\TeamCity\App\buildAge
nt\work\c969dcfb8556c064\src\NuGet.Services.Work\Jobs\CreateOnlineDatabaseBackupJob.cs:line 109
error: --- End of stack trace from previous location where exception was thrown ---
error: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
error: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
error: at NuGet.Services.Work.AsyncJobHandler`1.d__2.MoveNext() in c:\TeamCity\App\buildAgent\work\c969dc
fb8556c064\src\NuGet.Services.Work\Infrastructure\JobHandler.cs:line 116
info : ---------------------------------------------------------------
info : End of log for Invocation 40abff20-6158-444f-8011-d29f670378a6.
<NuOps 3.0.1> D:\github.com\nuget.operations

@analogrelay
Copy link
Contributor

Duplicate of #1901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants