aspose file tools*
The moose likes Web Services and the fly likes Hiding stacktrace for java net SocketTimeoutException Read timed out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Hiding stacktrace for java net SocketTimeoutException Read timed out" Watch "Hiding stacktrace for java net SocketTimeoutException Read timed out" New topic
Author

Hiding stacktrace for java net SocketTimeoutException Read timed out

sri Ginjupalli
Greenhorn

Joined: Jun 22, 2007
Posts: 11
Hi all,

We have a IBM web service call made from our web application in run time,as the call is happening in run time we have setted time out for 3 seconds, everything is working fine till now, but once we get a time out it is printing full stack trace even though we are not printing the trace, I am sure that it is happenning inside the IBM WebServices jar, we are able to catch the Exception successfully but I think before throwing the exception the stacktrace is printed from inside webservices.jar

Is there any way we can hide the stacktrace as our log file is becoming huge because of these exceptions?

the application is running on WAS 5.1 with jdk 1.3

Below is the stacktrace which I need to hide

[12/12/08 5:36:31:783 EST] 3c8bad94 enterprise I com.ibm.ws.webservices.engine.enterprise TRAS0014I: The following exception was logged WebServicesFault
faultCode: Server.generalException
faultString: java.net.SocketTimeoutException: Read timed out
faultActor: null
faultDetail:

java.net.SocketTimeoutException: Read timed out
at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:161)
at com.ibm.ws.webservices.engine.transport.http.HTTP11Sender.invoke(HTTP11Sender.java(Compiled Code))
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java(Compiled Code))
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java(Compiled Code))
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java(Compiled Code))
at com.transportation.TransportationWebServiceSoapBindingStub.getQuotes(TransportationWebServiceSoapBindingStub.java(Compiled Code))
at com.db2.model.service.TransWebServiceHelper.getQuoteResponseArray(TransWebServiceHelper.java(Compiled Code))
at org.apache.jsp._vehicleDetails._jspService(_vehicleDetails.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.db2.servlets.VehicleDetailServlet.doPost(VehicleDetailServlet.java(Compiled Code))
at com.db2.servlets.VehicleDetailServlet.doGet(VehicleDetailServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled Code))
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
at java.io.FilterInputStream.read(FilterInputStream.java(Compiled Code))
at java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled Code))
at java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled Code))
at com.ibm.ws.webservices.engine.transport.http.HTTP11Sender.readHeadersFromSocket(HTTP11Sender.java(Compiled Code))
... 52 more
.
WebServicesFault
faultCode: Server.generalException
faultString: java.net.SocketTimeoutException: Read timed out
faultActor: null
faultDetail:

java.net.SocketTimeoutException: Read timed out
at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:161)
at com.ibm.ws.webservices.engine.transport.http.HTTP11Sender.invoke(HTTP11Sender.java(Compiled Code))
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java(Compiled Code))
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java(Compiled Code))
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java(Compiled Code))
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java(Compiled Code))
at com.transportation.TransportationWebServiceSoapBindingStub.getQuotes(TransportationWebServiceSoapBindingStub.java(Compiled Code))
at com.db2.model.service.TransWebServiceHelper.getQuoteResponseArray(TransWebServiceHelper.java(Compiled Code))
at org.apache.jsp._vehicleDetails._jspService(_vehicleDetails.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.db2.servlets.VehicleDetailServlet.doPost(VehicleDetailServlet.java(Compiled Code))
at com.db2.servlets.VehicleDetailServlet.doGet(VehicleDetailServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled Code))
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
at java.io.FilterInputStream.read(FilterInputStream.java(Compiled Code))
at java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled Code))
at java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled Code))
at com.ibm.ws.webservices.engine.transport.http.HTTP11Sender.readHeadersFromSocket(HTTP11Sender.java(Compiled Code))
... 52 more


Thanks

Srikanth Ginjupalli

SCJP 1.6, SCWCD 5
sri Ginjupalli
Greenhorn

Joined: Jun 22, 2007
Posts: 11
Can some one please reply to my post, I will be glad to provide more information if required
sri Ginjupalli
Greenhorn

Joined: Jun 22, 2007
Posts: 11
we are using log4j, can we configure log4j so that it will not print the printstacktrace() which is being printed by the some ibm jar which is not open source
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18167
    
    8

Well, if log4j is actually printing that log to your log files then yes, you should be able to configure it to not do that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding stacktrace for java net SocketTimeoutException Read timed out
 
Similar Threads
Exception during call to .Net web service from WSAD over HTTPS
Exception during call to .Net web service from WSAD over HTTPS
Struts to Portlet fails
WebServicesFault - java.net.ConnectException
Expected 'envelope' but found html