File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Closing the Buffer error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Closing the Buffer error" Watch "Closing the Buffer error" New topic

Closing the Buffer error

chaitanya krish

Joined: Apr 24, 2012
Posts: 8
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);

subject: Closing the Buffer error
It's not a secret anymore!