Prezados,
Tudo bem?
Estou com um problema,
Preciso “negar”, no I-report, um parâmetro boolean (parâmetros IS_IGNORE_PAGINATION).
Então, no print when expression do meu fied, eu coloco
!($P{IS_IGNORE_PAGINATION})
Beleza, o símbolo ! em java é o “not” certo?
Funcionou perfeitamente no cpu de um amigo meu, porém, no meu, os seguintes erros são gerados:
(compilando no I-report)
Compiling to file… .\BalanceteDiarioPaisagem.jasper -> C:\Arquivos de programas\JasperSoft\iReport-1.2.2\BalanceteDiarioPaisagem.java
Errors compiling .\BalanceteDiarioPaisagem.jasper!
it.businesslogic.ireport.ReportClassLoader@1fe910c net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 2. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 3. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 4. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 5. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 6. The operator ! is undefined for the argument type(s) Boolean value = (java.lang.Boolean)(!(((java.lang.Boolean)parameter_IS_IGNORE_PAGINATION.getValue()))); <-----------------------------------------------------------------> 6 errors
Coloquei exatamente a mesma expressão no outro cpu e funcionou perfeitamente… compilou normal…
Alguém tem alguma idéia?
Agradeço antecipadamente.
ps: As versões do ireport são exatamente as mesmas (1.2.2)