• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

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: 1043
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