I have a big problem with a report whose query uses an IN statement in the WHERE clause.
I´m passing an array parameter and, in iReport, is defined as java.util.Collection, the WHERE clause is:
WHERE lineas_repartos.idreparto = $P{nReparto} AND $X{IN, establecimientos.idruta, aRutasImprimir}
I have made sure that the SQL works without the IN staement so the SQL is not the problem.
Yes it is the name of the parameter, but anyway I got it working now.
The problem was that the array was created with a check field that shows a value list. I did not took into account that each array value was a string as soon as my stupid brain saw that I solved.