Jump to content
Changes to the Jaspersoft community edition download ×

JasperManager.loadXmlDesign problem

2004 IR Help

Recommended Posts

By: Richard Moore - rick007

JasperManager.loadXmlDesign problem

2005-10-27 02:29



I have generated a simple jrxml file using iReport and am wanting to convert it to PDF. I'm having a problem when I try to use JasperManager.loadXmlDesign on a report I have created. I get the following exception :


27-Oct-2005 09:49:28 org.apache.commons.digester.Digester getParser


SEVERE: Digester.getParser:


org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic


at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:128)


at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)


at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)


at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)


at org.apache.commons.digester.Digester.getParser(Digester.java:692)


at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)


at org.apache.commons.digester.Digester.parse(Digester.java:1647)


at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)


at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)


at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)


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.JasperManager.loadXmlDesign(JasperManager.java:971)


at ReportCreator.main(ReportCreator.java:24)


Exception breakpoint occurred at line 899 of Digester.java.




The code that causes this exception is :


JasperDesign jasperDesign = JasperManager.loadXmlDesign("c:\temp\SupplierUsageByWeek.jrxml");


Any pointers regarding this problem would be greatly appreciated as I have run out of ideas.



Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...