Originally posted by Teena George:
anybody knows why is it happening?
Originally posted by Teena George:
Thanks Seetharaman. I dont know why im not getting the exception. to the
Nishit.
Calling flush() on the ServletOutputStream commits the response. Either this method or getWriter() may be called to write the body, not both.
Throws:
IllegalStateException - if the getWriter method has been called on this response
IOException - if an input or output exception occurred
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Nov 5, 2008 12:20:55 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet ObtainTwoOutputStreams threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet2(ObtainTwoOutputStreams.java:112)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.processRequest(ObtainTwoOutputStreams.java:45)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet(ObtainTwoOutputStreams.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
SEVERE: Servlet.service() for servlet ObtainTwoOutputStreams threw exception
java.lang.IllegalStateException: getWriter() has already been called for this response
at org.apache.catalina.connector.Response.getOutputStream(Response.java:579)
at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:183)
at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:102)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet1(ObtainTwoOutputStreams.java:85)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.processRequest(ObtainTwoOutputStreams.java:42)
at j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet(ObtainTwoOutputStreams.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Originally posted by Raghavan Muthu:
I believe it somehow gives the proper clarification. Isnt it?
A good workman is known by his tools.
Originally posted by Marc Peabody:
Yes, your explanation that included the two stack traces is correct.
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Originally posted by Teena George:
Its a proud feeling to be part of this saloon!!
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Nishit.
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|