Tenho uma aplicação web que uso com JSF e estou tentando incorporar os Relatórios do jasper nele, tenho uma pagina xhtml que possue um simples botao que gera o relatorio, ao clicar nele, ele exibe a jasperViewer corretamente com o relatorio, porém quando clico no 'X' do jasperViewer para fechar o relatorio, ele derruba o tomcat e exibe o seguinte erro
GRAVE: The web application [/Curriculo] created a ThreadLocal with key of type [net.sf.jasperreports.engine.util.JRFontUtil$1] (value [net.sf.jasperreports.engine.util.JRFontUtil$1@1788424]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Exception while removing reference: java.lang.InterruptedException
java.lang.InterruptedException
public void gerarRelatorio() throws Exception {
//Connection con = HibernateUtil.getSession().connection();
Session sessao = HibernateUtil.getSession();
Connection con = sessao.connection();
//Connection con = new ConexaoMySQL().getConnection();
try {
HashMap parametros = new HashMap();
JasperPrint jp = JasperFillManager.fillReport("C:\\jasper4.1.3.jasper", parametros, con);
JasperViewer jrv = new JasperViewer(jp);
jrv.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
} finally {
sessao.close();
}
}
