chaitanya krish

Greenhorn
+ Follow
since Apr 24, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chaitanya krish

Hi,
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(Response.java:616)
at org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:429)
at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:74)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:502)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
at com.radiantexp.astro.client.nebula.filter.AstroFilter.doFilter(AstroFilter.java:22)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)



small snippet of code
setRedirect(false);
WebResponse response = (WebResponse) getResponse();
response.setAttachmentHeader("export.csv");
response.setContentType("text/csv");
OutputStream outputStream = response.getOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(outputStream);

hi, what is difference between Restlet Webservices and Restful Webservices
11 years ago
hi, i am working on apache wicket framework. can you please help me anyone how to generate a dynamic Radiobutton, Checkbox on selection dynamically in wicket ? If you put statically we get the values. But dynamically we dont know what are the attributes we have to give?
Using the profiler, i am able to see only the classes in which page you are using? If there are so many pages how can i findout? It is difficult to see each and every class i thnk?
11 years ago
I am using yourkit profiler. It shows how much memory occupied in the heap and shows howmany classes loaded , how many are garbage collected... But i didnt get clear picture how to move the unused objects to garbage collection by using the profiler identification?
11 years ago
hi,
How can we avoid the memory leaks without increasing the heap size? When i googled , There are so may Profilers avilable But how which one is feasible?
11 years ago
thanks for the reply. I changed the size in eclipse.ini file . now its working

11 years ago
hi,

I want to increase the heap size manually in jvm. How can i increase/decrease the heap size in windows and if we used in eclipse IDE then how can i reduce jvm heap size?
11 years ago