cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: Cannot create a session after the response has been committed
Date Fri, 25 Jul 2003 15:24:49 GMT
Looks like the problem is in GetSessionAttributes.xsp and probably means 
  you forgot to add the create-session=true attribute onto the xsp 
element.  (both the attribute name and the exact element name I just 
used are probably wrong - look them up in the docs/wiki).

However, since you are using cinclude you may also find that you do have 
that attribute set correctly but previous pipeline bits are being 
committed before you get to your xsp.  If that is the case, I don't 
quite remember how to fix this (besides rearranging your pipeline, or 
making sure a session exists before it's executed), though you should 
find some pointers in the archives of this list.

Send the first few lines of that file if you need more help than that.

By the way, this is probably not really system dependant.  I'd expect 
that on your test system you already had a session (is tomcat persisting 
sessions across startups?) and therefore didn't have the error condition.

Geoff Howard

Sternath Elmar wrote:
> Hello,
> 
> I use tomcat4.1.24, cocoon 2.0.4 and JDK1.3.1_07 on Win2000 test system and Solaris.
On Win2000 everything works fine, but on Solaris I get the following exception:
> 
> Original exception : java.lang.IllegalStateException: Cannot create a session after the
response has been committed at org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.java:1182)
at org.apache.catalina.connector.HttpRequestBase.getSession(HttpRequestBase.java:1142) at
org.apache.catalina.connector.HttpRequestFacade.getSession(HttpRequestFacade.java:208) at
org.apache.cocoon.environment.http.HttpRequest.getSession(HttpRequest.java:227) at org.apache.cocoon.environment.wrapper.RequestWrapper.getSession(RequestWrapper.java:312)
at org.apache.cocoon.www.file_.pvol1.icntest.wt0957.scworkflow.xsp.GetSessionAttributes_xsp.generate(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/file_/pvol1/icntest/wt0957/scworkflow/xsp/GetSessionAttributes_xsp.java:81)
at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)
at org.apache.cocoon.components.pipeline.Caching
Ev!
>  entPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:381)
at org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:172)
at org.apache.cocoon.transformation.CIncludeTransformer.startElement(CIncludeTransformer.java:125)
at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source) at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(Unknown
Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) at org.apache.xerces.impl.XMLDocumentFragmentScanne
rI!
>  mpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.!
>  DT!
> DConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source) at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:264) at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:215)
at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
at org.apache.cocoon.www.file_.pvol1.icntest.wt0957.scworkflow.sitemap_xmap.matchN10120(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/file_/pvol1/icntest/wt0957
/s!
>  cworkflow/sitemap_xmap.java:1856) at org.apache.cocoon.www.file_.pvol1.icntest.wt0957.scworkflow.sitemap_xmap.process(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/file_/pvol1/icntest/wt0957/scworkflow/sitemap_xmap.java:1106)
at org.apache.cocoon.www.file_.pvol1.icntest.wt0957.scworkflow.sitemap_xmap.process(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/file_/pvol1/icntest/wt0957/scworkflow/sitemap_xmap.java:1011)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308) at org.apache.cocoon.www.sitemap_xmap.matchN10366(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3942)
at org.apache.cocoon.www.sitemap_xmap.process(/
pv!
>  ol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/local!
>  ho!
> st/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3151) at org.apache.cocoon.www.sitemap_xmap.process(/pvol1/icntest/wt0957/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3097)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at
org.apache.catalina.core.StandardPipeline$StandardPipelin
eV!
>  alveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.i!
>  nvokeNext(StandardPipeline.java:641) at org.apache.catalina.va!
>  lv!
> es.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProc
es!
>  sor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:479) 
> 
> Any ideas??
> 
> 
> Mit freundlichen Grüßen/ Best regards
> Elmar Sternath
> 
> Siemens AG
> Information and Communication Networks
> ICN IT GA ST 2 - Web Applications
> Mch H/Me19 - 99801-231a
> 
> Meglinger Straße 19 (99801-231a) D-84577 München
> Tel.:   +49(89)722-24045
> Mobil: +49(0)160-5860351
> Fax.:  +49(89)722-53384
> EMail: Elmar.Sternath@siemens.com
> 
>  <<Sternath Elmar.vcf>> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message