How can I solve the "Connection Reset" error?

09 Nov '17, 10:39 AM
3,906 Views
No Forum Badges

Hi all,

I'm using a Soap Request Response in a Web Project to invoke a web service.
Recently the invokation stopped working and I found this exception in the log:

07 nov 2017 06:25:02,277 ERROR [_job.scheduler_Worker-1] (com.webratio.units.ws.rtx.SoapRequestResponseUnitService:73) - [WR_JOB_-1942439417][_job.manager][job1][miu52][opm25][rru6]Unable to execute service
com.webratio.rtx.RTXException: An error occurred dispatching the SOAP message
at com.webratio.rtx.ws.SoapMessageDispatcher.dispatch(SoapMessageDispatcher.java:227)
at com.webratio.units.ws.rtx.AbstractRequestResponseUnitService.execute(AbstractRequestResponseUnitService.java:196)
at com.webratio.rtx.core.OperationModuleService._execute(OperationModuleService.java:209)
at com.webratio.rtx.core.OperationModuleService.execute(OperationModuleService.java:133)
at com.webratio.units.module.rtx.ModuleInstanceUnitService.createUnitBean(ModuleInstanceUnitService.java:199)
at com.webratio.units.module.rtx.ModuleInstanceUnitService.getUnitBean(ModuleInstanceUnitService.java:153)
at com.webratio.units.module.rtx.ModuleInstanceUnitService.execute(ModuleInstanceUnitService.java:136)
at com.webratio.rtx.jobs.WRJobExecutor._executeJob(WRJobExecutor.java:204)
at com.webratio.rtx.jobs.WRJobExecutor.doExecuteJob(WRJobExecutor.java:129)
at com.webratio.rtx.jobs.WRJobExecutor.executeJobNewThread(WRJobExecutor.java:82)
at com.webratio.rtx.jobs.QuartzJob.execute(QuartzJob.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at com.webratio.rtx.ws.SoapMessageDispatcher.dispatch(SoapMessageDispatcher.java:186)
... 12 more

What could be the reason of this error?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 8

Hi Laura,

usually "Connection Reset" indicates that your Web application cannot communicate with the host containing the web service.
The reason can be a malformed URL but in your case, since the invokation stopped working suddenly, I suppose that the URL of the web service has been changed.
You can analyze deeply the problem by setting the log level to TRACE. Watch this lesson to learn more about the lof configuration: https://my.webratio.com/learn/learningobject/analyze-error-logs-v-72
In this way you can see which is the request sent by the Soap Request Response and which is the eventual response given by the web service.
Another way to test whether the web service is reachable or not is to try the request using an external tool suych as Soap UI (https://www.soapui.org)

   
x 0
Forum Expert - Level 5

Hello


I think it's a connection problem. Check to see if the service you are calling for is available or if its structure has changed. Well, you say it was working before.

You can go to the web service provider, right click "Refesh XML Definitions."

Best regards

 
x 0
Answer at this question and get points!