java.lang.IllegalStateException: Cannot create a session after the response has been committed

JBoss Issue Tracker | Andre Winkler | 3 years ago
  1. 0

    [WELD-1607] Unable to load current conversations from the associated request on Tomcat - JBoss Issue Tracker

    jboss.org | 11 months ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  2. 0

    [WELD-1607] Unable to load current conversations from the associated request on Tomcat - JBoss Issue Tracker

    jboss.org | 1 year ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  3. 0

    Container: apache-tomcat-7.0.47 Weld version: 2.1.2 Weld is started over the web.xml with the listener: org.jboss.weld.environment.servlet.Listener We deployed a WAR file with a PrimeFaces user interface and made many many automatic gui tests. After updating to this weld version and switching to the tomcat 7 we get this exception after a random time... The exception occurs in differnt tests on different times, it is not possible to describe the bug to reproduce it... After the exception occurs, the web app is no more useable or have undesirable side effects java.lang.IllegalStateException: WELD-000341: Unable to load current conversations from the associated request, something went badly wrong when associate() was called at org.jboss.weld.context.AbstractConversationContext.getCurrentConversation(AbstractConversationContext.java:434) at org.jboss.weld.servlet.ConversationContextActivator.deactivateConversationContext(ConversationContextActivator.java:145) at org.jboss.weld.servlet.HttpContextLifecycle.requestDestroyed(HttpContextLifecycle.java:217) at org.jboss.weld.servlet.WeldInitialListener.requestDestroyed(WeldInitialListener.java:136) at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:38) at org.apache.catalina.core.StandardContext.fireRequestDestroyEvent(StandardContext.java:6137) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    JBoss Issue Tracker | 3 years ago | Andre Winkler
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error : Cannot create a session after the response has been committed in liferay 6.2 - Find Nerd

    findnerd.com | 9 months ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  6. 0

    Grails User (Old Archive) - Cannot create a session after the response has been committed

    nabble.com | 11 months ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed

  1. Shadd518 1 times, last 4 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Cannot create a session after the response has been committed

    at org.apache.catalina.connector.Request.doGetSession()
  2. Glassfish Core
    RequestFacade.getSession
    1. org.apache.catalina.connector.Request.doGetSession(Request.java:2886)
    2. org.apache.catalina.connector.Request.getSession(Request.java:2316)
    3. org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
    3 frames
  3. Wicket Core
    PageStoreManager$PersistentRequestAdapter.storeTouchedPages
    1. org.apache.wicket.session.HttpSessionStore.getHttpSession(HttpSessionStore.java:95)
    2. org.apache.wicket.session.HttpSessionStore.getSessionId(HttpSessionStore.java:166)
    3. org.apache.wicket.Session.bind(Session.java:265)
    4. org.apache.wicket.page.DefaultPageManagerContext.bind(DefaultPageManagerContext.java:43)
    5. org.apache.wicket.page.RequestAdapter.bind(RequestAdapter.java:78)
    6. org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSessionEntry(PageStoreManager.java:379)
    7. org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:407)
    7 frames
  4. nl.topicus.cobra
    DecoratablePageManager$DecoratableRequestAdapter.storeTouchedPages
    1. nl.topicus.cobra.app.DecoratablePageManager$DecoratableRequestAdapter.storeTouchedPages(DecoratablePageManager.java:46)
    1 frame
  5. Wicket Core
    RequestCycleListenerCollection$3.notify
    1. org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181)
    2. org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98)
    3. org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:73)
    4. org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:258)
    5. org.apache.wicket.Application$2.onDetach(Application.java:1640)
    6. org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105)
    7. org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101)
    7 frames
  6. Wicket Util
    ListenerCollection.reversedNotifyIgnoringExceptions
    1. org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120)
    2. org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:144)
    3. org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
    3 frames
  7. Wicket Core
    WicketFilter.doFilter
    1. org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:100)
    2. org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:640)
    3. org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:589)
    4. org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
    5. org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
    6. org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
    7. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
    7 frames
  8. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  9. nl.topicus.cobra
    CloseTransactionAfterViewFilter.doFilterInternal
    1. nl.topicus.cobra.hibernate.CloseTransactionAfterViewFilter.doFilterInternal(CloseTransactionAfterViewFilter.java:66)
    1 frame
  10. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
    1 frame
  11. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    10 frames
  12. org.apache.coyote
    AjpProcessor.process
    1. org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
    1 frame
  13. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    2. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    2 frames
  14. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:744)
    3 frames