unwinding the stack org.apache.jasper.runtime.PageContextImpl private void _initialize(Servlet servlet, ServletRequest request, 127 ServletResponse response, String errorPageURL, 128 boolean needsSession, int bufferSize, boolean autoFlush) 129 throws IOException { ....... 143 if (request instanceof HttpServletRequest && needsSession) 144 this.session = ((HttpServletRequest) request).getSession(); 145 if (needsSession && session == null) 146 throw new IllegalStateException( 147 "Page needs a session and none is available"); which is called by org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext 89 private PageContext internalGetPageContext(Servlet servlet, ServletRequest request, 90 ServletResponse response, String errorPageURL, boolean needsSession, 91 int bufferSize, boolean autoflush) { 92 try { 93 PageContext pc; 94 if (USE_POOL) { 95 PageContextPool pool = localPool.get(); 96 if (pool == null) { 97 pool = new PageContextPool(); 98 localPool.set(pool); 99 } 100 pc = pool.get(); 101 if (pc == null) { 102 pc = new PageContextImpl(); 103 } 104 } else { 105 pc = new PageContextImpl(); 106 } 107 pc.initialize(servlet, request, response, errorPageURL, 108 needsSession, bufferSize, autoflush); internalGetPageContext is referenced in the run method as shown 148 public Object run() { 149 return factory.internalGetPageContext(servlet, request, response, 150 errorPageURL, needsSession, bufferSize, autoflush); 151 } but none of this *should happen if the jsp execution did'nt double submit* relevant bits of your jsp code located at
> at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Unknown > Source) > at > org.apache.jsp.jsp.Alarma_Detalle_jsp._jspService(Alarma_Detalle_jsp.java:37) //Why is this code (re)referencing getPageContext > at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.apache.jasper.servlet.JspServletWrapper.service(Unknown > Source) > at org.apache.catalina.core.ApplicationDispatcher.include(Unknown > Source) > at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown > Source) > at > org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) please display entire contents of $CATALINA_HOME/work/Catalina/localhost/WebAppName/org/apache/jsp/jsp/Alrama_Detallet_Service.jsp Alarma_Detalle_jsp.java Saludos Cordiales desde EEUU! Martin Gainty GMT+5(esta semana) ______________________________________________ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 29 May 2009 12:35:14 +0200 > Subject: Apache Tomcat hangs > From: rhernan...@evendor.es > To: users@tomcat.apache.org > > Hello > > I am using apache Tomcat 5.5 which is set up on a hp-ux machine. > my application uses jaspert-reports > At times during we use jaspert-rerpot for generate to a pdf, get an error > as shown below, and this causes the servers hangs and can not log on the > tomcat console and application . > After restart of the server then the tomcat runs fine. > Can anybody please tell me why does this happen? > > Many thanks in advance, > > Raquel > > > This is my error : > > INFO: Server startup in 3207 ms > May 29, 2009 9:27:53 AM org.apache.jasper.runtime.JspFactoryImpl > internalGetPageContext > SEVERE: Exception initializing page context > java.lang.IllegalStateException: Cannot create a session after the > response has been committed > at org.apache.catalina.connector.Request.doGetSession(Unknown Source) > at org.apache.catalina.connector.Request.getSession(Unknown Source) > at org.apache.catalina.connector.RequestFacade.getSession(Unknown > Source) > at > javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216) > at > org.apache.catalina.core.ApplicationHttpRequest.getSession(Unknown > Source) > at > org.apache.catalina.core.ApplicationHttpRequest.getSession(Unknown > Source) > at org.apache.jasper.runtime.PageContextImpl._initialize(Unknown > Source) > at org.apache.jasper.runtime.PageContextImpl.initialize(Unknown > Source) > at > org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(Unknown > Source) > at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Unknown > Source) > at > org.apache.jsp.jsp.Alarma_Detalle_jsp._jspService(Alarma_Detalle_jsp.java:37) > at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.apache.jasper.servlet.JspServletWrapper.service(Unknown > Source) > at org.apache.catalina.core.ApplicationDispatcher.include(Unknown > Source) > at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown > Source) > at > org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) > at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.apache.jasper.servlet.JspServletWrapper.service(Unknown > Source) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown > Source) > at org.apache.jasper.servlet.JspServlet.service(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown > Source) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown > Source) > at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown > Source) > at org.apache.catalina.core.StandardContextValve.invoke(Unknown > Source) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown > Source) > at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) > at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) > at org.apache.catalina.core.StandardEngineValve.invoke(Unknown > Source) > at org.apache.catalina.connector.CoyoteAdapter.service(Unknown > Source) > at org.apache.coyote.http11.Http11Processor.process(Unknown Source) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Unknown > Source) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Unknown > Source) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Unknown > Source) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown > Source) > at java.lang.Thread.run(Thread.java:595) > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > _________________________________________________________________ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009