Jump to content

iReport 3.5.2 does not like string initial values


prosvet

Recommended Posts

Since this morning, for a new report (Groovy or not) it gives the following error message when trying to preview:

"The initial value class is not compatible with the variable's class"

Simplifying the report, I came to the simplest case to reproduce: variable is a simple java.lang.String to be able to put a label inside. The error comes even for one variable, not placed on the repoirt layout. Report is empty. (cf. attachment)

Any idea?

Igor

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Apparently, when I add manually variable's initial value in the jrxml file (cf. code) or modify an existing (pre-3.5.2 created jrxml file) variable's initial value, everything is OK.

However, when I create the variable in iReport and type in initial value, the error appears. So, for the moment, I have to create all my labels with iReport, position them, and then add initial values manually in jrxml file. Feasible, but cumbersome.

Code:
  <initialValueExpression><![CDATA["test"]]></initialValueExpression>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...