Olá Comunidade!
Estou tentando fazer um relatório em IReport, eu compilei os meus JRXML no próprio IReport, mas quando o java tenta compilar o objeto InputStream carregado pelo método getResourceAsStream é apresentado um erro do tipo Reflection : java.lang.reflect.InvocationTargetException
Caused by: java.lang.VerifyError: (class: net/sf/jasperreports/engine/xml/JRXmlDigesterFactory, method: configureDigester signature: (Lorg/apache/commons/digester/Digester;)V) Incompatible argument to function
Eu tenho uma leve sensação que a biblioteca do Jasper não esta entendendo o objeto carregado pelo InputStream. Mas verifiquei outros exemplos e fizeram o mesmo conforme apresentado no código abaixo e funcionou em alguns casos. Alguém pode me ajudar?
try {
if (SUB_REL_SUPERINTENDENCIA_REGIONAL == null) {
InputStream in = this.getClass().getResourceAsStream("relatorio/eventoContabil/SubReportSuperintendeciaRegional.jrxml");
SUB_REL_SUPERINTENDENCIA_REGIONAL = (JasperReport) JasperCompileManager.compileReport(in);
}
this.subReportSuperintendenciaRegional = SUB_REL_SUPERINTENDENCIA_REGIONAL;
}
catch (JRException e) {
e.printStackTrace();
}