Author Message
KartikRuppa3
Joined: Feb 20, 2014
Messages: 10
Offline
Hi,
For some reason the timeout set in the wsop does not seem to take effect.It always waits for 7 sec irrespective of the timeout set.Is there a location where the default timeout is set for Axis ?


For example in the logs below , wsop has a 5 sec timeout but looking at the timestamp, there seems to be wait of 7 seconds.

02/08/2013 22:14:53:384 DEBUG - 2A3E2B589398B1F6631A3181841BDD35:/Strayer : Calling Web Service [ivrService] at [http://simsws.bbss.inc/sims/ws/ivrAPI] operation [getSSNDobByUserId]
02/08/2013 22:14:53:385 DEBUG - 2A3E2B589398B1F6631A3181841BDD35:/Strayer : Setting web service timeout to 5 seconds
02/08/2013 22:15:00:415 INFO - 2A3E2B589398B1F6631A3181841BDD35:/Strayer : Capturing exception [java.lang.reflect.InvocationTargetException]. Message [null]
02/08/2013 22:15:00:415 DEBUG - 2A3E2B589398B1F6631A3181841BDD35:/Strayer : session id:KTXMPP2-2013215021542-11 | Strayer:FindId_WS | Exception
02/08/2013 22:15:00:416 INFO - 2A3E2B589398B1F6631A3181841BDD35:/Strayer : Using SCESession 2A3E2B589398B1F6631A3181841BDD35:/Strayer servlet : Sorry


What could be reason for the wsop timeout not taking effect ?

Thanks,
Kartik
MichaelGruzman
Joined: Nov 11, 2013
Messages: 14
Offline
I see in your log axis client stub timeout been set for 5 sec, printing is not a best way to check actual time. In your log I see target invocation Exception - work on this
KartikRuppa3
Joined: Feb 20, 2014
Messages: 10
Offline
Even if I set the wsop timeout to 15 secs, the exception occurs as though the timeout was set 7 seconds.
SamareshKowshik
Joined: Nov 6, 2013
Messages: 351
Offline
The timeout value is only for establishing a connection to the web service endpoint. It doesn't mean that the connection will be forcibly broken after 5 seconds. If at the 5 second mark the connector is told that the connection was successful and to wait for a response, that's what will happen, because there was a successful connection.

As Michael posted, you are getting an InvocationTarget exception, which needs to be addressed. It's not a very specific exception, unfortunately, but much of the time it means there are multiple JAR files on the classpath and Axis is getting confused. Could you paste a full trace with all options in ddrt.properties enabled? Also, make sure your classpath doesn't have duplicate entries for the same JAR.
KartikRuppa3
Joined: Feb 20, 2014
Messages: 10
Offline
Here's the stack trace..

03/08/2013 12:43:50:373 INFO - BF60AF634B4F78508EB188D49A1C5261:/Strayer : Capturing exception [java.lang.reflect.InvocationTargetException]. Message [null]
03/08/2013 12:43:50:373 DEBUG - BF60AF634B4F78508EB188D49A1C5261:/Strayer : session id:KTXMPP2-2013215164329-17 | Strayer:ResetPW_WS | Exception2
03/08/2013 12:43:50:373 DEBUG - BF60AF634B4F78508EB188D49A1C5261:/Strayer : session id:KTXMPP2-2013215164329-17 | Strayer:ResetPW_WS | | ddLastException:stacktrace : java.lang.reflect.InvocationTargetException
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:597)
at com.avaya.sce.runtime.connectivity.ws.CallService.execute(CallService.java:426)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:165)
at flow.ResetPW_WS.executeDataActions(ResetPW_WS.java:122)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:81)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1272)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:128)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1272)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:185)
at flow.MatchDOB.executeDataActions(MatchDOB.java:64)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:81)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1272)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:185)
at flow.ProcessDateAndNomatch.executeDataActions(ProcessDateAndNomatch.java:144)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:81)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1272)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:128)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketTimeoutException: connect timed out
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
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 connectivity.ws.beans2.IvrInterfaceBindingStub.resetPassword(IvrInterfaceBindingStub.java:1128)
... 82 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
SamareshKowshik
Joined: Nov 6, 2013
Messages: 351
Offline
There is a connection timeout that's occurring, which seems to be the cause of the Invocation exception. Are you using a proxy server? Also, do you have a fetch timeout set that is less than the web service timeout?

I am not able to reproduce any issues with timeout values on my end, but if you want to make sure the timeout works, I suggest setting it to 1 second in the WSOP. That way almost nothing else has time to execute and only the web service timeout is in effect.
Go to:   
Mobile view