TIBCOSoftware / jasperreports

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

IncrementTypeEnum Error (Studio, CLI) #465

Closed nkgsisaar closed 1 month ago

nkgsisaar commented 4 months 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 4 months ago

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

Thank you, Teodor

teodord commented 1 month ago

JSS CE 7.0.1 release available here: https://community.jaspersoft.com/download-jaspersoft/community-edition/jaspersoft-studio_7.0.1