2 Replies Latest reply on May 18, 2004 10:28 AM by pythonista

    java.lang.IllegalStateException

    j88

      Hi, i'm porting my application from WL to JBoss. I got this exception when a jsp file try to call a servlet file. Following is the exception:

      16:53:10,437 ERROR [Engine] ApplicationDispatcher[] Servlet.service() for servlet followup threw exception
      java.lang.IllegalStateException
      at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:107)
      at web.followup.domain.FollowUpManagementServlet.doGet(FollowUpManagementServlet.java:280)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
      ...
      ...

      Can anybody help me?

      Thank you...

        • 1. Re: java.lang.IllegalStateException
          darranl

          Wrong forum, this forum is to discuss the advanced documentation not user issues.

          You should probably try one of the 'Begginers Corner' or 'HTTPD, Servlets & JSP' forums.

          • 2. Re: java.lang.IllegalStateException
            pythonista

            Wrong forum, but here's a quick answer:

            The only times I've seen IllegalStateException thrown from a call to getOutputStream() is when there has already been a call to getOutputWriter() for the same request - the two methods are meant to be incompatible.