This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Web Services and the fly likes WebServices-Apache Axis2-Rampart - Read Time out exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WebServices-Apache Axis2-Rampart - Read Time out exception." Watch "WebServices-Apache Axis2-Rampart - Read Time out exception." New topic

WebServices-Apache Axis2-Rampart - Read Time out exception.

UdayK Kumar

Joined: Aug 05, 2009
Posts: 26

Hi friends,

I am using axis2 1.4.1 and rampart 1.4 for web service security. For authentication I am using handlers. when I place database connection code in handler method I got the below exception. If I didn't put database connection it works fine.

Exception I am getting is:

[java] id = bob
[java] Exception in thread "main" org.apache.axis2.AxisFault: Read timed out
[java] at org.apache.axis2.AxisFault.makeFault(
[java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
[java] at org.apache.axis2.transport.http.HTTPSender.send(
[java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommon
[java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTran
[java] at org.apache.axis2.engine.AxisEngine.send(
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.jav
[java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperat
[java] at org.apache.axis2.client.OperationClient.execute(
[java] at org.apache.axis2.client.ServiceClient.sendReceive(
[java] at org.apache.axis2.client.ServiceClient.sendReceive(
[java] at Source)
[java] Caused by: Read timed out
[java] at Method)
[java] at
[java] at
[java] at
[java] at org.apache.commons.httpclient.HttpParser.readRawLine(
[java] at org.apache.commons.httpclient.HttpParser.readLine(
[java] at org.apache.commons.httpclient.HttpConnection.readLine(
[java] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAd
[java] at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(
[java] at org.apache.commons.httpclient.HttpMethodBase.readResponse(
[java] at org.apache.commons.httpclient.HttpMethodBase.execute(
[java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirec
[java] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector
[java] at org.apache.commons.httpclient.HttpClient.executeMethod(
[java] at org.apache.commons.httpclient.HttpClient.executeMethod(
[java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSend
[java] at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
[java] ... 10 more
[java] Java Result: 1

Please help me to resolve the above error.

UdayK Kumar

Joined: Aug 05, 2009
Posts: 26

I have resolved the Read time out problem.

unfortunately I have mentioned wrong port number in hte URL.


insted 8080, i have given 8081. Thats Y I got the above error
I agree. Here's the link:
subject: WebServices-Apache Axis2-Rampart - Read Time out exception.