Skip to content

Cannot Cast Parameter to java.util.Collection #355

@Biele10

Description

@Biele10

For whatever reason, I am getting an error with this output:

"Parameter 'checked' of type 'java.util.Collection with value '0,1' is not supported by JasperStarter! "

I have tried mutliple formats ([0, 1], "[0, 1]", ["0", "1"] etc) but none have worked.

Here is how my params look:

$params = ["checked" => "0,1"];

This is the code in the jrxml that uses this parameter.

<parameter name="checked" class="java.util.Collection">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>

Any ideas would be greatly appreciated I have spent a long time on this and have read through countless of these bug reports but none of them have solved this problem. If you need any more context please let me know and I can provide whatever is necessary.

Thanks,

Biele

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions