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

Exception thrown when terminate the program with Ctrl+C #130

Closed
yang-xiaodong opened this issue May 8, 2018 · 1 comment

Comments

@yang-xiaodong
Copy link
Member

commented May 8, 2018

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Bug

  • Which version of CAP, OS and .NET Core?
    CAP version : 2.2.2

  • What happen?

When terminate the program with Ctrl+C, the following exception is thrown.

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetCore.CAP.Processor.CapProcessingServer.Dispose()
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.Dispose()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Dispose()
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
   at SkyWalking.Sample.Cap.Producer.Program.Main(String[] args) in F:\skywalking-netcore\sample\SkyWalking.Sample.Cap.Producer\Program.cs:line 10

@yang-xiaodong yang-xiaodong self-assigned this May 8, 2018

@yang-xiaodong yang-xiaodong added the bug label May 8, 2018

yang-xiaodong added a commit that referenced this issue May 9, 2018

@yang-xiaodong yang-xiaodong added the fixed label May 9, 2018

@yang-xiaodong

This comment has been minimized.

Copy link
Member Author

commented Jun 5, 2018

fixed in version 2.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.