JayVora-SerpentCS / Jasperreports_odoo

Jasper Reports Engine for Odoo
http://www.serpentcs.com
82 stars 144 forks source link

Error in odoo when fonts are added to jasper studio #79

Closed maiolif closed 5 years ago

maiolif commented 5 years ago

Hello, when adding fonts in Jasper studio preferences (in order to generate properly PDF), we got this error from odoo:

odoo.exceptions.UserError: ("Report Error\n<Fault 0: 'Failed to invoke method execute in class com.nantic.jasperreports.JasperServer: org/apache/batik/bridge/FontFamilyResolver'>", '')

Fonts have been installed on the server side by @dcorio

maiolif commented 5 years ago

btw, the fontset used in the jasperstudio project has been exported as jar and added to Jasperreports_odoo/jasper_reports/java/lib I found a discussion about this error due to old libraries in jasper server, but I don't know if this is the reason. https://community.jaspersoft.com/jasperreports-library/issues/7561

maiolif commented 5 years ago

Also font's jar seems ok, since I imported it in jaspersoft studio as external library and the preview is compiling without error

maiolif commented 5 years ago

issue was generated by a svg image loaded. To import Tahoma font in the server I modified the jasperserver font jar.