Groups > IBM > WebSphere Studio Enterprise Developer > Websphere & Spring: 408 Connection timed out while reading request




Websphere & Spring: 408 Connection timed out while
reading request

Websphere & Spring: 408 Connection timed out while reading request
Tue, 10 Apr 2007 21:14:16 EDT
Hello experts:

I am using websphere 5.1 and Spring 2.0.3 to develop a simple login page.
However I got the following error message: 

Error 500: HTTP/1.1 408 Connection timed out while reading request Server:
WebSphere Application Server/5.1 Content-Type: text/html Content-Length: 142
Connection: close 
408 Connection timed out while reading request


This error message only occurres at the first one or two entry after the server
restarted. And the following retries will be no problem. I have also tried to
put the same codes on Tomcat, it doesn't have such problem. 

The exception thrown by the server is:


[4/10/07 16:52:08:068 SGT] 6c57e259 WebGroup E SRVE0026E: [Servlet Error]-[]:
java.lang.NullPointerException
at com.ibm.ws.http.HttpResponse.writeHeaders(HttpResp onse.java:262)
at com.ibm.ws.http.ResponseStream.writeHeaders(Respon seStream.java:238)
at com.ibm.ws.http.ResponseStream.flushBuffer(Respons eStream.java:207)
at com.ibm.ws.http.ResponseStream.flush(ResponseStrea m.java:301)
at com.ibm.ws.io.WriteStream.flush(WriteStream.java:1 39)
at com.ibm.ws.webcontainer.http.HttpConnection.flush( HttpConnection.java:379)
at com.ibm.ws.webcontainer.srp.SRPConnection.flush(SR PConnection.java:242)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.flush( SRTOutputStream.java:46)
at sun.nio.cs.StreamEncoder$ConverterSE.implFlush(Str eamEncoder.java:288)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java: 198)
at java.io.OutputStreamWriter.flush(OutputStreamWrite r.java:224)
at com.ibm.ws.webcontainer.srt.BufferedWriter.flushCh
ars(BufferedWriter.java:348)
at com.ibm.ws.webcontainer.srt.BufferedWriter.flush(B ufferedWriter.java:326)
at java.io.PrintWriter.flush(PrintWriter.java:130)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspW riterImpl.java:249)
at org.apache.jasper.runtime.PageContextImpl.release( PageContextImpl.java:197)
at org.apache.jasper.runtime.JspFactoryImpl.internalR
eleasePageContext(JspFactoryImpl.java:255)
at org.apache.jasper.runtime.JspFactoryImpl.releasePa
geContext(JspFactoryImpl.java:249)
at org.apache.jsp._loginfail._jspService(_loginfail.j ava:81)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.se
rvice(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$Jsp
ServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.ser
viceJspFile(JspServlet.java:669)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.ser vice(JspServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInsta
nce.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer
vlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.s
ervice(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer
vlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.se
rvice(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletRefere
nceState.dispatch(ValidServletReferenceState.java: 42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceRef
erence.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.forward(WebAppRequestDispatcher.java:200)
at org.springframework.web.servlet.view.InternalResou
rceView.renderMergedOutputModel(InternalResourceVi ew.java:142)
at org.springframework.web.servlet.view.AbstractView.
render(AbstractView.java:247)
at org.springframework.web.servlet.DispatcherServlet.
render(DispatcherServlet.java:1105)
at org.springframework.web.servlet.DispatcherServlet.
doDispatch(DispatcherServlet.java:841)
at org.springframework.web.servlet.DispatcherServlet.
doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.p
rocessRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.d
oPost(FrameworkServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInsta
nce.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer
vlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.s
ervice(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer
vlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.se
rvice(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletRefere
nceState.dispatch(ValidServletReferenceState.java: 42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceRef
erence.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.handleWebAppDispatch(WebAppRequestDispatcher. java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat
cher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn
vocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInv
ocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcesso
r.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDis
patcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handle
Request(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleReques
t(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:672)



Post Reply
about | contact