Excel export with apache POI driving me crazy - excel

using smartgwt on tomcat running on openjdk on debian squeeze.
I have a grid on my site which you can excel-export. It transfers to server and it exports the data using Apache POI. You then get a popup in the browser so that you can save the excel file.
When running Tomcat locally, all works fine - however on my debian server, the Excel file looks empty when i open it. It IS not empty since if i save it as CSV i can see the data. MY colleague opened it on his phone and could look at the data. However in Excel 11 on Mac or Windows the file appears blank...
I think it has something to do with the Fonts installed on the server, so i have installed the "ttf-mscorefonts-installer" package that contains the Microsoft truetype fonts via apt-get, but still no success. I've tried copying fonts, using both XSL and OOXSL, but to no avail.
has anyone had any experience with this? I feel like i've tried everything now.

For others: 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.

Related

Imagemagick IIS install issue VBScript error "800a01ad"

I have Imagemagick running on a remote server and have had it running on a local server successfully for many years, but recently I have had need to reinstall on a new machine and can't for the life of me figure out what i'm doing wrong, It's probably really simple and I'm hoping someone can point me in the right direction.
Scenario
WIN 10 running iis as localhost
Successfully installed Imagemagick 32 and 64 bit so they run on the local machine, however when try to access the localhost web page requiring Imagemagic I'm receiving the following message
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'ImageMagickObject.MagickImage.1'
my app pool is current set to allow 32bt application and as far as I am aware all permissions are correct, although I do believe this may be the issue somewhere.
Can anyone help to shed some light on this issue.
Thanks :-)
Resolved.. It turns out the latest version of Imagemagick 7.1.x does not ship with ImagemagickObject.dll, fortunately, I had a saved download .exe for an earlier version 7.0.8 which still had the .dll, once install I could copy imageMagickObject.dll to the system32 folder, after that everything worked as expected. Not sure what would replace this in my code if I have to ever user a newer version, if someone knows please add to the post.

installing Oracle 12c client

I am trying to install Oracle 12c client on my development box running Windows 10 and it doesn't even start.
I downloaded the files from Oracle download web site, ran setup.exe and it flashes briefly and nothing happens. I made sure latest JRE and JDK are installed.
I have spent most of the day googling but most deal with errors that occur during installation whereas I can't even start the installation! No errors, no messages. Checked GAC on off chance DLLs might be there but they are not.
I have used the same set of files on other machines and servers (Windows 2008r2 and 2012r2) without any issues but can seem to be able to troubleshoot this one. Any ideas to put me on the right path is appreciated.
After spending a couple of days trying to figure out the issue, uninstalling/reinstalling JRE and JDK and all that, the issue turned out to be the hard drive size. Apparently max dive size where you install the client is 2TB and mine was 3TB. I had to shrink the drive and it worked after that. Hopefully it saves someone some pain.
A couple of links for more info.
Installing on large disk
Oracle Universal Installer

Oracle Forms and Reports 6i on Linux

I'm actually using Oracle Forms and Report 6i in Windows 32bits with Oracle Database 10g, and i want to change to Linux (Ubuntu) with the same versions.
After hours of researches i didn't find any helpful information about this, I only found the 10g version of the developer on the official website of Oracle and for the 6i version most what i found use Wine and i don't want to use it or any other Emulator type utility for the purpose.
I thought about migrating my application to 12c, but it's going to take me a lot of time.
My application contains:
Over 900 .fmb/fmx files.
Over 700 .rep/rdf files.
Is there any quicker way to have my application that is developed on 6i work in Linux?
[EDIT]
I have found a tar file of oracle forms and reports 6i, i still haven't tried it, but does that mean there is forms 6i in linux? if so, is it going to work properly or what?
Any information whatsoever will be helpful!

BIRT .xlsx file is damaged in Linux Environment While working good in Windows Environment

enter image description hereHi,
I'm using BIRT verison 4_5_0. I've deployed application in my development windows environment and I could generate report with chart in .xlsx format. It's working fine in windows environment. But my production environment is Linux. If I generate report in Linux environment then the returned output is file damaged. What's the reason for the issue? Should I include any additional .jars? Thanks in advance.
I'm still new but I know that XLSX is a Microsoft extension. If I'm not wrong, on Linux, you can have a different behavior. So, when I run report on windows, I generate it for XLSX format but for Linux, I generate it for ODS (libre office and not microsoft office).
I don't remember if you need to add an emitter (JAR) or if it's in eclipse by default.But this is the link that explain : https://marketplace.eclipse.org/content/arctorus-xlsx-xls-ods-csv-birt-emitter
Be free to ask if you need help with the emitters.

Windows WebStorm: This character may get silently deleted by one or more browsers

I like Windows as working platform, and linux as server: so why I'm using Windows based WebStorm and Debian Linux as server. But now have this error:
This character may get silently deleted by one or more browsers.
Please help me to solve it, I want to continue using Windows WebStorm, I already changed encoding in WebStorm and resaved file, but err still there, and its improssible to change editors to convert encodings, want to stay with mine WebStorm.
as you can see in screenshot everything is changed, please help me to find solution. Thanks

Resources