I have a Jasper report that has a logo on it, but Vaadin in production mode cannot find this logo, even though it exists on the server.
HashMap<String, Object> param = new HashMap<>();
param.put("logoCupom", "C: " + File.separator + "Agil" + File.separator + "Logos" + File.separator + "PortalParceiro" + File.separator + "EAS.png");
InputStream src = getClass().getResourceAsStream("/reports/Contrato_Prestacao_Servicos.jasper");
JasperPrint jp = JasperFillManager.fillReport(src, param,
new JREmptyDataSource());
JasperExportManager.exportReportToPdfFile(jp, contratoLocal.getPath());

marcoc_753
(Marco Collovati)
3
It looks like a JasperReport related issue. Please check server logs and see if there is a stack trace that could help identifying the issue.
it works in dev mode though, strange
marcoc_753
(Marco Collovati)
5
Yeah. Hopefully the stack trace can point you to the cause of the issue
the stack trace says nothing sadly
marcoc_753
(Marco Collovati)
8
Do you mean there’s no stack trace at all?
but it does not give any significant information that i didnt already know
there seems to be a whitespace after the C:
that probably shouldnt be there lol
if so, sorry for wasting your time lol
I deal with complex stuff everyday I forget the simple typo
it was actually just that omg