[#5312] - Class Expression stacktrace when changing measure class

Category:
Bug report
Priority:
Normal
Status:
Assigned
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

When using a Crosstab you have the possibility to add additional Measures (next to rows and columns).

If, for any reason, the measure class was wrongly defined you are unable to change this without resulting in a stacktrace. However the change is correctly applied (Closing and Reopening the report removes the stacktrace)

This was discovered in version 3.7.1

net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :       1. The class of the expression is not compatible with the class of the measure INVPLUSPIPELINEmeasure.     at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)

For this issue 2 workarounds have already been discovered. In the end both result in no change in the jrxml itself.

fenix4life's picture
Joined: Oct 5 2009 - 5:27am
Last seen: 7 years 2 months ago
Feedback