2

Jasper で式を計算しようとすると問題が発生します。レポートを実行すると、エラー メッセージが表示されます。

Error filling print... Error evaluating expression :      Source text : new Integer(($F{total_answer}.intValue()) / ($F{total_max_score}.intValue()*100)) 
Can't find the translation for key = time_picker: using default (Time)  Can't find the translation for key = time_picker: using default (Time)  For input string: ""  For input string: ""  java.lang.ArithmeticException: / by zero 

この私のコード:

new Integer(($F{total_answer}.intValue()) / ($F{total_max_score}.intValue()*100))

これについて知っている人はいますか?

4

1 に答える 1