首页 新闻 赞助 找找看

wcf rest service 做压力测试 崩溃

0
悬赏园豆:200 [待解决问题]

错误信息:

 

发生了未经处理的异常,已终止进程。

Application ID: /LM/W3SVC/35/ROOT

Process ID: 3912

Exception: System.Runtime.CallbackException

Message: 异步回调引发了异常。

StackTrace:    在 System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.CompleteAsynchronously(Exception ex)
   在 System.ServiceModel.Activation.HostedHttpContext.HostedRequestHttpOutput.HostedResponseOutputStream.Close()
   在 System.ServiceModel.Channels.HttpOutput.Close()
   在 System.ServiceModel.Channels.HttpRequestContext.OnReply(Message message, TimeSpan timeout)
   在 System.ServiceModel.Channels.RequestContextBase.Reply(Message message, TimeSpan timeout)
   在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Reply(MessageRpc& rpc)
   在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage9(MessageRpc& rpc)
   在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage8(MessageRpc& rpc)
   在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   在 System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   在 System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
   在 System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
   在 System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   在 System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   在 System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   在 System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
   在 System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
   在 System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   在 System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   在 System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result)
   在 System.ServiceModel.Channels.HttpPipeline.EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result)
   在 System.Runtime.AsyncResult.SyncContinue(IAsyncResult result)
   在 System.ServiceModel.Channels.HttpPipeline.EmptyHttpPipeline.BeginProcessInboundRequest(ReplyChannelAcceptor replyChannelAcceptor, Action dequeuedCallback, AsyncCallback callback, Object state)
   在 System.ServiceModel.Channels.HttpChannelListener`1.HttpContextReceivedAsyncResult`1.ProcessHttpContextAsync()
   在 System.ServiceModel.Channels.HttpChannelListener`1.BeginHttpContextReceived(HttpRequestContext context, Action acceptorCallback, AsyncCallback callback, Object state)
   在 System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
   在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
   在 System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
   在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)
   在 System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   在 System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
   在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

InnerException: System.NullReferenceException

Message: 未将对象引用设置到对象的实例。

StackTrace:    在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   在 System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
   在 System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

 

 

求大神

wcf
石翠宁的主页 石翠宁 | 初学一级 | 园豆:2
提问于:2015-10-21 14:24
< >
分享
所有回答(3)
0

 未将对象引用设置到对象的实例

吴瑞祥 | 园豆:29449 (高人七级) | 2015-10-21 14:29

这个错误信息是iis报的,报完应用程序池就崩溃了。

而且是做压力测试的时候,偶尔就报出来了。

这个“未将对象引用设置到对象的实例”是什么地方导致?

支持(0) 反对(0) 石翠宁 | 园豆:2 (初学一级) | 2015-10-21 14:32

@石翠宁: 看不出来,你只能看异常堆栈信息

支持(0) 反对(0) 吴瑞祥 | 园豆:29449 (高人七级) | 2015-10-21 15:04
0

反正看这个我是看不来什么问题

MrNice | 园豆:3450 (老鸟四级) | 2015-10-21 15:50
0

看起来是IOCP回调为null了

jello chen | 园豆:7306 (大侠五级) | 2015-10-21 23:11

怎么解决呢?大神

支持(0) 反对(0) 石翠宁 | 园豆:2 (初学一级) | 2015-10-22 09:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册