Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Export multiple files

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see comment below




In the above code I try to generate two report simultenously ..... like this (or better then this) I have to create multiple files which I have to export in a single shot....but I am not get suceess with this code...Now I am confuse what to do...When I think for the solution options like thread and synchoronization came into my mind because when process run other not getting the resorce free and the file is not generating .....but also confused to use this technics(thread and synchoronization) in my code...please help me out .....I hope my problem is clear to you guys...
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

code throwing below exception=>

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my made some changed in my code result things are working now but I am little afraid that if the number of files increase in future is my code going to handle it....
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does an OOME due to PermGenSpace have to do with files or threads/synchronization? See the TomcatFaq for a discussion of the PermGenSpace issue.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does an OOME due to PermGenSpace have to do with files or threads/synchronization?


I am asking of threads/synchronization for the issue not for above exception...
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kaustubh G Sharma wrote:
What does an OOME due to PermGenSpace have to do with files or threads/synchronization?


I am asking of threads/synchronization for the issue not for above exception...


And what exactly is the question? After reading your post, I'm not sure what you are asking about. And posting an unrelated (to the question) exception is going to make it more confusing.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what exactly is the question? After reading your post, I'm not sure what you are asking about. And posting an unrelated (to the question) exception is going to make it more confusing.




Hi Jai actually the first code creating the below exception my point is to find solution from the below exception and for that I am asking for solutions ...thread and synchronization is one of my thought to put the code above so that I can get the solution for the problem I am getting plus the above exception can also be handled by it...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic