users@glassfish.java.net

PWC3999: Cannot create a session after the response has been committed at

From: <forums_at_java.net>
Date: Mon, 10 Oct 2011 21:50:48 -0500 (CDT)

Hi,

    Can anyone tell me how to solve this problem in my production
glassfish server? Below is the log generated in glassfish server, tks.

 

Timestamp Oct 11, 2011 01:15:21.662 Log Level SEVERE Logger
org.apache.jasper.runtime.JspFactoryImpl Name-Value Pairs
_ThreadID=90;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=5ee946a1-91f6-4540-93fe-69c924ca98dd;
Record Number 5254 Message ID Exception initializing page context
java.lang.IllegalStateException Complete Message PWC3999: Cannot create a
session after the response has been committed at
org.apache.coyote.tomcat5.CoyoteRequest.doGetSession(CoyoteRequest.java:2881)
at
org.apache.coyote.tomcat5.CoyoteRequest.getSession(CoyoteRequest.java:2622)
at
org.apache.coyote.tomcat5.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:912)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:256)
at
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:648)
at
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:562)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:196)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:172)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:162)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:110)
at org.apache.jsp.errorpage_jsp._jspService(errorpage_jsp.java:38) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:687)
at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:900)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:871)
at
org.apache.jsp.soc_005fh_005fou_jsp._jspService(soc_005fh_005fou_jsp.java:2757)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
 
This happened when i need to use a jsp page (soc_h_ou.jsp) to retrieve data
from database, the weird thing is previously i didnt encounter any exception
like this when there are 60 records, but after records being increased to
110, then i encountered this exception. Do i need to set buffer size in
glassfish or whatever? Tks in advance.

 


--
[Message sent by forum member 'marcalenachai']
View Post: http://forums.java.net/node/851888