locked
Communication exception when calling Java webservice RRS feed

  • Question

  • Hello, I have developed an Java webservice which will make an RMI call to update Oracle database. This web service is consumed by .Net windows service and call the service to update data in database. At sometime when number of transaction increases(at peak load) I'm getting below exception from the web service. The endpoint that webservice exposing is using basichttpbinding.

    I have been trying to fix this issue or revisit the architecture to avoid such exception. Can anyone tell me how to avoid such exceptions.

    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.<o:p></o:p>
       at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)<o:p></o:p>
       at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)<o:p></o:p>
       --- End of inner exception stack trace ---<o:p></o:p>
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)<o:p></o:p>
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)<o:p></o:p>
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)<o:p></o:p>
       at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass5`1.<CreateGenericTask>b__4(IAsyncResult asyncResult)<o:p></o:p>
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<o:p></o:p>
    --- End of stack trace from previous location where exception was thrown ---<o:p></o:p>
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<o:p></o:p>
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<o:p></o:p>
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()<o:p></o:p>


    Thursday, September 11, 2014 10:48 AM

All replies