Hi,
for setting jasper reports we were using hashmaps, to send the parameters to the report, like this:
var $ParametersMap = new java.util.HashMap(); //object
$ParametersMap.put('invoiceid', invoicesid);
in the new version of our solution we switched to using objects like this:
var vParameters = new Object(); //object
vParameters.invoiceid = invoicesid
Now sometimes, we get this error in the debug or realclient:
Incompatible java.lang.Long value assigned to parameter invoiceid in the invoice1 dataset.
Wrapped java.lang.Exception: Incompatible java.lang.Long value assigned to parameter invoiceid in the invoice1 dataset. (D:\Servoy_Workspaces\servoy_workspace5\DirectManager\forms\invoices_print_menu.js#135)
the parameter: invoiceid in jasper is of type: java.lang.Integer. Should I change that to java.lang.Long?
The weird thing is that when we are using using hashmaps, this error never occurs.
Anyone knows, what is going on here?