[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-users
Subject: Re: [jibx-users] (help me) java.net.SocketTimeoutException: Read
From: Dennis Sosnoski <dms () sosnoski ! com>
Date: 2009-07-26 0:25:37
Message-ID: 4A6BA281.7000907 () sosnoski ! com
[Download RAW message or body]
There can be at least a couple of causes for a read timeout, including
the server just taking too long to respond (if it's doing a lot of
computation or lookups), the response being too long for a slow-speed
connection, or the endpoint being blocked. If it's a matter of the
server taking too long you can set the client timeout to a longer value
to correct the problem - use ServiceClient client =
stub._getServiceClient() to get the ServiceClient (where 'stub' is the
instance of your service stub, with the methods you use to call the
service), then set the timeout using
client.getOptions().setTimeOutInMilliSeconds(ms)
- Dennis
regist wrote:
> I have implemented a web service with jibx, that implements a marketplace.
> When I effect a query that it interests different resources I get the
> following exception:
>
> INFO Thread-24 org.apache.axis2.transport.http.HTTPSender - Unable to
> sendViaPost to
> url[http://192.168.0.20:8080/clickworld2/services/MatchmakerServer]
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:129)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> 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.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
> 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:346)
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at
> it.unibas.clickworld2.commons.modello.matchmaking.jibx.client.MatchmakerServerStub.eseguiMatchmaking(MatchmakerServerStub.java:343)
> at
> it.unibas.clickworld2.services.matchmaker.client.ClientMatchmakingService.creaRisultatoMatchJibx(ClientMatchmakingService.java:87)
> at
> it.unibas.clickworld2.services.matchmaker.client.ClientMatchmakingService.run(ClientMatchmakingService.java:54)
> ERROR Thread-24
> it.unibas.clickworld2.services.matchmaker.client.ClientMatchmakingService -
>
> *** Eccezione in Thread (ricerca Jibx)39 dest:
> http://192.168.0.20:8080/clickworld2
> org.apache.axis2.AxisFault: Read timed out.
>
>
>
>
------------------------------------------------------------------------------
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic