• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting error org.apache.poi.EmptyFileException: The supplied file was empty (zero bytes long)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am getting error org.apache.poi.EmptyFileException: The supplied file was empty (zero bytes long) after 4 lakh records in excel file writing.

I am using apache poi and i have 10 million records to write. I am running a job to write to the excel file. the chunk size is 1000.

The file gets created on drive but after reaching 4 lakh rows, the xlsx file shows its corrupt.

Please help.
Staff note (Ron McLeod) :

4 lakh = 400,000 (four hundred thousand)

 
reply
    Bookmark Topic Watch Topic
  • New Topic