Data Marketplace Error exporting to Excel
You can translate the document:
Content
Denodo Data Marketplace’s Excel export functionality uses Apache POI, which requires Microsoft TrueType fonts to generate Excel files. On Linux systems, these fonts may not be installed by default, causing Excel exports to fail.
This document explains how to resolve this font-related export error across different Linux distributions.
Error Message
When trying to export to Excel using the Denodo Data Marketplace, you might encounter this error:
|
Handler dispatch failed; nested exception is java.lang.InternalError: java.lang.reflect.InvocationTargetException |
Root Cause
This error occurs when the Microsoft TrueType fonts required by Apache POI (used for Excel export) are not installed on your Linux system.
Solution
1 - Check Current Font Installation
Run this command to check installed fonts:
|
fc-list |
This will list all installed fonts.
If the command fc-list is not found, you’ll need to install fontconfig first. The commands would depend on your exact Linux Distribution.
- Ubuntu
|
sudo apt-get install fontconfig -y |
- Amazon Linux / Fedora
|
sudo dnf install fontconfig |
2 - Install Required Fonts
- Ubuntu
|
sudo apt install ttf-mscorefonts-installer |
- Amazon Linux / Fedora
|
sudo dnf upgrade --refresh -y
sudo dnf install cabextract xorg-x11-font-utils fontconfig -y
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm |
Notes
- You may need to accept license terms during installation.
- Restart Denodo servers after font installation.
- If using different distributions, consult your package manager’s documentation for Microsoft TrueType installation.
4 - Verify Installation
Using fc-list, verify fonts are correctly installed. You can also search directly for MS TrueType fonts if fc-list is too verbose:
|
fc-list | grep -i "arial" fc-list | grep -i "times new roman" fc-list | grep -i "courier new" |
5 - Do you still have issues?
- Verify font cache is updated:
|
fc-cache -f -v |
- Ensure the Denodo service has been restarted.
The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.
For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.
