1

I am setting up a microservice and in local tests I do not get this type of source error, I tried to inject libraries but the error persists, the call with postman returns the following message, some solution? I'm using jasper's report.

{

 "timestamp": "2018-05-31T12:38:44.488+0000",
 "status": 500,
 "error": "Internal Server Error",
 "message": "Font \"Calibri\" is not available to the JVM. See the Javadoc for more details.",
"path": "/report"

}
Alex K
  • 22,315
  • 19
  • 108
  • 236
dani
  • 43
  • 1
  • 2
  • 5

1 Answers1

0

You are missing a Calibri font on your JasperReports server instance. You need to a generate font extension file using Calibri.ttf (font file, download it from internet) with iReports/ Jasper Studio and add it as jar to Jasperserver's lib folder to make it available across your application.

There is a complete section dedicated on working with font extension on jasper community, have a look:
working-font-extensions

sdman
  • 146
  • 5
  • thanks for the answer, I have managed to export the font in a jar but I have doubts about how to integrate it into the project, I am using spring boot. – dani May 31 '18 at 20:28
  • @dani, you should add this jar into your project's classpath – sdman Jun 01 '18 at 01:23