cancel
Showing results for 
Search instead for 
Did you mean: 

java.net.SocketTimeoutException: Read timed out

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi All

I am getting following error –

Error :

2009-01-23 11:13:02,221 INFO  [STDOUT] ** searchRootNode() method
2009-01-23 11:14:02,744 INFO  [STDOUT]  ** Node doesn't exist
2009-01-23 11:14:02,744 ERROR [STDERR] AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace: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:235)
   at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.get(RepositoryServiceSoapBindingStub.java:1078)
   at org.alfresco.sample.webservice.NEBSearch.searchRootNode(Unknown Source)
   at org.alfresco.sample.webservice.NEBSearch.searchAndDownload(Unknown Source)
   at org.apache.struts.webapp.download.DownloadAction.execute(DownloadAction.java:91)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)

   {http://xml.apache.org/axis/}hostname:IND-184178
2009-01-23 11:14:02,744 ERROR [STDERR] java.net.SocketTimeoutException: Read timed out
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.Call.invoke(Call.java:2767)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.Call.invoke(Call.java:2443)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.Call.invoke(Call.java:2366)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.client.Call.invoke(Call.java:1812)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.get(RepositoryServiceSoapBindingStub.java:1078)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.alfresco.sample.webservice.NEBSearch.searchRootNode(Unknown Source)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.alfresco.sample.webservice.NEBSearch.searchAndDownload(Unknown Source)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.struts.webapp.download.DownloadAction.execute(DownloadAction.java:91)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
2009-01-23 11:14:02,744 ERROR [STDERR]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
2009-01-23 11:14:02,744 ERROR [STDERR]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2009-01-23 11:14:02,744 ERROR [STDERR]    at java.lang.Thread.run(Thread.java:595)
2009-01-23 11:14:02,744 ERROR [STDERR] Caused by: java.net.SocketTimeoutException: Read timed out
2009-01-23 11:14:02,744 ERROR [STDERR]    at java.net.SocketInputStream.socketRead0(Native Method)
2009-01-23 11:14:02,744 ERROR [STDERR]    at java.net.SocketInputStream.read(SocketInputStream.java:129)
2009-01-23 11:14:02,744 ERROR [STDERR]    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
2009-01-23 11:14:02,744 ERROR [STDERR]    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
2009-01-23 11:14:02,744 ERROR [STDERR]    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
2009-01-23 11:14:02,744 ERROR [STDERR]    … 38 more

Regards
Nishant
3 REPLIES 3

lbm
Champ in-the-making
Champ in-the-making
I'm having the same problem.
Does anybody know the reason of this error? How can I solve it?

Thank you.

openpj
Elite Collaborator
Elite Collaborator
I think that you have some problems with your network, or you are not addressing correctly your Alfresco Web Service Client.
So you can override the Alfresco Web Service Client endpoint address, adding the following instructions before start your business operations in the following way:

String alfrescoEndpointAddress = "http://localhost:8080/alfresco/api";
String username = "admin";
String password = "admin";
WebServiceFactory.setEndpointAddress(alfrescoEndpointAddress);
AuthenticationUtils.startSession(username, password);
try{
….
}
finally{
AuthenticationUtils.endSession();

}
Hope this helps.

rebotilen
Champ in-the-making
Champ in-the-making
I think that you have some problems with your network, or you are not addressing correctly your Alfresco Web Service Client.
So you can override the Alfresco Web Service Client endpoint address, adding the following instructions before start your business operations in the following way:

String alfrescoEndpointAddress = "http://localhost:8080/alfresco/api";
String username = "admin";
String password = "admin";
WebServiceFactory.setEndpointAddress(alfrescoEndpointAddress);
AuthenticationUtils.startSession(username, password);
try{
….
}
finally{
AuthenticationUtils.endSession();

}
Hope this helps.


Hi guys,

I'm new on Alfresco. I'm also getting the same problem. Where can i add this code?