Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Cannot create a session after the response has been committed: struts o

Cannot create a session after the response has been committed: struts o

2007-01-29       - By Dariusz Wojtas

 Back
Reply:     1     2     3     4  

I usually get IllegalStateException exceptions with Struts2
if there was an unexpected exception in my code, ie. from Hibernate.
I can see Hibernate in your stack, are you sure this is not the reason
of your problems?
Is this the full stacktrace?

Dariusz Wojtas

On 1/29/07, bob <tomfrost@(protected)> wrote:
>
>
> I'm getting the following error with every request.  I can't figure out what
it means.  I've looked around and tried to read the request myself, but I'm
just starting to learn Struts2 so its not the meaningful to me yet. I don't
even know whether this is a tomcat problem or a struts2 problem.
>
> Note:   Even though the first line says could not execute action, the actions
do usually execute . . . where's this error message coming from?
>
> It anyone can give me some insight, I'd certainly appreciate it.
>
> Thanks,
> Bob
>
> 04:17:13,333 ERROR Dispatcher:341 - Could not execute action
> java.lang.IllegalStateException Source code of java.lang.IllegalStateException: Cannot create a session after the response
has been committed
>         at org.apache.catalina.connector.Request Source code of org.apache.catalina.connector.Request(Request.java
:2214)
>         at org.apache.catalina.connector.Request Source code of org.apache.catalina.connector.Request(Request.java:2024)
>         at org.apache.catalina.connector.RequestFacade Source code of org.apache.catalina.connector.RequestFacade
(RequestFacade.java:831)
>         at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:172)
>         at org.apache.struts2.interceptor.debugging.DebuggingInterceptor
.intercept(DebuggingInterceptor.java:178)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
(ChainingInterceptor.java:115)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
(I18nInterceptor.java:143)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at com.opensymphony.xwork2.interceptor.PrepareInterceptor.intercept
(PrepareInterceptor.java:115)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
(ServletConfigInterceptor.java:156)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
(AliasInterceptor.java:124)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
.intercept(ExceptionMappingInterceptor.java:180)
>         at com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:200)
>         at org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy
.java:27)
>         at org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy
.java:26)
>         at org.apache.struts2.impl.RequestContextImpl.callInContext
(RequestContextImpl.java:152)
>         at org.apache.struts2.impl.StrutsActionProxy.execute
(StrutsActionProxy.java:25)
>         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher
.java:330)
>         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter
(FilterDispatcher.java:256)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:173)
>         at com.blackdog.struts.filter.HibernateSessionRequestFilter.doFilter
(HibernateSessionRequestFilter.java:31)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve
(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve
(StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve
(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve
(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve
(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter Source code of org.apache.catalina.connector.CoyoteAdapter(CoyoteAdapter
.java:148)
>         at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor
.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol Source code of org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint Source code of org.apache.tomcat.util.net.PoolTcpEndpoint
(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread Source code of org.apache.tomcat.util.net.LeaderFollowerWorkerThread
(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
>         at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)
> 04:17:13,338 ERROR [default]:253 - Servlet.service() for servlet default
threw exception
> java.lang.IllegalStateException Source code of java.lang.IllegalStateException
>         at org.apache.catalina.connector.ResponseFacade Source code of org.apache.catalina.connector.ResponseFacade
(ResponseFacade.java:404)
>         at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java
:588)
>         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher
.java:342)
>         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter
(FilterDispatcher.java:256)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:173)
>         at com.blackdog.struts.filter.HibernateSessionRequestFilter.doFilter
(HibernateSessionRequestFilter.java:31)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve
(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve
(StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve
(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve
(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve
(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter Source code of org.apache.catalina.connector.CoyoteAdapter(CoyoteAdapter
.java:148)
>         at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor
.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol Source code of org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint Source code of org.apache.tomcat.util.net.PoolTcpEndpoint
(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread Source code of org.apache.tomcat.util.net.LeaderFollowerWorkerThread
(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
>         at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.