Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
调用Java Web服务时出现通信异常_Java_Web Services - Fatal编程技术网

调用Java Web服务时出现通信异常

调用Java Web服务时出现通信异常,java,web-services,Java,Web Services,我开发了一个JavaWebService,它将进行RMI调用以更新Oracle数据库。此web服务由.Net windows服务使用,并调用该服务来更新数据库中的数据。当事务数量增加时(在峰值负载时),我会从web服务得到以下异常。webservice公开的端点正在使用basichttpbinding 我一直在试图解决这个问题,或者重新访问架构以避免这种异常。谁能告诉我如何避免这种例外情况 System.ServiceModel.CommunicationException: An error

我开发了一个JavaWebService,它将进行RMI调用以更新Oracle数据库。此web服务由.Net windows服务使用,并调用该服务来更新数据库中的数据。当事务数量增加时(在峰值负载时),我会从web服务得到以下异常。webservice公开的端点正在使用basichttpbinding

我一直在试图解决这个问题,或者重新访问架构以避免这种异常。谁能告诉我如何避免这种例外情况

System.ServiceModel.CommunicationException: An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel. ---> System.Net.WebException: The request was aborted: The request was canceled.
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
   at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass5`1.<CreateGenericTask>b__4(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
System.ServiceModel.CommunicationException:通过HTTP通道传输数据时发生错误(请求被中止:请求被取消)。-->System.Net.WebException:请求已中止:请求已取消。
位于System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult、TransportContext和context)
位于System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult结果)
---内部异常堆栈跟踪的结束---
在System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult结果)
位于System.ServiceModel.Channel.ServiceChannel.SendAsyncResult.End(SendAsyncResult)
位于System.ServiceModel.Channels.ServiceChannel.EndCall(字符串操作,对象[]输出,IAsyncResult结果)
在System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.c__DisplayClass5`1.b__4(IAsyncResult asyncResult)
在System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar、Func`2 endFunction、Action`1 endAction、Task`1 Promission、Boolean requiresSynchronization)
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()中