Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting SocketTimeoutException while testing my WS  RSS feed

 
Gurvinder Singh
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I downloaded soap-ui pro 2.5.1 and tried to test my requests for my webservice.
It works fine for small files. But when i try to test large files say 2MB, i am not able to get the response.
Instead i see the following error in the soap ui logs.
After debugging in eclipse i saw that the my service class is executing the request properly and the "OK" response is also getting generated,
but somehow it is not able to reach the soap-ui.

Can someone explain to me how to resolve this?

14:17:14,183 DEBUG [SoapUIMultiThreadedHttpConnectionManager] Notifying no-one,
there are no waiting threads
java.lang.NullPointerException
at org.apache.commons.httpclient.HttpMethodBase.getStatusCode(HttpMethod
Base.java:570)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.
<init>(BaseHttpResponse.java:71)
at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpRes
ponse.<init>(SinglePartHttpResponse.java:40)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachmen
ts.WsdlSinglePartHttpResponse.<init>(WsdlSinglePartHttpResponse.java:35)
at com.eviware.soapui.impl.wsdl.submit.filters.WsdlPackagingResponseFilt
er.afterWsdlRequest(WsdlPackagingResponseFilter.java:45)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.aft
erAbstractHttpResponse(AbstractRequestFilter.java:62)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.aft
erRequest(AbstractRequestFilter.java:56)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequest
Transport.sendRequest(HttpClientRequestTransport.java:164)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.
initHeaders(BaseHttpResponse.java:90)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.
<init>(BaseHttpResponse.java:81)
at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpRes
ponse.<init>(SinglePartHttpResponse.java:40)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachmen
ts.WsdlSinglePartHttpResponse.<init>(WsdlSinglePartHttpResponse.java:35)
at com.eviware.soapui.impl.wsdl.submit.filters.WsdlPackagingResponseFilt
er.afterWsdlRequest(WsdlPackagingResponseFilter.java:45)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.aft
erAbstractHttpResponse(AbstractRequestFilter.java:62)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.aft
erRequest(AbstractRequestFilter.java:56)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequest
Transport.sendRequest(HttpClientRequestTransport.java:164)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
14:17:14,191 ERROR [WsdlSubmit] Exception in request: java.lang.Exception: java.
net.SocketTimeoutException: Read timed out
14:17:14,191 ERROR [SoapUI] An error occured [java.net.SocketTimeoutException: R
ead timed out], see error log for details
14:17:14,198 INFO [AbstractHttpRequestDesktopPanel] Error getting response for
[InventoryServiceSEIBinding.inventoryService:Request 1]; java.lang.Exception: ja
va.net.SocketTimeoutException: Read timed out
 
Lanny Gilbert
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably because the socket timeout value is not set high enough on your SoapUI. Try setting it to 25000 (this of course is for a dev environment, would want to
play around with it to get it to a usable size) and see if that doesn't solve your problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!