2 Replies Latest reply on Aug 1, 2002 1:57 AM by aegcp

    help : java.lang.IllegalStateException: committed

    aegcp

      Hi guys, I'm inserting information to my entity bean, and it is doing it well... hmm.. at least it's inserting the info, but sometimes I get this strange error:

      2002-07-31 14:59:50,484 ERROR [STDERR] java.lang.IllegalStateException: committed
      2002-07-31 14:59:50,500 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHttpResponse.resetBuffer(ServletHttpResponse.java:242)
      2002-07-31 14:59:50,500 ERROR [STDERR] at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:215)
      2002-07-31 14:59:50,515 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:200)
      2002-07-31 14:59:50,515 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:156)
      2002-07-31 14:59:50,531 ERROR [STDERR] at mobile.servlet.DBServlet.gotoServlet(Unknown Source)
      2002-07-31 14:59:50,531 ERROR [STDERR] at mobile.servlet.DBServlet.doPost(Unknown Source)
      2002-07-31 14:59:50,531 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      2002-07-31 14:59:50,562 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:255)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:156)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:414)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.apache.jsp.process$jsp._jspService(process$jsp.java:110)
      2002-07-31 14:59:50,562 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      2002-07-31 14:59:50,625 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      I don't know why this happens... any help...??

        • 1. Re: help : java.lang.IllegalStateException: committed
          dsundstrom

          What do you mean by I'm inserting information to my entity bean?

          This looks like this is a Servlet issue. Are you trying to do a server side redirect after you send some data to a client. I belive the message is saying data has already been committed to the response stream so the buffer can not be reset.

          • 2. Re: help : java.lang.IllegalStateException: committed
            aegcp

            you were completely right.. it was a servlet problem..
            I was using a variable in 2 different contexts, so my servlet was redirecting to a jsp page but it was also executing other statementes in the servlet..

            thanks for your help