Open HidayatLahabu opened 2 months ago
Hal tersebut terjadi, karena kode fasyanes melebihi nilai maksimum integer, maka solusinya adalah mengganti type data nya menjadi string saja :
find "$start_dir" -type f -name "*.jrxml" | while read -r file; do echo "Processing file: $file"
sed -i 's/name="KODE" class="java.lang.Integer"/name="KODE" class="java.lang.String"/g' "$file"
Jangan lupa untuk restart server tomcat dengan perintah : systemctl restart tomcat Lalu cek status tomcat service dengan perintah : systemctl status tomcat pastikan running
Jika anda mengalami error seperti ini : java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[o:ConnectionImpl]). Cause: net.sf.jasperreports.engine.JRException: Unable to get value for result set field "KODERS" of class java.lang.Integer. VM: 11.0.21@https://www.redhat.com/
Hal tersebut terjadi, karena kode fasyanes melebihi nilai maksimum integer, maka solusinya adalah mengganti type data nya menjadi string saja :
start_dir="."
find "$start_dir" -type f -name "*.jrxml" | while read -r file; do echo "Processing file: $file"
sed -i 's/name="KODERS" class="java.lang.Integer"/name="KODERS" class="java.lang.String"/g' "$file"
Jangan lupa untuk restart server tomcat dengan perintah : systemctl restart tomcat Lalu cek status tomcat service dengan perintah : systemctl status tomcat pastikan running
Jika anda mengalami error seperti ini : java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[o:ConnectionImpl]). Cause: net.sf.jasperreports.engine.JRException: Unable to get value for result set field "KODE" of class java.lang.Integer. VM: 11.0.21@https://www.redhat.com/