Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing the Buffer error

chaitanya krish
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on apache wicket framework. My requirement is I want to generate the csv file whenever i click the download button. I generated the csv file, there is no problem getting the csv file in client side . but after downloading , i got the following error in the log file. Can anyone please tell me what is the solution not getting that error in log file

WicketFilter [ERROR] closing the buffer error
java.lang.IllegalStateException: STREAM
at org.mortbay.jetty.Response.getWriter(
at org.apache.wicket.protocol.http.WebResponse.write(
at org.apache.wicket.protocol.http.BufferedWebResponse.close(
at org.apache.wicket.protocol.http.WicketFilter.doGet(
at org.apache.wicket.protocol.http.WicketFilter.doFilter(
at com.radiantexp.astro.client.nebula.filter.AstroFilter.doFilter(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.jetty.servlet.ServletHandler.handle(
at org.mortbay.jetty.servlet.SessionHandler.handle(
at org.mortbay.jetty.handler.ContextHandler.handle(
at org.mortbay.jetty.webapp.WebAppContext.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.Server.handle(
at org.mortbay.jetty.HttpConnection.handleRequest(
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
at org.mortbay.jetty.HttpParser.parseNext(
at org.mortbay.jetty.HttpParser.parseAvailable(
at org.mortbay.jetty.HttpConnection.handle(
at org.mortbay.thread.QueuedThreadPool$

small snippet of code
WebResponse response = (WebResponse) getResponse();
OutputStream outputStream = response.getOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(outputStream);

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic