Nullreferenceexception - Object Reference not set to an instance of an Object

Asked

Viewed 200 times

1

A person is launching a proposal, and I found through the Iderro generated on the page that she is accessing this error below. But I can’t understand his motive, so help me?

    PCA.Framework.PCAException: PCA Unexpected Exception: PCA Unexpected Exception: Object reference not set to an instance of an object. ---> 
    PCA.Framework.PCAException: PCA Unexpected Exception: PCA Unexpected Exception: PCA Unexpected Exception: Object reference not set to an instance of an object. ---> 
    PCA.Framework.PCAException: PCA Unexpected Exception: Object reference not set to an instance of an object. ---> 
    System.NullReferenceException: Object reference not set to an instance of an object.     
    at MetLife.Cotador.Business.DocumentoUploadPendenciaBusiness.ObtemTokenAutenticacaoMorpheus(Int32 numSeqCorretor, String nomeCorretor) in C:\PCACodeGit\MetLife.CotadorUX\MetLife.Cotador.Business\DocumentoUploadPendenciaBusiness.cs:line 242     
    at MetLife.Cotador.Business.DocumentoUploadPendenciaBusinessInjection.ObtemTokenAutenticacaoMorpheus(Int32 , String )     --- End of inner exception stack trace ---     
    at MetLife.Cotador.Business.DocumentoUploadPendenciaBusinessInjection.ObtemTokenAutenticacaoMorpheus(Int32 , String )     
    at MetLife.Cotador.Business.DocumentoUploadPendenciaBusiness.VerificaDocumentoPendencia(Nullable`1 idCotacao) in C:\PCACodeGit\MetLife.CotadorUX\MetLife.Cotador.Business\DocumentoUploadPendenciaBusiness.cs:line 283    
    at MetLife.Cotador.Business.DocumentoUploadPendenciaBusinessInjection.VerificaDocumentoPendencia(Nullable`1 )     --- End of inner exception stack trace ---     
at MetLife.Cotador.Business.DocumentoUploadPendenciaBusinessInjection.VerificaDocumentoPendencia(Nullable`1 )     
    at MetLife.Cotador.Business.PropostaBusiness.Transmite(Int32 idCotacao) in C:\PCACodeGit\MetLife.CotadorUX\MetLife.Cotador.Business\PropostaBusiness.cs:line 739     at MetLife.Cotador.Business.PropostaBusinessInjection.Transmite(Int32 )     --- End of inner exception stack trace ---     
    at MetLife.Cotador.Business.PropostaBusinessInjection.Transmite(Int32 )     
    at MetLife.Cotador.UX.Areas.Api.Controllers.CotacaoController.Transmite(Int32 idCotacao) in C:\PCACodeGit\MetLife.CotadorUX\MetLife.Cotador.UX\Areas\Api\Controllers\CotacaoController.cs:line 179     
    at lambda_method(Closure , Object , Object[] )     
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)     
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)     
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)  --- 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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()     
    at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()     
    at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()     
    at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()     
    at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
  • Maniero, also do not have much traceability on the error, for having recovered from it through a generated Cod on the screen.

  • By the exception message, one only has the information that the method DocumentoUploadPendenciaBusiness.ObtemTokenAutenticacaoMorpheus(Int32 numSeqCorretor, String nomeCorretor) has released an exception in C: Pcacodegit Metlife.Cotadorux Metlife.Cotador.Business Documenteploadpendenciabusiness.Cs, line 242.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.