• 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

Apache POI- XSSFWorkbook : Excel file cannot open the file because the file format is invalid

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

I am generating Excel file using Apache XSSFWorkbook API. The code is working fine when I test using Standalone client (using main method).
But, when I deploy this code in Web-logic server and try to generate the excel file. The file is generated. But, it is not opened properly. I got message like "Excel file cannot open the file because the file format  or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file".
Please let me know if anyone has solution for this problem.

Regards,
TulsiRam
 
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it not opened by the browser?
Did you check the content type?
 
reply
    Bookmark Topic Watch Topic
  • New Topic