• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 - read timeout error when attempting to consume webservice  RSS feed

 
Lawrence Gatson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to webservices and I'm getting a read timed out error (see stacktrace below). I'm stumped, if someone can please assist me!!


Here's my configuration:
Using Eclipse IDE
Downloaded and installed Axis2
Running in Axis2 as a stand alone server (i.e. I'm not using Tomcat)
Used the WSDL2Java utility to generate client stubs
Java 1.6_27 (I did import my certificate in the Java cacerts file using the java keytool utility)


Here's my Main test driver:





The stacktrace:

Mar 19, 2014 11:09:31 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
INFO: Unable to sendViaPost to url[https://tstpatlookup.thechildrenshospital.org/Interconnect-PatLookup/Wcf/Epic.EMPI.GeneratedSErvices/Patient.svc]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:755)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
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.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.tempuri.PatientStub.patientLookup(PatientStub.java:781)
at org.tempuri.WebServiceMain.doLookup(WebServiceMain.java:49)
at org.tempuri.WebServiceMain.buildHeader(WebServiceMain.java:30)
at org.tempuri.WebServiceMain.main(WebServiceMain.java:77)


Thanks,
llg

 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lawrence,

Welcome to Web Services !

Download SoapUI and use it to prove your server-side. Turn on logging for both server-side and client-side.

Using SoapUI, how long does it take to get back an answer from your server ?

Roger


P. S. Please edit your post and use [Co de] tags.

 
Lawrence Gatson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thanks for the reply.

I downloaded SoapUI, unfortunately I'm getting a "BadContextToken" returned in the response from the server.

The error log on the client is empty and the SoapUI log just amplifies the soap message.

I couldn't figure out how to configure SoapUI to capture/view server logs (I submitted a request to get a copy of the server logs).

I'm not sure that I configured the request properties correctly (I've tried different combinations of them all):

Properties:
Authentication Type (preemptive, ntlm, ...)
WSS-Password Type (Password Text, Password Digest, None)
The request must contain an encrypted username/password


Any suggestions?

Thanks,
llg

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!