Running BIRT report on server causes 'The type of parameter "selectedCountry" is expected as "Object[]", not "java.lang.String".' error
Hello all,
I have created my custom report with param called selectedCountry which is List Box allowing selecting multiple values. ( see image)
The report works fine in report designer but when I deploy it on the server, I have following error message after selecting parameters:
Running BIRT report on server causes following error message:
The type of parameter "selectedCountry" is expected as "Object[]", not "java.lang.String".
There is no data displayed.
What should I change in the report to make it working?
I am using RTC 4.0.4.
I have created my custom report with param called selectedCountry which is List Box allowing selecting multiple values. ( see image)
The report works fine in report designer but when I deploy it on the server, I have following error message after selecting parameters:
Running BIRT report on server causes following error message:
The type of parameter "selectedCountry" is expected as "Object[]", not "java.lang.String".
There is no data displayed.
What should I change in the report to make it working?
I am using RTC 4.0.4.
3 answers
OK I have fixed issue. You need uncheck "Allow multiple values" option in parameters option. Then the report still allows you to select multiple values in rtc and works correctly :)
I have also created https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=292069 to improve error message to be more meaningful.
I have also created https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=292069 to improve error message to be more meaningful.
Comments
sam detweiler
Nov 28 '13, 12:47 p.m.Is this really a parameter? the Birt implementation on RTC requires double quotes around the data for parameters. Birt Designer does NOT require this.
see here