TIBCOSoftware / jasperreports

JasperReports® - Free Java Reporting Library
https://community.jaspersoft.com/downloads/community-edition/
GNU Lesser General Public License v3.0
1.02k stars 394 forks source link

IncrementTypeEnum Error (Studio, CLI) #465

Open nkgsisaar opened 1 month ago

nkgsisaar commented 1 month ago

When adding a variable in JasperReports Studio there is a prompt displaying an error, also an error message is displayed after compiling the report.

Error in Studio can be seen here: https://community.jaspersoft.com/forums/topic/68693-jasper-report-70-cannot-invoke-netsfjasperreportsenginetypeincrementtypeenumequalsobject/

Error in CLI:

java.lang.RuntimeException: net.sf.jasperreports.jackson.util.JacksonRuntimeException: 
    com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "variableExpression"
    (class net.sf.jasperreports.engine.design.JRDesignVariable), not marked as ignorable 
    (11 known properties: 
        "resetGroup", 
        "initialValueExpression", 
        "expression", 
        "resetType", 
        "incrementerFactoryClass", 
        "name", 
        "description", 
        "incrementGroup", 
        "incrementType", 
        "calculation", 
        "class"]
    )
 at [Source: (ByteArrayInputStream); line: 44, column: 70] 
    (through reference chain: 
        net.sf.jasperreports.engine.design.JasperDesign["variable"]
        ->java.util.ArrayList[0]
        ->net.sf.jasperreports.engine.design.JRDesignVariable["variableExpression"]
    )
teodord commented 1 month ago

Yes, it is a JSS CE 7 bug. Will be fixed in the new Jaspersoft Studio release.

Thank you, Teodor