WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHi,
I am trying to run a new Jasper report that I designed and loaded into the server, but am getting this exception. I tried to compile the report with compatibility for 6.3.1 but it doesn't seem to make a difference. I've searched the xml report source for the offending attribute 'textAdjust' but I don't see the attribute in the source. Any idea what I can try next to get this report working ? Thanks, Willi Wolf
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:253) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:554) [jasperreports-6.3.1.jar:6.3.1]
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
-- Causes: net.sf.jasperreports.engine.JRException::Class not found when loading object from InputStream.
java.lang.ClassNotFoundException::net.sf.jasperreports.compilers.ReportExpressionEvaluationData
Hi Willi,
It seems weird that textAdjust doesn't appear in the source. Are you sure you're looking at the jrxml file that is in the reports directory on the server? Make sure that in your project properties, in JasperSoft Studio/Compatibility, Source .jrxml version is set to 6.3.1. In theory, that should prevent it from generating the textAdjust attribute.
Ray
Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org
From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Monday, January 25, 2021 11:21 AM
To: talk@lists.collectionspace.org
Subject: [Talk] error 500 with a new Jasper report
Hi,
I am trying to run a new Jasper report that I designed and loaded into the server, but am getting this exception. I tried to compile the report with compatibility for 6.3.1 but it doesn’t seem to make a difference. I’ve searched the xml report source for the offending attribute ‘textAdjust’ but I don’t see the attribute in the source. Any idea what I can try next to get this report working ? Thanks, Willi Wolf
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:253) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:554) [jasperreports-6.3.1.jar:6.3.1]
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
-- Causes: net.sf.jasperreports.engine.JRException::Class not found when loading object from InputStream.
java.lang.ClassNotFoundException::net.sf.jasperreports.compilers.ReportExpressionEvaluationData
Yes, you are correct. I thought I had the compatibility set correctly, but I did not! Now it works. Thanks so much !!
Willi Wolf
-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Tuesday, January 26, 2021 20:42
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: [Talk] error 500 with a new Jasper report
Hi Willi,
It seems weird that textAdjust doesn't appear in the source. Are you sure you're looking at the jrxml file that is in the reports directory on the server? Make sure that in your project properties, in JasperSoft Studio/Compatibility, Source .jrxml version is set to 6.3.1. In theory, that should prevent it from generating the textAdjust attribute.
Ray
Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org
From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Monday, January 25, 2021 11:21 AM
To: talk@lists.collectionspace.org
Subject: [Talk] error 500 with a new Jasper report
Hi,
I am trying to run a new Jasper report that I designed and loaded into the server, but am getting this exception. I tried to compile the report with compatibility for 6.3.1 but it doesn't seem to make a difference. I've searched the xml report source for the offending attribute 'textAdjust' but I don't see the attribute in the source. Any idea what I can try next to get this report working ? Thanks, Willi Wolf
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:253) [jasperreports-6.3.1.jar:6.3.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:554) [jasperreports-6.3.1.jar:6.3.1]
-- Causes: net.sf.jasperreports.engine.JRException::org.xml.sax.SAXParseException; lineNumber: 159; columnNumber: 38; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
-- Causes: net.sf.jasperreports.engine.JRException::Class not found when loading object from InputStream.
java.lang.ClassNotFoundException::net.sf.jasperreports.compilers.ReportExpressionEvaluationData