textField textAdjust="StretchHeight" or "ScaleFont" compile error

Description

17:14:39,806 ERROR Digester:1770 - Parse Error at line 380 column 61: cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
org.xml.sax.SAXParseException; lineNumber: 380; columnNumber: 61; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1892)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185)
at de.cenote.jasperstarter.Report.<init>(Report.java:178)
at de.cenote.jasperstarter.App.compile(App.java:141)
at de.cenote.jasperstarter.App.main(App.java:105)
input file: "RelatorioDiario.jrxml" is not a valid jrxml file: org.xml.sax.SAXParseException; lineNumber: 380; columnNumber: 61; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.

<textField textAdjust="StretchHeight" isBlankWhenNull="true">

Environment

JasperStarter 3.5.0 Rev a2e9c21 (JasperStarter-3.5.0)

  • JasperReports: 6.6.0

TIBCO Jaspersoft® Studio 6.16.0 - Visual Designer for JasperReports 6.16.0.

java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

Edition Windows 10 Pro
Version 20H2
Installed on ‎30/‎01/‎2021
OS build 19042.746
Experience Windows Feature Experience Pack 120.2212.551.0

Activity

Show:
Maumad
February 7, 2021, 10:24 PM

Replacing the five jasperreports-*.jar files in /lib:

jasperreports-6.7.0.jar

jasperreports-chart-customizers-6.7.0.jar

jasperreports-chart-themes-6.7.0.jar

jasperreports-fonts-6.0.0.jar

jasperreports-functions-6.7.0.jar

, with the new ones from jasperreport repo :

https://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports 6.16.0/

And renaming them to the old names, seems to fix the problem.

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Volker Voßkämper

Reporter

Maumad