AnsweredAssumed Answered

How to increase the timeout connection with webservice?

Question asked by frama on Mar 11, 2008
Hello, I am doing a Java application that connects with Alfresco through webservice. The problem is that the connection with Alfresto performed by a VPN and takes a long time to answer, giving a timeout. How can I increase the timeout?

This is the mistake that gives:

2008-03-11 11:51:05,882 ERROR [org.apache.axis.Message] - java.io.IOException:
java.net.SocketException: Software caused connection abort: socket write error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
   at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
   at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:263)
   at org.apache.axis.Message.writeTo(Message.java:539)
   at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
   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.content.ContentServiceSoapBindingStub.write(ContentServiceSoapBindingStub.java:467)
   at es.juntadeandalucia.cultura.mosaico.infraestructura.corporativos.repositorio.alfresco.WsAlfrescoImpl.escribirEnContentService(WsAlfrescoImpl.java:791)
   at es.juntadeandalucia.cultura.mosaico.infraestructura.corporativos.repositorio.alfresco.WsAlfrescoImpl.crearFichero(WsAlfrescoImpl.java:511)
   at es.juntadeandalucia.cultura.mosaico.infraestructura.corporativos.repositorio.ServicioDeRepositorioAlfrescoImpl.crearFichero(ServicioDeRepositorioAlfrescoImpl.java:240)
   at es.juntadeandalucia.cultura.mosaico.iuweb.backing.jspx.gdg.GdgPopupSubidaDocumentos.btnAdjuntar_action(GdgPopupSubidaDocumentos.java:270)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
   at es.juntadeandalucia.cultura.mosaico.infraestructura.tags.UIAction.broadcast(UIAction.java:143)
   at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
   at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
   at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
   at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
   at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
   at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:171)
   at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
   at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
   at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
   at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
   at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
   at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
   at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
   at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
   at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
   at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
   at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
   at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
   at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
   at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
   at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
   at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
   at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
   at java.lang.Thread.run(Thread.java:595)

Thanks

Outcomes