Hello all,
When I am going for processing order(anonymous checkout) for my customised ecommerce application, in the request chain it is getting failed after clearing the cart. Any pointer regarding this will be helpful. Console log is : Chain in place: requestUri=clearcartfororder nextView=null sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 2008-06-14 18:02:16,770 (http-0.0.0.0-8443-1) [ RequestHandler.java:243:INFO ] [Processing Request]: clearcartfororder sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 2008-06-14 18:02:16,772 (http-0.0.0.0-8443-1) [ CartEventListener.java:77 :INFO ] Saving abandoned cart 2008-06-14 18:02:16,910 (http-0.0.0.0-8443-1) [ControlEventListener.java:100:INFO ] Destroying session: 5BB3E02BBF28F98EF0306E439158A99B.jvm1 2008-06-14 18:02:16,916 (http-0.0.0.0-8443-1) [ JavaEventHandler.java:96 :ERROR] ---- runtime exception report -------------------------------------------------- Problems Processing Event Exception: java.lang.IllegalStateException Message: Cannot create a session after the response has been committed ---- stack trace --------------------------------------------------------------- java.lang.IllegalStateException: Cannot create a session after the response has been committed org.apache.catalina.connector.Request.doGetSession(Request.java:2301) org.apache.catalina.connector.Request.getSession(Request.java:2075) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) org.ofbiz.order.shoppingcart.ShoppingCartEvents.clearCart(ShoppingCartEvents.java:926) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88) org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) -- Thanks & Regards -- Pranay Pandey |
Administrator
|
Which version are you using ? Have you tried to reproduce on demo server ?
Jacques From: "Pranay Pandey" <[hidden email]> > Hello all, > > When I am going for processing order(anonymous checkout) for my customised > ecommerce application, in the request chain it is getting failed after > clearing the cart. Any pointer regarding this will be helpful. Console log > is : > > Chain in place: requestUri=clearcartfororder nextView=null > sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,770 (http-0.0.0.0-8443-1) [ > RequestHandler.java:243:INFO ] [Processing Request]: clearcartfororder > sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,772 (http-0.0.0.0-8443-1) [ CartEventListener.java:77 > :INFO ] Saving abandoned cart > 2008-06-14 18:02:16,910 (http-0.0.0.0-8443-1) > [ControlEventListener.java:100:INFO ] Destroying session: > 5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,916 (http-0.0.0.0-8443-1) [ JavaEventHandler.java:96 > :ERROR] > ---- runtime exception report > -------------------------------------------------- > Problems Processing Event > Exception: java.lang.IllegalStateException > Message: Cannot create a session after the response has been committed > ---- stack trace > --------------------------------------------------------------- > java.lang.IllegalStateException: Cannot create a session after the response > has been committed > org.apache.catalina.connector.Request.doGetSession(Request.java:2301) > org.apache.catalina.connector.Request.getSession(Request.java:2075) > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) > org.ofbiz.order.shoppingcart.ShoppingCartEvents.clearCart(ShoppingCartEvents.java:926) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:585) > org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88) > org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74) > org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78) > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > java.lang.Thread.run(Thread.java:595) > > > -- > Thanks & Regards > -- > Pranay Pandey > |
Jacques,
Pranay is working on the Customized ecommerce application. For this he is using ofbiz recent trunk and he take regular(daily) update of this. Its working fine on DemoServer and the Ecommerce application that comes with ofbiz. -- Ashish On Mon, Jun 16, 2008 at 11:21 AM, Jacques Le Roux < [hidden email]> wrote: > Which version are you using ? Have you tried to reproduce on demo server ? > > Jacques > > From: "Pranay Pandey" <[hidden email]> > > Hello all, >> >> When I am going for processing order(anonymous checkout) for my customised >> ecommerce application, in the request chain it is getting failed after >> clearing the cart. Any pointer regarding this will be helpful. Console log >> is : >> >> Chain in place: requestUri=clearcartfororder nextView=null >> sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 >> 2008-06-14 18:02:16,770 (http-0.0.0.0-8443-1) [ >> RequestHandler.java:243:INFO ] [Processing Request]: clearcartfororder >> sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 >> 2008-06-14 18:02:16,772 (http-0.0.0.0-8443-1) [ CartEventListener.java:77 >> :INFO ] Saving abandoned cart >> 2008-06-14 18:02:16,910 (http-0.0.0.0-8443-1) >> [ControlEventListener.java:100:INFO ] Destroying session: >> 5BB3E02BBF28F98EF0306E439158A99B.jvm1 >> 2008-06-14 18:02:16,916 (http-0.0.0.0-8443-1) [ JavaEventHandler.java:96 >> :ERROR] >> ---- runtime exception report >> -------------------------------------------------- >> Problems Processing Event >> Exception: java.lang.IllegalStateException >> Message: Cannot create a session after the response has been committed >> ---- stack trace >> --------------------------------------------------------------- >> java.lang.IllegalStateException: Cannot create a session after the >> response >> has been committed >> org.apache.catalina.connector.Request.doGetSession(Request.java:2301) >> org.apache.catalina.connector.Request.getSession(Request.java:2075) >> >> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) >> >> org.ofbiz.order.shoppingcart.ShoppingCartEvents.clearCart(ShoppingCartEvents.java:926) >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> java.lang.reflect.Method.invoke(Method.java:585) >> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88) >> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74) >> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) >> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) >> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >> java.lang.Thread.run(Thread.java:595) >> >> >> -- >> Thanks & Regards >> -- >> Pranay Pandey >> >> |
In reply to this post by Pranay Pandey
with out the code you changed it is hard to say more than this is the error
java.lang.IllegalStateException: Cannot create a session after the response has been committed in JavaEventHandler.java: line 96 Pranay Pandey sent the following on 6/14/2008 7:39 AM: > Hello all, > > When I am going for processing order(anonymous checkout) for my customised > ecommerce application, in the request chain it is getting failed after > clearing the cart. Any pointer regarding this will be helpful. Console log > is : > > Chain in place: requestUri=clearcartfororder nextView=null > sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,770 (http-0.0.0.0-8443-1) [ > RequestHandler.java:243:INFO ] [Processing Request]: clearcartfororder > sessionId=5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,772 (http-0.0.0.0-8443-1) [ CartEventListener.java:77 > :INFO ] Saving abandoned cart > 2008-06-14 18:02:16,910 (http-0.0.0.0-8443-1) > [ControlEventListener.java:100:INFO ] Destroying session: > 5BB3E02BBF28F98EF0306E439158A99B.jvm1 > 2008-06-14 18:02:16,916 (http-0.0.0.0-8443-1) [ JavaEventHandler.java:96 > :ERROR] > ---- runtime exception report > -------------------------------------------------- > Problems Processing Event > Exception: java.lang.IllegalStateException > Message: Cannot create a session after the response has been committed > ---- stack trace > --------------------------------------------------------------- > java.lang.IllegalStateException: Cannot create a session after the response > has been committed > org.apache.catalina.connector.Request.doGetSession(Request.java:2301) > org.apache.catalina.connector.Request.getSession(Request.java:2075) > org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) > org.ofbiz.order.shoppingcart.ShoppingCartEvents.clearCart(ShoppingCartEvents.java:926) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:585) > org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88) > org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74) > org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:386) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78) > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > java.lang.Thread.run(Thread.java:595) > > |
Free forum by Nabble | Edit this page |