File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jasper Report Error

 
Seetharaman Arumugam
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating jasper report Using Eclipse 3.1 and when i compile the report I am getting below error


org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/features/validation
at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:100)
at org.apache.commons.digester.Digester.setFeature(Digester.java:546)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:153)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:791)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
at mypackage.DataSourceApp.main(DataSourceApp.java:30)

NESTED BY :
org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/features/validation
at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:100)
at org.apache.commons.digester.Digester.setFeature(Digester.java:546)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:153)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:791)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
at mypackage.DataSourceApp.main(DataSourceApp.java:30)

NESTED BY :
net.sf.jasperreports.engine.JRException: Feature: http://xml.org/sax/features/validation
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:210)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
at mypackage.DataSourceApp.main(DataSourceApp.java:30)
Caused by: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/features/validation
at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:100)
at org.apache.commons.digester.Digester.setFeature(Digester.java:546)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:153)
at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:791)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
... 4 more


Anyone can solve this problem kindly give me a solution for this
 
Chengwei Lee
Ranch Hand
Posts: 884
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using JasperAssistant plugin? If you're, maybe you'll have better luck asking Peter, who is the author of the plugin.

Check out the ANT version used by your Eclipse, is it the latest, 1.6.5? I'd experienced some XML validation errors before when using older ANT versions. Upgrading to latest would solve the issue.

Also, check to ensure that you'll have the required JARs during your build.

If all else fails, you can always compile your JRXML into JASPER using your own Java client. Look into the demo folders for samples.

Cheers!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic