Search code examples
excelapache-poismartgwt

Excel export works locally, fields become hidden when running on server


OK, so i have a SmartGWT web application, where i have some reports running in list grids.

I export to excel using the Smartgwt built-in export as per the examples using the listgrid.exportclientdata();

Here's the issue:

-When running locally, all works fine and i can open the XLSX file and see all data.

-When running from the server, the columns containing data become hidden! If i manually do the "unhide" thing from within Excel, i can see the columns...

My local environment is Mac OSX, Mountain Lion(also tried earlier), running Sun's Java. The prod server is Debian running OpenJDK.

Not sure if that would have something to do with it, and i am at a loss as to how i go about solving it... Running my webapp on Tomcat6 in both environments.


Solution

  • For others, searching the stackoverflow void for answers to riddles in the dark:

    This was caused by certain fonts not being available in OpenJDK, without any errors being logged anywhere...

    I switched to Sun's JDK on my Debian as well, and the Excel files now open and display properly.