Category: | Bug report |
Priority: | High |
Status: | Confirmed |
Project: | Severity: | Block |
Resolution: | Open |
|
Component: | Reproducibility: | Random |
Assigned to: |
Hello,
I'm using jasper reports 3.7 and my aplication server is Jboss 5.0.1 java version is 1.6.0.65
I don't have any problem until now. Now when the pdf is generate i've the following error: org.apache.xerces.util.XMLGrammarPoolImpl cannot be cast to com.sun.org.apache.xerces.internal.xni.grammars. XMLGrammarPool
The print stack is:
java.lang.ClassCastException: org.apache.xerces.util.XMLGrammarPoolImpl cannot be cast to com.sun.org.apache.xerces.internal.xni.grammars. XMLGrammarPool
at com.sun.org.apache.xerces.internal.impl.xs. XMLSchemaLoader.reset(XMLSchemaLoader.java:990)
at com.sun.org.apache.xerces.internal.impl.xs. XMLSchemaValidator.reset(XMLSchemaValidator.java:1274)
at com.sun.org.apache.xerces.internal.parsers. XML11Configuration.configurePipeline(XML11Configuration.java:1160)
at com.sun.org.apache.xerces.internal.parsers. XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:151)
at com.sun.org.apache.xerces.internal.parsers. XML11Configuration.parse(XML11Configuration.java:785)
at com.sun.org.apache.xerces.internal.parsers. XML11Configuration.parse(XML11Configuration.java:744)
at com.sun.org.apache.xerces.internal.parsers. XMLParser.parse(XMLParser.java:128)
at com.sun.org.apache.xerces.internal.parsers. AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at com.sun.org.apache.xerces.internal.jaxp. SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543)
at org.apache.commons.digester.Digester. parse(Digester.java:1647)
at net.sf.jasperreports.engine.xml.JRXmlLoader. loadXML(JRXmlLoader.java:235)
at net.sf.jasperreports.engine.xml.JRXmlLoader. loadXML(JRXmlLoader.java:222)
at net.sf.jasperreports.engine.xml.JRXmlLoader. load(JRXmlLoader.java:210)
at net.sf.jasperreports.engine.xml.JRXmlLoader. load(JRXmlLoader.java:164)
at net.sf.jasperreports.engine.xml.JRXmlLoader. load(JRXmlLoader.java:148)
at net.sf.jasperreports.engine.JasperCompileManager. compileReport(JasperCompileManager.java:146)
at outsystems.nosreporting.actions.ActReportToPDF. mosReportToPDF(Unknown Source)
at ospem.referencesproxy.rssextensionreporting. actions.ActReportToPDF.mosReportToPDF(Unknown Source)
at ospem.actions.ActReportToPDF. executeReportToPDF(Unknown Source)
at ospem.actions.ActReceitaTmc_ObterReport. executeReceitaTmc_ObterReport(Unknown Source)
at ospem.managedbea
Every time that we call the extension to generate pdf we are forcing the propertie with this value: System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
When error occurs the only way to generate pds is restart Jboss.
Thanks,
Francisco
2 Comments:
Same issue here with Jasperreports 5.5.1 and Java 1.7 32 bits.
java.lang.ClassCastException: org.apache.xerces.util.XMLGrammarPoolImpl cannot be cast to com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.reset(XMLSchemaLoader.java:1066)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reset(XMLSchemaValidator.java:1309)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1216)
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:156)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:818)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
at org.apache.commons.digester.Digester.parse(Digester.java:1892)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:289)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:276)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:265)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:210)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:176)
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:172)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:459)
at es.test.controllers.restful.util.InformesUtils.compilarInforme(InformesUtils.java:590)
Using 6.1.0 and the problem is still there.
Is there someone working on this ? or i would have to restart server every once in while ?