- Code: Select all
Exception Object: java.lang.Exception: java.lang.Long cannot be cast to java.lang.Integer
MSG: java.lang.Long cannot be cast to java.lang.Integer
<null>
Exception calling form method 'printPreview' with arguments [-1, -1, false, null, Druckvorschau] on form 'boss_char_charterfaktura_base_dtl' in async mode on solution BOSS
Wrapped java.lang.Exception: java.lang.Long cannot be cast to java.lang.Integer (H:\servoy_workspace_git\br_boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js#824)
at H:\servoy_workspace_git\br_boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js:824 (printPreview)
If close the smart client, reopen it, then the Jasper report run works.
The following method calls the report.:
- Code: Select all
function printPreview() {
if ( id ) {
plugins.jasperPluginRMI.runReport( db.DATABASE.BOSS_SQL, charterfakturaReport, null, "viewer", { param_id: foundset.id }, getDocumentLanguage( ) );
}
}
The parameter param_id and the field id are declared as java.lang.Integer in iReport Designer.
What is the cause for this error?