Ini kenapa ya mau nampilin report malah gini

ini mau nampilin report malah gini dan ini codingnya

import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperPrintManager; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.xml.JRXmlLoader; import net.sf.jasperreports.view.JRDesignViewer; import net.sf.jasperreports.view.JasperViewer; //

JasperReport JasRep; JasperPrint JasPri; Map param= new HashMap(); JasperDesign JasDes;

//

try{ Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/fcipank?user=root&password=");

File reprt = new File ("src\\fotocopy_ipank\\report2.jasper"); JasDes = JRXmlLoader.load(reprt); param.clear(); JasRep=JasperCompileManager.compileReport(JasDes); JasPri=JasperFillManager.fillReport(JasRep, param ,connection ); JasperViewer.viewReport(JasPri,false);

}catch(Exception e){ JOptionPane.showMessageDialog(null, e); } output

net.sf.jasperreports.engine.JRException: Invalid byte 1 of 1-byte UTF-8 sequence.

avatar ilham95
@ilham95

1 Kontribusi 0 Poin

Dipost 5 tahun yang lalu

Tanggapan

baca aturan main cara bertanya yang baik, perbaiki judul dan deskripsi pertanyaan kamu gan

mungkin ada masalah di file report2.jasper

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban