• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Export multiple files

 
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

code throwing below exception=>

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic