[#12836] - Could not initialize class com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:
0

I have been dealing with this issue in PRODUCTION while creating a report...Please note suhc issue is not seen in my local or staging environment. AS of now, I had to disable creating a jasper report in production.

Any help in this regard would be helpful.

java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.<init>(XMLSchemaValidator.java:1130) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1206) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:156) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[na:1.8.0_242]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) ~[na:1.8.0_242]
at org.apache.commons.digester.Digester.parse(Digester.java:1892) ~[commons-digester-2.1.jar:2.1]
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:299) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadX ML(JRXmlLoader.java:286) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:275) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:220) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:195) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:186) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:289) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:576) ~[jasperreports-6.12.2.jar:6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3]
at com.vrhere.reports.jasper.service.JasperReportService.exportReport(JasperReportService.java:105) ~[classes/:1.0.0.BUILD-SNAPSHOT]
at com.vrhere.reports.jasper.service.JasperReportService$$FastClassBySpringCGLIB$$2ad5ccfe.invoke(<generated>) ~[classes/:1.0.0.BUILD-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]

winsemblesystems's picture
Joined: Mar 20 2020 - 7:33am
Last seen: 1 month 1 day ago

2 Comments:

#1

Few additional details for the above comment:

This is what I am running right now
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Tomcat 8.5

Running on AWS EC2 Amazon Linux AMI

#2

Inaddition, these are the dependencies that I use in my pom.xml

<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.12.2</version>
</dependency>

<dynamicjasper.version>5.3.0</dynamicjasper.version>

<dynamicjasper-fonts.version>2.0</dynamicjasper-fonts.version>

Feedback
randomness